clang
9.0.0
|
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 185 of file OpenMPClause.h.
using clang::OMPVarListClause< T >::varlist_const_iterator = ArrayRef<const Expr *>::iterator |
Definition at line 222 of file OpenMPClause.h.
using clang::OMPVarListClause< T >::varlist_const_range = llvm::iterator_range<varlist_const_iterator> |
Definition at line 224 of file OpenMPClause.h.
using clang::OMPVarListClause< T >::varlist_iterator = MutableArrayRef<Expr *>::iterator |
Definition at line 221 of file OpenMPClause.h.
using clang::OMPVarListClause< T >::varlist_range = llvm::iterator_range<varlist_iterator> |
Definition at line 223 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 202 of file OpenMPClause.h.
|
inline |
Returns the location of '('.
Definition at line 245 of file OpenMPClause.h.
Referenced by clang::TreeTransform< Derived >::TransformOMPExecutableDirective(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().
|
inlineprotected |
Fetches list of variables associated with this clause.
Definition at line 207 of file OpenMPClause.h.
|
inline |
Fetches list of all variables in the clause.
Definition at line 248 of file OpenMPClause.h.
|
inline |
Sets the location of '('.
Definition at line 242 of file OpenMPClause.h.
Referenced by clang::OMPClauseReader::VisitOMPClauseWithPostUpdate().
|
inlineprotected |
Sets the list of variables for this clause.
Definition at line 213 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::OMPSharedClause::CreateEmpty(), and clang::OMPClauseReader::VisitOMPClauseWithPostUpdate().
|
inline |
Definition at line 236 of file OpenMPClause.h.
|
inline |
Definition at line 238 of file OpenMPClause.h.
|
inline |
Definition at line 227 of file OpenMPClause.h.
Referenced by OMPIsDevicePtrClause::CreateEmpty().
|
inline |
Definition at line 237 of file OpenMPClause.h.
|
inline |
Definition at line 239 of file OpenMPClause.h.
|
inline |
Definition at line 226 of file OpenMPClause.h.
Referenced by OMPMappableExprListClause< OMPIsDevicePtrClause >::getUDMapperRefs(), OMPMappableExprListClause< OMPIsDevicePtrClause >::setUDMapperRefs(), clang::TreeTransform< Derived >::TransformOMPExecutableDirective(), clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate(), and clang::OMPClauseReader::VisitOMPClauseWithPostUpdate().
|
inline |
Definition at line 229 of file OpenMPClause.h.
Referenced by FinishOpenMPLinearClause(), clang::TreeTransform< Derived >::TransformOMPExecutableDirective(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().
|
inline |
Definition at line 232 of file OpenMPClause.h.
|
friend |
Definition at line 186 of file OpenMPClause.h.