clang 20.0.0git
|
This represents the 'init' clause in '#pragma omp ...' directives. More...
#include "clang/AST/OpenMPClause.h"
Public Types | |
using | prefs_iterator = MutableArrayRef< Expr * >::iterator |
using | const_prefs_iterator = ArrayRef< const Expr * >::iterator |
using | prefs_range = llvm::iterator_range< prefs_iterator > |
using | const_prefs_range = llvm::iterator_range< const_prefs_iterator > |
Public Types inherited from clang::OMPVarListClause< OMPInitClause > | |
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 | |
SourceLocation | getVarLoc () const |
Returns the location of the interop variable. | |
Expr * | getInteropVar () |
Returns the interop variable. | |
const Expr * | getInteropVar () const |
bool | getIsTarget () const |
Returns true is interop-type 'target' is used. | |
bool | getIsTargetSync () const |
Returns true is interop-type 'targetsync' is used. | |
child_range | children () |
const_child_range | children () const |
child_range | used_children () |
const_child_range | used_children () const |
prefs_range | prefs () |
const_prefs_range | prefs () const |
Public Member Functions inherited from clang::OMPVarListClause< OMPInitClause > | |
ArrayRef< const Expr * > | getVarRefs () const |
Fetches list of all variables in the clause. | |
unsigned | varlist_size () const |
bool | varlist_empty () const |
varlist_range | varlist () |
varlist_const_range | varlist () const |
varlist_iterator | varlist_begin () |
varlist_const_iterator | varlist_begin () const |
varlist_iterator | varlist_end () |
varlist_const_iterator | varlist_end () const |
void | setLParenLoc (SourceLocation Loc) |
Sets the location of '('. | |
SourceLocation | getLParenLoc () const |
Returns the location of '('. | |
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 |
Static Public Member Functions | |
static OMPInitClause * | Create (const ASTContext &C, Expr *InteropVar, OMPInteropInfo &InteropInfo, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation VarLoc, SourceLocation EndLoc) |
Creates a fully specified clause. | |
static OMPInitClause * | CreateEmpty (const ASTContext &C, unsigned N) |
Creates an empty clause with N expressions. | |
static bool | classof (const OMPClause *T) |
Static Public Member Functions inherited from clang::OMPClause | |
static bool | classof (const OMPClause *) |
Friends | |
class | OMPClauseReader |
Additional Inherited Members | |
Protected Member Functions inherited from clang::OMPVarListClause< OMPInitClause > | |
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) | |
This represents the 'init' clause in '#pragma omp ...' directives.
Definition at line 8351 of file OpenMPClause.h.
using clang::OMPInitClause::const_prefs_iterator = ArrayRef<const Expr *>::iterator |
Definition at line 8448 of file OpenMPClause.h.
using clang::OMPInitClause::const_prefs_range = llvm::iterator_range<const_prefs_iterator> |
Definition at line 8450 of file OpenMPClause.h.
using clang::OMPInitClause::prefs_iterator = MutableArrayRef<Expr *>::iterator |
Definition at line 8447 of file OpenMPClause.h.
using clang::OMPInitClause::prefs_range = llvm::iterator_range<prefs_iterator> |
Definition at line 8449 of file OpenMPClause.h.
|
inline |
Definition at line 8430 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPInitClause >::varlist_begin(), and clang::OMPVarListClause< OMPInitClause >::varlist_end().
Referenced by children().
|
inline |
Definition at line 8435 of file OpenMPClause.h.
References children().
Definition at line 8462 of file OpenMPClause.h.
References clang::T.
|
static |
Creates a fully specified clause.
C | AST context. |
InteropVar | The interop variable. |
InteropInfo | The interop-type and prefer_type list. |
StartLoc | Starting location of the clause. |
LParenLoc | Location of '('. |
VarLoc | Location of the interop variable. |
EndLoc | Ending location of the clause. |
Definition at line 1664 of file OpenMPClause.cpp.
References clang::C, clang::OMPInteropInfo::IsTarget, clang::OMPInteropInfo::IsTargetSync, and clang::OMPInteropInfo::PreferTypes.
Referenced by clang::SemaOpenMP::ActOnOpenMPInitClause().
|
static |
Creates an empty clause with N expressions.
C | AST context. |
N | Number of expression items. |
Definition at line 1681 of file OpenMPClause.cpp.
References clang::C.
Referenced by clang::OMPClauseReader::readClause().
|
inline |
Returns the interop variable.
Definition at line 8421 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPInitClause >::varlist_begin().
|
inline |
Definition at line 8422 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPInitClause >::varlist_begin().
|
inline |
Returns true is interop-type 'target' is used.
Definition at line 8425 of file OpenMPClause.h.
|
inline |
Returns true is interop-type 'targetsync' is used.
Definition at line 8428 of file OpenMPClause.h.
|
inline |
Returns the location of the interop variable.
Definition at line 8418 of file OpenMPClause.h.
|
inline |
Definition at line 8452 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPInitClause >::varlist_begin(), and clang::OMPVarListClause< OMPInitClause >::varlist_end().
Referenced by prefs().
|
inline |
Definition at line 8457 of file OpenMPClause.h.
References prefs().
|
inline |
Definition at line 8440 of file OpenMPClause.h.
|
inline |
Definition at line 8443 of file OpenMPClause.h.
|
friend |
Definition at line 8354 of file OpenMPClause.h.