clang API Documentation
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 |
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 '('. | |
SourceLocation | getLParenLoc () const |
Returns the location of '('. | |
ArrayRef< const Expr * > | getVarRefs () const |
Fetches list of all variables in the clause. | |
Protected Member Functions | |
MutableArrayRef< Expr * > | getVarRefs () |
Fetches list of variables associated with this clause. | |
void | setVarRefs (ArrayRef< Expr * > VL) |
Sets the list of variables for this clause. | |
OMPVarListClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, unsigned N) | |
Build a clause with N variables. | |
Friends | |
class | OMPClauseReader |
This represents clauses with the list of variables like 'private', 'firstprivate', 'copyin', 'shared', or 'reduction' clauses in the '#pragma omp ...' directives.
Definition at line 70 of file OpenMPClause.h.
typedef ArrayRef<const Expr *>::iterator clang::OMPVarListClause< T >::varlist_const_iterator |
Definition at line 112 of file OpenMPClause.h.
typedef llvm::iterator_range<varlist_const_iterator> clang::OMPVarListClause< T >::varlist_const_range |
Definition at line 114 of file OpenMPClause.h.
typedef MutableArrayRef<Expr *>::iterator clang::OMPVarListClause< T >::varlist_iterator |
Definition at line 111 of file OpenMPClause.h.
typedef llvm::iterator_range<varlist_iterator> clang::OMPVarListClause< T >::varlist_range |
Definition at line 113 of file OpenMPClause.h.
clang::OMPVarListClause< T >::OMPVarListClause | ( | OpenMPClauseKind | K, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc, | ||
unsigned | N | ||
) | [inline, protected] |
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 106 of file OpenMPClause.h.
SourceLocation clang::OMPVarListClause< T >::getLParenLoc | ( | ) | const [inline] |
Returns the location of '('.
Definition at line 134 of file OpenMPClause.h.
MutableArrayRef<Expr *> clang::OMPVarListClause< T >::getVarRefs | ( | ) | [inline, protected] |
Fetches list of variables associated with this clause.
Definition at line 79 of file OpenMPClause.h.
Referenced by clang::OMPVarListClause< OMPLinearClause >::varlist_begin(), and clang::OMPVarListClause< OMPLinearClause >::varlist_end().
ArrayRef<const Expr *> clang::OMPVarListClause< T >::getVarRefs | ( | ) | const [inline] |
Fetches list of all variables in the clause.
Definition at line 137 of file OpenMPClause.h.
void clang::OMPVarListClause< T >::setLParenLoc | ( | SourceLocation | Loc | ) | [inline] |
Sets the location of '('.
Definition at line 132 of file OpenMPClause.h.
void clang::OMPVarListClause< T >::setVarRefs | ( | ArrayRef< Expr * > | VL | ) | [inline, protected] |
Sets the list of variables for this clause.
Definition at line 88 of file OpenMPClause.h.
Referenced by clang::OMPPrivateClause::Create(), clang::OMPFirstprivateClause::Create(), clang::OMPLastprivateClause::Create(), clang::OMPSharedClause::Create(), clang::OMPReductionClause::Create(), clang::OMPLinearClause::Create(), clang::OMPAlignedClause::Create(), clang::OMPCopyinClause::Create(), clang::OMPCopyprivateClause::Create(), and clang::OMPFlushClause::Create().
varlist_iterator clang::OMPVarListClause< T >::varlist_begin | ( | ) | [inline] |
Definition at line 126 of file OpenMPClause.h.
Referenced by clang::OMPVarListClause< OMPLinearClause >::varlists().
varlist_const_iterator clang::OMPVarListClause< T >::varlist_begin | ( | ) | const [inline] |
Definition at line 128 of file OpenMPClause.h.
bool clang::OMPVarListClause< T >::varlist_empty | ( | ) | const [inline] |
Definition at line 117 of file OpenMPClause.h.
varlist_iterator clang::OMPVarListClause< T >::varlist_end | ( | ) | [inline] |
Definition at line 127 of file OpenMPClause.h.
Referenced by clang::OMPVarListClause< OMPLinearClause >::varlists().
varlist_const_iterator clang::OMPVarListClause< T >::varlist_end | ( | ) | const [inline] |
Definition at line 129 of file OpenMPClause.h.
unsigned clang::OMPVarListClause< T >::varlist_size | ( | ) | const [inline] |
Definition at line 116 of file OpenMPClause.h.
varlist_range clang::OMPVarListClause< T >::varlists | ( | ) | [inline] |
Definition at line 119 of file OpenMPClause.h.
Referenced by EmitOMPAlignedClause().
varlist_const_range clang::OMPVarListClause< T >::varlists | ( | ) | const [inline] |
Definition at line 122 of file OpenMPClause.h.
friend class OMPClauseReader [friend] |
Reimplemented in clang::OMPAlignedClause, clang::OMPLinearClause, clang::OMPReductionClause, clang::OMPFirstprivateClause, and clang::OMPPrivateClause.
Definition at line 71 of file OpenMPClause.h.