clang 20.0.0git
|
This represents 'ordered' clause in the '#pragma omp ...' directive. More...
#include "clang/AST/OpenMPClause.h"
Public Member Functions | |
void | setLParenLoc (SourceLocation Loc) |
Sets the location of '('. | |
SourceLocation | getLParenLoc () const |
Returns the location of '('. | |
Expr * | getNumForLoops () const |
Return the number of associated for-loops. | |
void | setLoopNumIterations (unsigned NumLoop, Expr *NumIterations) |
Set number of iterations for the specified loop. | |
ArrayRef< Expr * > | getLoopNumIterations () const |
Get number of iterations for all the loops. | |
void | setLoopCounter (unsigned NumLoop, Expr *Counter) |
Set loop counter for the specified loop. | |
Expr * | getLoopCounter (unsigned NumLoop) |
Get loops counter for the specified loop. | |
const Expr * | getLoopCounter (unsigned NumLoop) const |
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 OMPOrderedClause * | Create (const ASTContext &C, Expr *Num, unsigned NumLoops, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) |
Build 'ordered' clause. | |
static OMPOrderedClause * | CreateEmpty (const ASTContext &C, unsigned NumLoops) |
Build an empty clause. | |
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) | |
This represents 'ordered' clause in the '#pragma omp ...' directive.
In this example directive '#pragma omp for' has 'ordered' clause with parameter 2.
Definition at line 2014 of file OpenMPClause.h.
|
inline |
Definition at line 2085 of file OpenMPClause.h.
Referenced by clang::SemaOpenMP::ActOnOpenMPRegionEnd().
|
inline |
Definition at line 2087 of file OpenMPClause.h.
Definition at line 2098 of file OpenMPClause.h.
References clang::T.
|
static |
Build 'ordered' clause.
Num | Expression, possibly associated with this clause. |
NumLoops | Number of loops, associated with this clause. |
StartLoc | Starting location of the clause. |
LParenLoc | Location of '('. |
EndLoc | Ending location of the clause. |
Definition at line 342 of file OpenMPClause.cpp.
References clang::C, clang::Num, and setLoopNumIterations().
Referenced by clang::SemaOpenMP::ActOnOpenMPOrderedClause().
|
static |
Build an empty clause.
Definition at line 357 of file OpenMPClause.cpp.
References clang::C, and setLoopNumIterations().
Referenced by clang::OMPClauseReader::readClause().
Get loops counter for the specified loop.
Definition at line 383 of file OpenMPClause.cpp.
Definition at line 388 of file OpenMPClause.cpp.
Get number of iterations for all the loops.
Definition at line 374 of file OpenMPClause.cpp.
|
inline |
Returns the location of '('.
Definition at line 2069 of file OpenMPClause.h.
|
inline |
Return the number of associated for-loops.
Definition at line 2072 of file OpenMPClause.h.
Referenced by clang::SemaOpenMP::ActOnOpenMPRegionEnd().
Set loop counter for the specified loop.
Definition at line 378 of file OpenMPClause.cpp.
Set number of iterations for the specified loop.
Definition at line 368 of file OpenMPClause.cpp.
Referenced by Create(), and CreateEmpty().
|
inline |
|
inline |
Definition at line 2091 of file OpenMPClause.h.
|
inline |
Definition at line 2094 of file OpenMPClause.h.
|
friend |
Definition at line 2017 of file OpenMPClause.h.