|
clang 24.0.0git
|
This represents 'num_threads' clause in the '#pragma omp ...' directive. More...
#include "clang/AST/OpenMPClause.h"
Public Member Functions | |
| ArrayRef< Expr * > | getNumThreads () |
| Return NumThreads expressions. | |
| ArrayRef< Expr * > | getNumThreads () const |
| OpenMPNumThreadsClauseModifier | getPrescriptivenessModifier () const |
| Returns the prescriptiveness modifier. | |
| SourceLocation | getPrescriptivenessModifierLoc () const |
| Returns the location of the prescriptiveness modifier. | |
| OpenMPNumThreadsClauseModifier | getDimsModifier () const |
| Returns the dims modifier. | |
| SourceLocation | getDimsModifierLoc () const |
| Returns the location of the dims modifier. | |
| bool | hasDimsModifier () const |
| Checks if the clause has the dims modifier. | |
| Expr * | getDimsModifierExpr () |
| Returns the dims modifier expression if present. | |
| const Expr * | getDimsModifierExpr () const |
| Returns the dims modifier expression if present. | |
| child_range | children () |
| const_child_range | children () const |
| child_range | used_children () |
| const_child_range | used_children () const |
| Public Member Functions inherited from clang::OMPVarListClause< OMPNumThreadsClause > | |
| unsigned | varlist_size () const |
| bool | varlist_empty () const |
| varlist_range | varlist () |
| varlist_iterator | varlist_begin () |
| varlist_iterator | varlist_end () |
| 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 |
| Public Member Functions inherited from clang::OMPClauseWithPreInit | |
| const Stmt * | getPreInitStmt () const |
| Get pre-initialization statement for the clause. | |
| Stmt * | getPreInitStmt () |
| Get pre-initialization statement for the clause. | |
| OpenMPDirectiveKind | getCaptureRegion () const |
| Get capture region for the stmt in the clause. | |
Static Public Member Functions | |
| static OMPNumThreadsClause * | Create (const ASTContext &C, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< Expr * > VL, OpenMPNumThreadsClauseModifier PrescriptivenessModifier, OpenMPNumThreadsClauseModifier DimsModifier, SourceLocation PrescriptivenessModifierLoc, SourceLocation DimsModifierLoc, Expr *DimsModifierExpr, Stmt *PreInit) |
| Creates clause with a list of variables/expressions. | |
| static OMPNumThreadsClause * | CreateEmpty (const ASTContext &C, unsigned N) |
| Creates an empty clause with the place for N expressions. | |
| static bool | classof (const OMPClause *T) |
| Static Public Member Functions inherited from clang::OMPClause | |
| static bool | classof (const OMPClause *) |
| Static Public Member Functions inherited from clang::OMPClauseWithPreInit | |
| static OMPClauseWithPreInit * | get (OMPClause *C) |
| static const OMPClauseWithPreInit * | get (const OMPClause *C) |
Friends | |
| class | OMPVarListClause< OMPNumThreadsClause > |
| class | OMPClauseReader |
Additional Inherited Members | |
| Public Types inherited from clang::OMPVarListClause< OMPNumThreadsClause > | |
| using | varlist_iterator |
| using | varlist_const_iterator |
| using | varlist_range |
| using | varlist_const_range |
| 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> |
| Protected Member Functions inherited from clang::OMPVarListClause< OMPNumThreadsClause > | |
| 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) | |
| Protected Member Functions inherited from clang::OMPClauseWithPreInit | |
| OMPClauseWithPreInit (const OMPClause *This) | |
| void | setPreInitStmt (Stmt *S, OpenMPDirectiveKind ThisRegion=llvm::omp::OMPD_unknown) |
| Set pre-initialization statement for the clause. | |
This represents 'num_threads' clause in the '#pragma omp ...' directive.
In this example directive '#pragma omp parallel' has 'num_threads' clause requesting 'n' threads.
In this example directive '#pragma omp parallel' has 'num_threads' clause requesting 'n' threads strictly with the 'strict' modifier.
In this example directive '#pragma omp parallel' has clause 'num_threads' with the 'dims' modifier specifying two dimensions. The list specifies the number of threads in each dimension.
Definition at line 830 of file OpenMPClause.h.
|
inline |
Definition at line 960 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPNumThreadsClause >::varlist_begin(), and clang::OMPVarListClause< OMPNumThreadsClause >::varlist_end().
Referenced by children().
|
inline |
Definition at line 964 of file OpenMPClause.h.
References children().
Definition at line 975 of file OpenMPClause.h.
References clang::T.
|
static |
Creates clause with a list of variables/expressions.
| C | AST context. |
| CaptureRegion | The captured region for the pre-init statements. |
| StartLoc | Starting location of the clause. |
| LParenLoc | Location of '('. |
| EndLoc | Ending location of the clause. |
| VL | List of references to the expressions. |
| PrescriptivenessModifier | The prescriptiveness modifier. |
| DimsModifier | The dims modifier. |
| PrescriptivenessModifierLoc | Location of the prescriptiveness modifier. |
| DimsModifierLoc | Location of the dims modifier. |
| DimsModifierExpr | The expression of the number of dimensions. |
| PreInit |
Definition at line 1992 of file OpenMPClause.cpp.
References clang::C.
Referenced by clang::SemaOpenMP::ActOnOpenMPNumThreadsClause().
|
static |
Creates an empty clause with the place for N expressions.
| C | AST context. |
| N | The number of expressions. |
Definition at line 2014 of file OpenMPClause.cpp.
References clang::C.
Referenced by clang::OMPClauseReader::readClause().
|
inline |
Returns the dims modifier.
Definition at line 940 of file OpenMPClause.h.
|
inline |
Returns the dims modifier expression if present.
Definition at line 952 of file OpenMPClause.h.
References hasDimsModifier(), and clang::OMPVarListClause< OMPNumThreadsClause >::varlist_end().
Referenced by getDimsModifierExpr().
|
inline |
Returns the dims modifier expression if present.
Definition at line 956 of file OpenMPClause.h.
References getDimsModifierExpr().
|
inline |
Returns the location of the dims modifier.
Definition at line 944 of file OpenMPClause.h.
Return NumThreads expressions.
Definition at line 925 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPNumThreadsClause >::getVarRefs().
Referenced by getNumThreads().
Definition at line 926 of file OpenMPClause.h.
References getNumThreads().
|
inline |
Returns the prescriptiveness modifier.
Definition at line 931 of file OpenMPClause.h.
|
inline |
Returns the location of the prescriptiveness modifier.
Definition at line 935 of file OpenMPClause.h.
|
inline |
Checks if the clause has the dims modifier.
Definition at line 947 of file OpenMPClause.h.
Referenced by getDimsModifierExpr().
|
inline |
Definition at line 968 of file OpenMPClause.h.
|
inline |
Definition at line 971 of file OpenMPClause.h.
|
friend |
Definition at line 836 of file OpenMPClause.h.
References OMPClauseReader.
Referenced by OMPClauseReader.
|
friend |
Definition at line 804 of file OpenMPClause.h.
References clang::OMPFinalClause::used_children().