|
clang 24.0.0git
|
This represents 'thread_limit' clause in the '#pragma omp ...' directive. More...
#include "clang/AST/OpenMPClause.h"
Public Member Functions | |
| ArrayRef< Expr * > | getThreadLimit () |
| Return ThreadLimit expressions. | |
| ArrayRef< Expr * > | getThreadLimit () const |
| Return ThreadLimit expressions. | |
| OpenMPThreadLimitClauseModifier | getModifier () const |
| Get the modifier. | |
| const Expr * | getModifierExpr () const |
| Get the expression of the modifier. | |
| Expr * | getModifierExpr () |
| Get the expression of the modifier. | |
| const Expr * | getDimsModifierExpr () const |
| Get the expression of the modifier if it is the dims modifier. | |
| SourceLocation | getModifierLoc () const |
| Get the location of the modifier. | |
| child_range | children () |
| const_child_range | children () const |
| child_range | used_children () |
| const_child_range | used_children () const |
Static Public Member Functions | |
| static OMPThreadLimitClause * | Create (const ASTContext &C, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< Expr * > VL, OpenMPThreadLimitClauseModifier Modifier, Expr *ModifierExpr, SourceLocation ModifierLoc, Stmt *PreInit) |
| Creates clause with a list of variables VL. | |
| static OMPThreadLimitClause * | CreateEmpty (const ASTContext &C, unsigned N) |
| Creates an empty clause with N variables. | |
| static bool | classof (const OMPClause *T) |
Friends | |
| class | OMPClauseReader |
This represents 'thread_limit' clause in the '#pragma omp ...' directive.
In this example directive '#pragma omp teams' has clause 'thread_limit' with single expression 'n'.
In this example directive '#pragma omp teams' has clause 'thread_limit' with the 'dims' modifier specifying two dimensions. The list specifies the limit on the number of threads in each dimension.
When 'ompx_bare' clause exists on a 'target' directive, 'thread_limit' clause can accept up to three expressions.
Definition at line 7136 of file OpenMPClause.h.
|
inline |
Definition at line 7224 of file OpenMPClause.h.
Referenced by children().
|
inline |
Definition at line 7229 of file OpenMPClause.h.
References children().
Definition at line 7240 of file OpenMPClause.h.
|
static |
Creates clause with a list of variables VL.
| C | AST context. |
| StartLoc | Starting location of the clause. |
| LParenLoc | Location of '('. |
| EndLoc | Ending location of the clause. |
| VL | List of references to the variables. |
| Modifier | The modifier specified in the clause. |
| ModifierExpr | The expression of the modifier. |
| ModifierLoc | Location of the modifier. |
| PreInit |
Definition at line 1968 of file OpenMPClause.cpp.
References clang::C.
Referenced by clang::SemaOpenMP::ActOnOpenMPThreadLimitClause().
|
static |
Creates an empty clause with N variables.
| C | AST context. |
| N | The number of variables. |
Definition at line 1985 of file OpenMPClause.cpp.
References clang::C.
Referenced by clang::OMPClauseReader::readClause().
|
inline |
Get the expression of the modifier if it is the dims modifier.
Definition at line 7215 of file OpenMPClause.h.
References getModifierExpr().
|
inline |
Get the modifier.
Definition at line 7206 of file OpenMPClause.h.
|
inline |
Get the expression of the modifier.
Definition at line 7212 of file OpenMPClause.h.
|
inline |
Get the expression of the modifier.
Definition at line 7209 of file OpenMPClause.h.
Referenced by getDimsModifierExpr().
|
inline |
Get the location of the modifier.
Definition at line 7222 of file OpenMPClause.h.
|
inline |
Return ThreadLimit expressions.
Definition at line 7198 of file OpenMPClause.h.
Referenced by getThreadLimit().
|
inline |
Return ThreadLimit expressions.
Definition at line 7201 of file OpenMPClause.h.
References getThreadLimit().
|
inline |
Definition at line 7233 of file OpenMPClause.h.
|
inline |
Definition at line 7236 of file OpenMPClause.h.
|
friend |
Definition at line 7140 of file OpenMPClause.h.
References OMPClauseReader.
Referenced by OMPClauseReader.