clang 20.0.0git
|
This class represents the 'permutation' clause in the '#pragma omp interchange' 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 '('. | |
unsigned | getNumLoops () const |
Returns the number of list items. | |
child_range | children () |
const_child_range | children () const |
child_range | used_children () |
const_child_range | used_children () const |
MutableArrayRef< Expr * > | getArgsRefs () |
Returns the permutation index expressions. | |
ArrayRef< Expr * > | getArgsRefs () 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 OMPPermutationClause * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< Expr * > Args) |
Build a 'permutation' clause AST node. | |
static OMPPermutationClause * | CreateEmpty (const ASTContext &C, unsigned NumLoops) |
Build an empty 'permutation' AST node for deserialization. | |
static bool | classof (const OMPClause *T) |
Static Public Member Functions inherited from clang::OMPClause | |
static bool | classof (const OMPClause *) |
Friends | |
class | OMPClauseReader |
class | llvm::TrailingObjects< OMPSizesClause, Expr * > |
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 class represents the 'permutation' clause in the '#pragma omp interchange' directive.
Definition at line 966 of file OpenMPClause.h.
|
inline |
Definition at line 1034 of file OpenMPClause.h.
References getArgsRefs().
|
inline |
Definition at line 1039 of file OpenMPClause.h.
References getArgsRefs().
Definition at line 1052 of file OpenMPClause.h.
References clang::T.
|
static |
Build a 'permutation' clause AST node.
C | Context of the AST. |
StartLoc | Location of the 'permutation' identifier. |
LParenLoc | Location of '('. |
EndLoc | Location of ')'. |
Args | Content of the clause. |
Definition at line 973 of file OpenMPClause.cpp.
References clang::C, CreateEmpty(), clang::OMPClause::setLocEnd(), clang::OMPClause::setLocStart(), and setLParenLoc().
Referenced by clang::SemaOpenMP::ActOnOpenMPPermutationClause().
|
static |
Build an empty 'permutation' AST node for deserialization.
C | Context of the AST. |
NumLoops | Number of arguments in the clause. |
Definition at line 986 of file OpenMPClause.cpp.
References clang::C.
Referenced by Create(), and clang::OMPClauseReader::readClause().
|
inline |
Returns the permutation index expressions.
Definition at line 1022 of file OpenMPClause.h.
Referenced by clang::SemaOpenMP::ActOnOpenMPInterchangeDirective(), and children().
Definition at line 1027 of file OpenMPClause.h.
|
inline |
Returns the location of '('.
Definition at line 1015 of file OpenMPClause.h.
|
inline |
Returns the number of list items.
Definition at line 1018 of file OpenMPClause.h.
Referenced by clang::SemaOpenMP::ActOnOpenMPInterchangeDirective().
|
inline |
Sets the location of '('.
Definition at line 1012 of file OpenMPClause.h.
References Loc.
Referenced by Create().
|
inline |
Definition at line 1045 of file OpenMPClause.h.
|
inline |
Definition at line 1048 of file OpenMPClause.h.
|
friend |
Definition at line 969 of file OpenMPClause.h.
|
friend |
Definition at line 969 of file OpenMPClause.h.