clang 20.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 > |
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 > |
Public Member Functions | |
unsigned | varlist_size () const |
bool | varlist_empty () const |
varlist_range | varlist () |
varlist_const_range | varlist () 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 '('. | |
SourceLocation | getLParenLoc () const |
Returns the location of '('. | |
ArrayRef< const Expr * > | getVarRefs () const |
Fetches list of all variables in the clause. | |
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 |
Protected Member Functions | |
OMPVarListClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, unsigned N) | |
Build a clause with N variables. | |
MutableArrayRef< Expr * > | getVarRefs () |
Fetches list of variables associated with this clause. | |
void | setVarRefs (ArrayRef< Expr * > VL) |
Sets the list of variables for this clause. | |
Protected Member Functions inherited from clang::OMPClause | |
OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc) | |
Friends | |
class | OMPClauseReader |
Additional Inherited Members | |
Static Public Member Functions inherited from clang::OMPClause | |
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 275 of file OpenMPClause.h.
using clang::OMPVarListClause< T >::varlist_const_iterator = ArrayRef<const Expr *>::iterator |
Definition at line 312 of file OpenMPClause.h.
using clang::OMPVarListClause< T >::varlist_const_range = llvm::iterator_range<varlist_const_iterator> |
Definition at line 314 of file OpenMPClause.h.
using clang::OMPVarListClause< T >::varlist_iterator = MutableArrayRef<Expr *>::iterator |
Definition at line 311 of file OpenMPClause.h.
using clang::OMPVarListClause< T >::varlist_range = llvm::iterator_range<varlist_iterator> |
Definition at line 313 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 292 of file OpenMPClause.h.
|
inline |
Returns the location of '('.
Definition at line 335 of file OpenMPClause.h.
Referenced by clang::SemaOpenMP::ActOnOpenMPFlushDirective().
|
inlineprotected |
Fetches list of variables associated with this clause.
Definition at line 297 of file OpenMPClause.h.
References clang::T.
Referenced by clang::OMPVarListClause< T >::varlist_begin(), and clang::OMPVarListClause< T >::varlist_end().
|
inline |
Fetches list of all variables in the clause.
Definition at line 338 of file OpenMPClause.h.
References clang::T.
|
inline |
|
inlineprotected |
Sets the list of variables for this clause.
Definition at line 303 of file OpenMPClause.h.
References clang::T.
Referenced by clang::OMPUseDevicePtrClause::Create(), clang::OMPUseDeviceAddrClause::Create(), clang::OMPIsDevicePtrClause::Create(), clang::OMPHasDeviceAddrClause::Create(), clang::OMPToClause::Create(), clang::OMPFromClause::Create(), clang::OMPMapClause::Create(), clang::OMPNumTeamsClause::Create(), clang::OMPThreadLimitClause::Create(), clang::OMPAllocateClause::Create(), clang::OMPLinearClause::Create(), clang::OMPAlignedClause::Create(), clang::OMPInReductionClause::Create(), clang::OMPTaskReductionClause::Create(), clang::OMPSharedClause::Create(), clang::OMPFlushClause::Create(), clang::OMPNontemporalClause::Create(), clang::OMPInclusiveClause::Create(), clang::OMPExclusiveClause::Create(), clang::OMPPrivateClause::Create(), clang::OMPFirstprivateClause::Create(), clang::OMPCopyinClause::Create(), clang::OMPCopyprivateClause::Create(), clang::OMPLastprivateClause::Create(), clang::OMPDependClause::Create(), clang::OMPDoacrossClause::Create(), and clang::OMPReductionClause::Create().
|
inline |
Definition at line 319 of file OpenMPClause.h.
References clang::OMPVarListClause< T >::varlist_begin(), and clang::OMPVarListClause< T >::varlist_end().
Referenced by FinishOpenMPLinearClause().
|
inline |
Definition at line 322 of file OpenMPClause.h.
References clang::OMPVarListClause< T >::varlist_begin(), and clang::OMPVarListClause< T >::varlist_end().
|
inline |
Definition at line 326 of file OpenMPClause.h.
References clang::OMPVarListClause< T >::getVarRefs().
Referenced by clang::OMPMapClause::children(), clang::OMPToClause::children(), clang::OMPFromClause::children(), clang::OMPUseDevicePtrClause::children(), clang::OMPUseDeviceAddrClause::children(), clang::OMPIsDevicePtrClause::children(), clang::OMPHasDeviceAddrClause::children(), clang::OMPMapClause::used_children(), and clang::OMPVarListClause< T >::varlist().
|
inline |
Definition at line 328 of file OpenMPClause.h.
References clang::OMPVarListClause< T >::getVarRefs().
|
inline |
Definition at line 317 of file OpenMPClause.h.
|
inline |
Definition at line 327 of file OpenMPClause.h.
References clang::OMPVarListClause< T >::getVarRefs().
Referenced by clang::OMPMapClause::children(), clang::OMPToClause::children(), clang::OMPFromClause::children(), clang::OMPUseDevicePtrClause::children(), clang::OMPUseDeviceAddrClause::children(), clang::OMPIsDevicePtrClause::children(), clang::OMPHasDeviceAddrClause::children(), clang::OMPMapClause::used_children(), and clang::OMPVarListClause< T >::varlist().
|
inline |
Definition at line 329 of file OpenMPClause.h.
References clang::OMPVarListClause< T >::getVarRefs().
|
inline |
Definition at line 316 of file OpenMPClause.h.
Referenced by FinishOpenMPLinearClause(), and clang::OMPMapClause::getIteratorModifier().
|
friend |
Definition at line 276 of file OpenMPClause.h.