clang 17.0.0git
|
This represents 'num_teams' clause in the '#pragma omp ...' directive. More...
#include "clang/AST/OpenMPClause.h"
Public Member Functions | |
OMPNumTeamsClause (Expr *E, Stmt *HelperE, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) | |
Build 'num_teams' clause. | |
OMPNumTeamsClause () | |
Build an empty clause. | |
void | setLParenLoc (SourceLocation Loc) |
Sets the location of '('. | |
SourceLocation | getLParenLoc () const |
Returns the location of '('. | |
Expr * | getNumTeams () |
Return NumTeams number. | |
Expr * | getNumTeams () const |
Return NumTeams number. | |
child_range | children () |
const_child_range | children () const |
child_range | used_children () |
const_child_range | used_children () const |
![]() | |
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 |
![]() | |
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 bool | classof (const OMPClause *T) |
![]() | |
static bool | classof (const OMPClause *) |
![]() | |
static OMPClauseWithPreInit * | get (OMPClause *C) |
static const OMPClauseWithPreInit * | get (const OMPClause *C) |
Friends | |
class | OMPClauseReader |
Additional Inherited Members | |
![]() | |
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 > |
![]() | |
OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc) | |
![]() | |
OMPClauseWithPreInit (const OMPClause *This) | |
void | setPreInitStmt (Stmt *S, OpenMPDirectiveKind ThisRegion=llvm::omp::OMPD_unknown) |
Set pre-initialization statement for the clause. | |
This represents 'num_teams' clause in the '#pragma omp ...' directive.
In this example directive '#pragma omp teams' has clause 'num_teams' with single expression 'n'.
Definition at line 5998 of file OpenMPClause.h.
|
inline |
Build 'num_teams' clause.
E | Expression associated with this clause. |
HelperE | Helper Expression associated with this clause. |
CaptureRegion | Innermost OpenMP region where expressions in this clause must be captured. |
StartLoc | Starting location of the clause. |
LParenLoc | Location of '('. |
EndLoc | Ending location of the clause. |
Definition at line 6022 of file OpenMPClause.h.
References clang::OMPClauseWithPreInit::setPreInitStmt().
|
inline |
Build an empty clause.
Definition at line 6031 of file OpenMPClause.h.
|
inline |
Definition at line 6048 of file OpenMPClause.h.
|
inline |
Definition at line 6050 of file OpenMPClause.h.
Definition at line 6061 of file OpenMPClause.h.
References clang::OMPClause::getClauseKind().
|
inline |
Returns the location of '('.
Definition at line 6040 of file OpenMPClause.h.
|
inline |
Return NumTeams number.
Definition at line 6043 of file OpenMPClause.h.
|
inline |
Return NumTeams number.
Definition at line 6046 of file OpenMPClause.h.
|
inline |
Sets the location of '('.
Definition at line 6037 of file OpenMPClause.h.
|
inline |
Definition at line 6054 of file OpenMPClause.h.
|
inline |
Definition at line 6057 of file OpenMPClause.h.
|
friend |
Definition at line 5999 of file OpenMPClause.h.