clang
15.0.0git
|
This represents clauses with the list of variables like 'private', 'firstprivate', 'copyin', 'shared', or 'reduction' clauses in the '#pragma omp ...' directives. More...
#include "clang/AST/OpenMPClause.h"
Public Types | |
using | varlist_iterator = MutableArrayRef< Expr * >::iterator |
using | varlist_const_iterator = ArrayRef< const Expr * >::iterator |
using | varlist_range = llvm::iterator_range< varlist_iterator > |
using | varlist_const_range = llvm::iterator_range< varlist_const_iterator > |
![]() | |
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 > |
Public Member Functions | |
unsigned | varlist_size () const |
bool | varlist_empty () const |
varlist_range | varlists () |
varlist_const_range | varlists () const |
varlist_iterator | varlist_begin () |
varlist_iterator | varlist_end () |
varlist_const_iterator | varlist_begin () const |
varlist_const_iterator | varlist_end () const |
void | setLParenLoc (SourceLocation Loc) |
Sets the location of '('. More... | |
SourceLocation | getLParenLoc () const |
Returns the location of '('. More... | |
ArrayRef< const Expr * > | getVarRefs () const |
Fetches list of all variables in the clause. More... | |
![]() | |
SourceLocation | getBeginLoc () const |
Returns the starting location of the clause. More... | |
SourceLocation | getEndLoc () const |
Returns the ending location of the clause. More... | |
void | setLocStart (SourceLocation Loc) |
Sets the starting location of the clause. More... | |
void | setLocEnd (SourceLocation Loc) |
Sets the ending location of the clause. More... | |
OpenMPClauseKind | getClauseKind () const |
Returns kind of OpenMP clause (private, shared, reduction, etc.). More... | |
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. More... | |
const_child_range | used_children () const |
Protected Member Functions | |
OMPVarListClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, unsigned N) | |
Build a clause with N variables. More... | |
MutableArrayRef< Expr * > | getVarRefs () |
Fetches list of variables associated with this clause. More... | |
void | setVarRefs (ArrayRef< Expr * > VL) |
Sets the list of variables for this clause. More... | |
![]() | |
OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc) | |
Friends | |
class | OMPClauseReader |
Additional Inherited Members | |
![]() | |
static bool | classof (const OMPClause *) |
This represents clauses with the list of variables like 'private', 'firstprivate', 'copyin', 'shared', or 'reduction' clauses in the '#pragma omp ...' directives.
Definition at line 192 of file OpenMPClause.h.
using clang::OMPVarListClause< T >::varlist_const_iterator = ArrayRef<const Expr *>::iterator |
Definition at line 229 of file OpenMPClause.h.
using clang::OMPVarListClause< T >::varlist_const_range = llvm::iterator_range<varlist_const_iterator> |
Definition at line 231 of file OpenMPClause.h.
using clang::OMPVarListClause< T >::varlist_iterator = MutableArrayRef<Expr *>::iterator |
Definition at line 228 of file OpenMPClause.h.
using clang::OMPVarListClause< T >::varlist_range = llvm::iterator_range<varlist_iterator> |
Definition at line 230 of file OpenMPClause.h.
|
inlineprotected |
Build a clause with N variables.
K | Kind of the clause. |
StartLoc | Starting location of the clause (the clause keyword). |
LParenLoc | Location of '('. |
EndLoc | Ending location of the clause. |
N | Number of the variables in the clause. |
Definition at line 209 of file OpenMPClause.h.
|
inline |
Returns the location of '('.
Definition at line 252 of file OpenMPClause.h.
Referenced by clang::Sema::ActOnOpenMPFlushDirective().
|
inlineprotected |
Fetches list of variables associated with this clause.
Definition at line 214 of file OpenMPClause.h.
Referenced by clang::OMPVarListClause< OMPLinearClause >::varlist_begin(), and clang::OMPVarListClause< OMPLinearClause >::varlist_end().
|
inline |
Fetches list of all variables in the clause.
Definition at line 255 of file OpenMPClause.h.
|
inline |
Sets the location of '('.
Definition at line 249 of file OpenMPClause.h.
|
inlineprotected |
Sets the list of variables for this clause.
Definition at line 220 of file OpenMPClause.h.
Referenced by clang::OMPPrivateClause::Create(), clang::OMPFirstprivateClause::Create(), clang::OMPLastprivateClause::Create(), clang::OMPSharedClause::Create(), clang::OMPReductionClause::Create(), clang::OMPTaskReductionClause::Create(), clang::OMPInReductionClause::Create(), clang::OMPLinearClause::Create(), clang::OMPAlignedClause::Create(), clang::OMPCopyinClause::Create(), clang::OMPCopyprivateClause::Create(), clang::OMPFlushClause::Create(), clang::OMPDependClause::Create(), clang::OMPMapClause::Create(), clang::OMPToClause::Create(), clang::OMPFromClause::Create(), clang::OMPUseDevicePtrClause::Create(), clang::OMPUseDeviceAddrClause::Create(), clang::OMPIsDevicePtrClause::Create(), clang::OMPHasDeviceAddrClause::Create(), clang::OMPNontemporalClause::Create(), clang::OMPInclusiveClause::Create(), and clang::OMPExclusiveClause::Create().
|
inline |
Definition at line 243 of file OpenMPClause.h.
Referenced by clang::OMPVarListClause< OMPLinearClause >::varlists().
|
inline |
Definition at line 245 of file OpenMPClause.h.
|
inline |
Definition at line 234 of file OpenMPClause.h.
|
inline |
Definition at line 244 of file OpenMPClause.h.
Referenced by clang::OMPVarListClause< OMPLinearClause >::varlists().
|
inline |
Definition at line 246 of file OpenMPClause.h.
|
inline |
Definition at line 233 of file OpenMPClause.h.
|
inline |
Definition at line 236 of file OpenMPClause.h.
|
inline |
Definition at line 239 of file OpenMPClause.h.
|
friend |
Definition at line 193 of file OpenMPClause.h.