|
clang 23.0.0git
|
This represents the 'init' clause in '#pragma omp ...' directives. More...
#include "clang/AST/OpenMPClause.h"
Classes | |
| struct | PrefView |
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. | |
| bool | hasPreferAttrs () const |
| Returns true if OMP 6.0 {fr/attr} syntax is used. | |
| ArrayRef< Expr * > | attrs () const |
| All attr() exprs across every pref-spec, in pref-spec order (flat block). | |
| child_range | children () |
| const_child_range | children () const |
| child_range | used_children () |
| const_child_range | used_children () const |
| auto | prefs () const |
| Returns a range of PrefView objects, one per preference-specification, each carrying the fr() expression (or null) and the attr() exprs. | |
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 NumPrefs, unsigned NumAttrs) |
| Creates an empty clause sized for NumPrefs pref-specs and NumAttrs total attr() exprs across them. | |
| static bool | classof (const OMPClause *T) |
Friends | |
| class | OMPClauseReader |
This represents the 'init' clause in '#pragma omp ...' directives.
Definition at line 8852 of file OpenMPClause.h.
|
inline |
All attr() exprs across every pref-spec, in pref-spec order (flat block).
Definition at line 8986 of file OpenMPClause.h.
|
inline |
Definition at line 8991 of file OpenMPClause.h.
Referenced by children().
|
inline |
Definition at line 8997 of file OpenMPClause.h.
References children().
Definition at line 9023 of file OpenMPClause.h.
|
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 1801 of file OpenMPClause.cpp.
References clang::OMPInteropPref::Attrs, clang::C, clang::OMPInteropInfo::HasPreferAttrs, clang::OMPInteropInfo::IsTarget, clang::OMPInteropInfo::IsTargetSync, and clang::OMPInteropInfo::Prefs.
Referenced by clang::SemaOpenMP::ActOnOpenMPInitClause().
|
static |
Creates an empty clause sized for NumPrefs pref-specs and NumAttrs total attr() exprs across them.
| C | AST context. |
| NumPrefs | Number of pref-specs (length of the Fr block). |
| NumAttrs | Total attr() exprs across all pref-specs. |
Definition at line 1837 of file OpenMPClause.cpp.
References clang::C.
Referenced by clang::OMPClauseReader::readClause().
|
inline |
Returns the interop variable.
Definition at line 8973 of file OpenMPClause.h.
|
inline |
Definition at line 8974 of file OpenMPClause.h.
|
inline |
Returns true is interop-type 'target' is used.
Definition at line 8977 of file OpenMPClause.h.
|
inline |
Returns true is interop-type 'targetsync' is used.
Definition at line 8980 of file OpenMPClause.h.
|
inline |
Returns the location of the interop variable.
Definition at line 8970 of file OpenMPClause.h.
|
inline |
Returns true if OMP 6.0 {fr/attr} syntax is used.
Definition at line 8983 of file OpenMPClause.h.
|
inline |
Returns a range of PrefView objects, one per preference-specification, each carrying the fr() expression (or null) and the attr() exprs.
Definition at line 9010 of file OpenMPClause.h.
|
inline |
Definition at line 9001 of file OpenMPClause.h.
|
inline |
Definition at line 9004 of file OpenMPClause.h.
|
friend |
Definition at line 8855 of file OpenMPClause.h.
References OMPClauseReader.
Referenced by OMPClauseReader.