|
clang 23.0.0git
|
This represents 'thread_limit' clause in the '#pragma omp ...' directive. More...
#include "clang/AST/OpenMPClause.h"
Public Member Functions | |
| void | setLParenLoc (SourceLocation Loc) |
| Sets the location of '('. | |
| SourceLocation | getLParenLoc () const |
| Returns the location of '('. | |
| ArrayRef< Expr * > | getThreadLimit () |
| Return ThreadLimit expressions. | |
| ArrayRef< Expr * > | getThreadLimit () const |
| Return ThreadLimit expressions. | |
| 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, 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) |
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'.
When 'ompx_bare' clause exists on a 'target' directive, 'thread_limit' clause can accept up to three expressions.
Definition at line 6970 of file OpenMPClause.h.
|
inline |
Definition at line 7027 of file OpenMPClause.h.
Referenced by children().
|
inline |
Definition at line 7032 of file OpenMPClause.h.
References children().
Definition at line 7043 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. |
| PreInit |
Definition at line 1909 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 1921 of file OpenMPClause.cpp.
References clang::C.
Referenced by clang::OMPClauseReader::readClause().
|
inline |
Returns the location of '('.
Definition at line 7017 of file OpenMPClause.h.
|
inline |
Return ThreadLimit expressions.
Definition at line 7020 of file OpenMPClause.h.
Referenced by getThreadLimit().
|
inline |
Return ThreadLimit expressions.
Definition at line 7023 of file OpenMPClause.h.
References getThreadLimit().
|
inline |
Sets the location of '('.
Definition at line 7014 of file OpenMPClause.h.
|
inline |
Definition at line 7036 of file OpenMPClause.h.
|
inline |
Definition at line 7039 of file OpenMPClause.h.