clang 20.0.0git
|
This represents the 'sizes' clause in the '#pragma omp tile' 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 | getNumSizes () const |
Returns the number of list items. | |
MutableArrayRef< Expr * > | getSizesRefs () |
Returns the tile size expressions. | |
ArrayRef< Expr * > | getSizesRefs () const |
void | setSizesRefs (ArrayRef< Expr * > VL) |
Sets the tile size expressions. | |
child_range | children () |
const_child_range | children () const |
child_range | used_children () |
const_child_range | used_children () const |
![]() | |
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 OMPSizesClause * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< Expr * > Sizes) |
Build a 'sizes' AST node. | |
static OMPSizesClause * | CreateEmpty (const ASTContext &C, unsigned NumSizes) |
Build an empty 'sizes' AST node for deserialization. | |
static bool | classof (const OMPClause *T) |
![]() | |
static bool | classof (const OMPClause *) |
Friends | |
class | OMPClauseReader |
class | llvm::TrailingObjects< OMPSizesClause, Expr * > |
Additional Inherited Members | |
![]() | |
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 > |
![]() | |
OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc) | |
This represents the 'sizes' clause in the '#pragma omp tile' directive.
Definition at line 941 of file OpenMPClause.h.
|
inline |
Definition at line 1005 of file OpenMPClause.h.
References getSizesRefs().
|
inline |
Definition at line 1010 of file OpenMPClause.h.
References getSizesRefs().
Definition at line 1023 of file OpenMPClause.h.
References clang::T.
|
static |
Build a 'sizes' AST node.
C | Context of the AST. |
StartLoc | Location of the 'sizes' identifier. |
LParenLoc | Location of '('. |
EndLoc | Location of ')'. |
Sizes | Content of the clause. |
Definition at line 954 of file OpenMPClause.cpp.
References clang::C, CreateEmpty(), clang::OMPClause::setLocEnd(), clang::OMPClause::setLocStart(), setLParenLoc(), and setSizesRefs().
Referenced by clang::SemaOpenMP::ActOnOpenMPSizesClause().
|
static |
Build an empty 'sizes' AST node for deserialization.
C | Context of the AST. |
NumSizes | Number of items in the clause. |
Definition at line 967 of file OpenMPClause.cpp.
References clang::C.
Referenced by Create(), and clang::OMPClauseReader::readClause().
|
inline |
Returns the location of '('.
Definition at line 980 of file OpenMPClause.h.
|
inline |
Returns the number of list items.
Definition at line 983 of file OpenMPClause.h.
|
inline |
Returns the tile size expressions.
Definition at line 986 of file OpenMPClause.h.
Referenced by children().
Definition at line 991 of file OpenMPClause.h.
|
inline |
Sets the location of '('.
Definition at line 977 of file OpenMPClause.h.
References Loc.
Referenced by Create().
Sets the tile size expressions.
Definition at line 998 of file OpenMPClause.h.
Referenced by Create().
|
inline |
Definition at line 1016 of file OpenMPClause.h.
|
inline |
Definition at line 1019 of file OpenMPClause.h.
|
friend |
Definition at line 944 of file OpenMPClause.h.
|
friend |
Definition at line 944 of file OpenMPClause.h.