|
clang 23.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 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 |
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) |
Friends | |
| class | OMPClauseReader |
This represents the 'init' clause in '#pragma omp ...' directives.
Definition at line 8746 of file OpenMPClause.h.
| using OMPInitClause::const_prefs_iterator = ArrayRef<const Expr *>::iterator |
Definition at line 8842 of file OpenMPClause.h.
| using OMPInitClause::const_prefs_range = llvm::iterator_range<const_prefs_iterator> |
Definition at line 8844 of file OpenMPClause.h.
| using OMPInitClause::prefs_iterator = MutableArrayRef<Expr *>::iterator |
Definition at line 8841 of file OpenMPClause.h.
| using OMPInitClause::prefs_range = llvm::iterator_range<prefs_iterator> |
Definition at line 8843 of file OpenMPClause.h.
|
inline |
Definition at line 8825 of file OpenMPClause.h.
Referenced by children().
|
inline |
Definition at line 8830 of file OpenMPClause.h.
References children().
Definition at line 8855 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 1778 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 1795 of file OpenMPClause.cpp.
References clang::C.
Referenced by clang::OMPClauseReader::readClause().
|
inline |
Returns the interop variable.
Definition at line 8816 of file OpenMPClause.h.
|
inline |
Definition at line 8817 of file OpenMPClause.h.
|
inline |
Returns true is interop-type 'target' is used.
Definition at line 8820 of file OpenMPClause.h.
|
inline |
Returns true is interop-type 'targetsync' is used.
Definition at line 8823 of file OpenMPClause.h.
|
inline |
Returns the location of the interop variable.
Definition at line 8813 of file OpenMPClause.h.
|
inline |
Definition at line 8846 of file OpenMPClause.h.
Referenced by prefs().
|
inline |
Definition at line 8851 of file OpenMPClause.h.
References prefs().
|
inline |
Definition at line 8834 of file OpenMPClause.h.
|
inline |
Definition at line 8837 of file OpenMPClause.h.
|
friend |
Definition at line 8749 of file OpenMPClause.h.
References OMPClauseReader.
Referenced by OMPClauseReader.