clang 22.0.0git
clang::OMPLoopRangeClause Class Referencefinal

This class represents the 'looprange' clause in the '#pragma omp fuse' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPLoopRangeClause:
[legend]

Public Member Functions

SourceLocation getLParenLoc () const
SourceLocation getFirstLoc () const
SourceLocation getCountLoc () const
void setLParenLoc (SourceLocation Loc)
void setFirstLoc (SourceLocation Loc)
void setCountLoc (SourceLocation Loc)
ExprgetFirst () const
 Get looprange 'first' expression.
ExprgetCount () const
 Get looprange 'count' expression.
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const
Public Member Functions inherited from clang::OMPClause
SourceLocation getBeginLoc () const
 Returns the starting location of the clause.
SourceLocation getEndLoc () const
 Returns the ending location of the clause.
void setLocStart (SourceLocation Loc)
 Sets the starting location of the clause.
void setLocEnd (SourceLocation Loc)
 Sets the ending location of the clause.
OpenMPClauseKind getClauseKind () const
 Returns kind of OpenMP clause (private, shared, reduction, etc.).
bool isImplicit () const
child_range children ()
const_child_range children () const
child_range used_children ()
 Get the iterator range for the expressions used in the clauses.
const_child_range used_children () const

Static Public Member Functions

static OMPLoopRangeClauseCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation FirstLoc, SourceLocation CountLoc, SourceLocation EndLoc, Expr *First, Expr *Count)
 Build a 'looprange' clause AST node.
static OMPLoopRangeClauseCreateEmpty (const ASTContext &C)
 Build an empty 'looprange' clause node.
static bool classof (const OMPClause *T)
Static Public Member Functions inherited from clang::OMPClause
static bool classof (const OMPClause *)

Friends

class OMPClauseReader

Additional Inherited Members

Public Types inherited from clang::OMPClause
using child_iterator = StmtIterator
using const_child_iterator = ConstStmtIterator
using child_range = llvm::iterator_range<child_iterator>
using const_child_range = llvm::iterator_range<const_child_iterator>
Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)

Detailed Description

This class represents the 'looprange' clause in the '#pragma omp fuse' directive.

#pragma omp fuse looprange(1,2)
{
for(int i = 0; i < 64; ++i)
for(int j = 0; j < 256; j+=2)
for(int k = 127; k >= 0; --k)

Definition at line 1162 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range clang::OMPLoopRangeClause::children ( )
inline

Definition at line 1209 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range clang::OMPLoopRangeClause::children ( ) const
inline

Definition at line 1210 of file OpenMPClause.h.

◆ classof()

bool clang::OMPLoopRangeClause::classof ( const OMPClause * T)
inlinestatic

Definition at line 1221 of file OpenMPClause.h.

References clang::OMPClause::OMPClause(), and clang::T.

◆ Create()

OMPLoopRangeClause * OMPLoopRangeClause::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation FirstLoc,
SourceLocation CountLoc,
SourceLocation EndLoc,
Expr * First,
Expr * Count )
static

Build a 'looprange' clause AST node.

Definition at line 1028 of file OpenMPClause.cpp.

References clang::C, CreateEmpty(), and clang::First.

Referenced by clang::SemaOpenMP::ActOnOpenMPLoopRangeClause().

◆ CreateEmpty()

OMPLoopRangeClause * OMPLoopRangeClause::CreateEmpty ( const ASTContext & C)
static

Build an empty 'looprange' clause node.

Definition at line 1043 of file OpenMPClause.cpp.

References clang::C.

Referenced by Create(), and clang::OMPClauseReader::readClause().

◆ getCount()

Expr * clang::OMPLoopRangeClause::getCount ( ) const
inline

Get looprange 'count' expression.

Definition at line 1207 of file OpenMPClause.h.

◆ getCountLoc()

SourceLocation clang::OMPLoopRangeClause::getCountLoc ( ) const
inline

Definition at line 1197 of file OpenMPClause.h.

◆ getFirst()

Expr * clang::OMPLoopRangeClause::getFirst ( ) const
inline

Get looprange 'first' expression.

Definition at line 1204 of file OpenMPClause.h.

◆ getFirstLoc()

SourceLocation clang::OMPLoopRangeClause::getFirstLoc ( ) const
inline

Definition at line 1196 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation clang::OMPLoopRangeClause::getLParenLoc ( ) const
inline

Definition at line 1195 of file OpenMPClause.h.

◆ setCountLoc()

void clang::OMPLoopRangeClause::setCountLoc ( SourceLocation Loc)
inline

Definition at line 1201 of file OpenMPClause.h.

◆ setFirstLoc()

void clang::OMPLoopRangeClause::setFirstLoc ( SourceLocation Loc)
inline

Definition at line 1200 of file OpenMPClause.h.

◆ setLParenLoc()

void clang::OMPLoopRangeClause::setLParenLoc ( SourceLocation Loc)
inline

Definition at line 1199 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range clang::OMPLoopRangeClause::used_children ( )
inline

Definition at line 1214 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range clang::OMPLoopRangeClause::used_children ( ) const
inline

Definition at line 1217 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 1163 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


The documentation for this class was generated from the following files: