clang
3.9.0
|
This represents clauses with the list of variables like 'private', 'firstprivate', 'copyin', 'shared', or 'reduction' clauses in the '#pragma omp ...' directives. More...
#include <OpenMPClause.h>
Public Types | |
typedef MutableArrayRef< Expr * > ::iterator | varlist_iterator |
typedef ArrayRef< const Expr * > ::iterator | varlist_const_iterator |
typedef llvm::iterator_range < varlist_iterator > | varlist_range |
typedef llvm::iterator_range < varlist_const_iterator > | varlist_const_range |
![]() | |
typedef StmtIterator | child_iterator |
typedef ConstStmtIterator | const_child_iterator |
typedef llvm::iterator_range < child_iterator > | child_range |
typedef llvm::iterator_range < const_child_iterator > | const_child_range |
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 | getLocStart () const |
Returns the starting location of the clause. More... | |
SourceLocation | getLocEnd () 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 |
Protected Member Functions | |
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... | |
OMPVarListClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, unsigned N) | |
Build a clause with N variables. 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 121 of file OpenMPClause.h.
typedef ArrayRef<const Expr *>::iterator clang::OMPVarListClause< T >::varlist_const_iterator |
Definition at line 157 of file OpenMPClause.h.
typedef llvm::iterator_range<varlist_const_iterator> clang::OMPVarListClause< T >::varlist_const_range |
Definition at line 159 of file OpenMPClause.h.
typedef MutableArrayRef<Expr *>::iterator clang::OMPVarListClause< T >::varlist_iterator |
Definition at line 156 of file OpenMPClause.h.
typedef llvm::iterator_range<varlist_iterator> clang::OMPVarListClause< T >::varlist_range |
Definition at line 158 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 151 of file OpenMPClause.h.
|
inline |
Returns the location of '('.
Definition at line 179 of file OpenMPClause.h.
|
inlineprotected |
Fetches list of variables associated with this clause.
Definition at line 130 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 182 of file OpenMPClause.h.
|
inline |
Sets the location of '('.
Definition at line 177 of file OpenMPClause.h.
|
inlineprotected |
Sets the list of variables for this clause.
Definition at line 136 of file OpenMPClause.h.
Referenced by clang::OMPPrivateClause::Create(), clang::OMPFirstprivateClause::Create(), clang::OMPLastprivateClause::Create(), clang::OMPSharedClause::Create(), and clang::OMPReductionClause::Create().
|
inline |
Definition at line 171 of file OpenMPClause.h.
Referenced by clang::OMPVarListClause< OMPLinearClause >::varlists().
|
inline |
Definition at line 173 of file OpenMPClause.h.
|
inline |
Definition at line 162 of file OpenMPClause.h.
|
inline |
Definition at line 172 of file OpenMPClause.h.
Referenced by clang::OMPVarListClause< OMPLinearClause >::varlists().
|
inline |
Definition at line 174 of file OpenMPClause.h.
|
inline |
Definition at line 161 of file OpenMPClause.h.
|
inline |
Definition at line 164 of file OpenMPClause.h.
Referenced by FinishOpenMPLinearClause().
|
inline |
Definition at line 167 of file OpenMPClause.h.
|
friend |
Definition at line 122 of file OpenMPClause.h.