clang 20.0.0git
|
Contains data for OpenMP directives: clauses, children expressions/statements (helpers for codegen) and associated statement, if any. More...
#include "clang/AST/OpenMPClause.h"
Public Member Functions | |
unsigned | getNumClauses () const |
unsigned | getNumChildren () const |
bool | hasAssociatedStmt () const |
void | setAssociatedStmt (Stmt *S) |
Set associated statement. | |
void | setChildren (ArrayRef< Stmt * > Children) |
void | setClauses (ArrayRef< OMPClause * > Clauses) |
Sets the list of variables for this clause. | |
const Stmt * | getAssociatedStmt () const |
Returns statement associated with the directive. | |
Stmt * | getAssociatedStmt () |
MutableArrayRef< OMPClause * > | getClauses () |
Get the clauses storage. | |
ArrayRef< OMPClause * > | getClauses () const |
const CapturedStmt * | getCapturedStmt (OpenMPDirectiveKind RegionKind, ArrayRef< OpenMPDirectiveKind > CaptureRegions) const |
Returns the captured statement associated with the component region within the (combined) directive. | |
CapturedStmt * | getInnermostCapturedStmt (ArrayRef< OpenMPDirectiveKind > CaptureRegions) |
Get innermost captured statement for the construct. | |
const CapturedStmt * | getInnermostCapturedStmt (ArrayRef< OpenMPDirectiveKind > CaptureRegions) const |
MutableArrayRef< Stmt * > | getChildren () |
ArrayRef< Stmt * > | getChildren () const |
Stmt * | getRawStmt () |
const Stmt * | getRawStmt () const |
Stmt::child_range | getAssociatedStmtAsRange () |
Friends | |
class | OMPClauseReader |
class | OMPExecutableDirective |
template<typename T > | |
class | OMPDeclarativeDirective |
Contains data for OpenMP directives: clauses, children expressions/statements (helpers for codegen) and associated statement, if any.
Definition at line 9276 of file OpenMPClause.h.
|
inline |
Definition at line 9334 of file OpenMPClause.h.
|
inline |
Returns statement associated with the directive.
Definition at line 9331 of file OpenMPClause.h.
References getAssociatedStmt().
Referenced by clang::OMPExecutableDirective::getAssociatedStmt(), getAssociatedStmt(), getCapturedStmt(), getInnermostCapturedStmt(), and getRawStmt().
|
inline |
Definition at line 9407 of file OpenMPClause.h.
Referenced by clang::OMPExecutableDirective::children().
|
inline |
Returns the captured statement associated with the component region within the (combined) directive.
RegionKind | Component region kind. |
Definition at line 9354 of file OpenMPClause.h.
References getAssociatedStmt().
Referenced by clang::OMPExecutableDirective::getCapturedStmt().
MutableArrayRef< Stmt * > OMPChildren::getChildren | ( | ) |
Definition at line 33 of file StmtOpenMP.cpp.
Referenced by clang::OMPLoopDirective::getCalcLastIteration(), getChildren(), clang::OMPLoopDirective::getCombinedCond(), clang::OMPLoopDirective::getCombinedDistCond(), clang::OMPLoopDirective::getCombinedEnsureUpperBound(), clang::OMPLoopDirective::getCombinedInit(), clang::OMPLoopDirective::getCombinedLowerBoundVariable(), clang::OMPLoopDirective::getCombinedNextLowerBound(), clang::OMPLoopDirective::getCombinedNextUpperBound(), clang::OMPLoopDirective::getCombinedParForInDistCond(), clang::OMPLoopDirective::getCombinedUpperBoundVariable(), clang::OMPLoopDirective::getCond(), clang::OMPAtomicDirective::getCondExpr(), clang::OMPAtomicDirective::getD(), clang::OMPLoopDirective::getDistInc(), clang::OMPLoopDirective::getEnsureUpperBound(), clang::OMPAtomicDirective::getExpr(), clang::OMPLoopDirective::getInc(), clang::OMPLoopDirective::getInit(), clang::OMPLoopDirective::getIsLastIterVariable(), clang::OMPLoopDirective::getIterationVariable(), clang::OMPLoopDirective::getLastIteration(), clang::OMPLoopDirective::getLowerBoundVariable(), clang::OMPDeclareMapperDecl::getMapperVarRef(), clang::OMPLoopDirective::getNextLowerBound(), clang::OMPLoopDirective::getNextUpperBound(), clang::OMPLoopDirective::getNumIterations(), clang::OMPLoopDirective::getPreCond(), clang::OMPLoopDirective::getPreInits(), clang::OMPLoopDirective::getPrevEnsureUpperBound(), clang::OMPLoopDirective::getPrevLowerBoundVariable(), clang::OMPLoopDirective::getPrevUpperBoundVariable(), clang::OMPAtomicDirective::getR(), clang::OMPTaskgroupDirective::getReductionRef(), clang::OMPLoopDirective::getStrideVariable(), clang::OMPParallelDirective::getTaskReductionRefExpr(), clang::OMPSectionsDirective::getTaskReductionRefExpr(), clang::OMPParallelMasterDirective::getTaskReductionRefExpr(), clang::OMPParallelMaskedDirective::getTaskReductionRefExpr(), clang::OMPParallelSectionsDirective::getTaskReductionRefExpr(), clang::OMPTargetParallelDirective::getTaskReductionRefExpr(), clang::OMPAtomicDirective::getUpdateExpr(), clang::OMPLoopDirective::getUpperBoundVariable(), clang::OMPAtomicDirective::getV(), clang::OMPAtomicDirective::getX(), clang::OMPLoopDirective::setCalcLastIteration(), clang::OMPLoopDirective::setCombinedCond(), clang::OMPLoopDirective::setCombinedDistCond(), clang::OMPLoopDirective::setCombinedEnsureUpperBound(), clang::OMPLoopDirective::setCombinedInit(), clang::OMPLoopDirective::setCombinedLowerBoundVariable(), clang::OMPLoopDirective::setCombinedNextLowerBound(), clang::OMPLoopDirective::setCombinedNextUpperBound(), clang::OMPLoopDirective::setCombinedParForInDistCond(), clang::OMPLoopDirective::setCombinedUpperBoundVariable(), clang::OMPLoopDirective::setCond(), clang::OMPLoopDirective::setDistInc(), clang::OMPLoopDirective::setEnsureUpperBound(), clang::OMPLoopDirective::setInc(), clang::OMPLoopDirective::setInit(), clang::OMPLoopDirective::setIsLastIterVariable(), clang::OMPLoopDirective::setIterationVariable(), clang::OMPLoopDirective::setLastIteration(), clang::OMPLoopDirective::setLowerBoundVariable(), clang::OMPDeclareMapperDecl::setMapperVarRef(), clang::OMPLoopDirective::setNextLowerBound(), clang::OMPLoopDirective::setNextUpperBound(), clang::OMPLoopDirective::setNumIterations(), clang::OMPLoopDirective::setPreCond(), clang::OMPLoopDirective::setPreInits(), clang::OMPLoopDirective::setPrevEnsureUpperBound(), clang::OMPLoopDirective::setPrevLowerBoundVariable(), clang::OMPLoopDirective::setPrevUpperBoundVariable(), clang::OMPLoopDirective::setStrideVariable(), clang::OMPLoopDirective::setUpperBoundVariable(), clang::OMPThreadPrivateDecl::varlist_empty(), and clang::OMPAllocateDecl::varlist_empty().
Definition at line 9386 of file OpenMPClause.h.
References getChildren().
|
inline |
Get the clauses storage.
Definition at line 9341 of file OpenMPClause.h.
Referenced by clang::OMPDeclareMapperDecl::clauselist_begin(), clang::OMPRequiresDecl::clauselist_begin(), clang::OMPAllocateDecl::clauselist_begin(), clang::OMPDeclareMapperDecl::clauselist_empty(), clang::OMPRequiresDecl::clauselist_empty(), clang::OMPAllocateDecl::clauselist_empty(), clang::OMPDeclareMapperDecl::clauselist_end(), clang::OMPRequiresDecl::clauselist_end(), clang::OMPAllocateDecl::clauselist_end(), clang::OMPDeclarativeDirective< U >::clauses(), clang::OMPExecutableDirective::clauses(), and getClauses().
Definition at line 9345 of file OpenMPClause.h.
References getClauses().
|
inline |
Get innermost captured statement for the construct.
Definition at line 9369 of file OpenMPClause.h.
References getAssociatedStmt(), and hasAssociatedStmt().
Referenced by clang::OMPExecutableDirective::getInnermostCapturedStmt(), and getInnermostCapturedStmt().
|
inline |
Definition at line 9380 of file OpenMPClause.h.
References getInnermostCapturedStmt().
|
inline |
Definition at line 9314 of file OpenMPClause.h.
Referenced by clang::OMPThreadPrivateDecl::varlist_size(), and clang::OMPAllocateDecl::varlist_size().
|
inline |
Definition at line 9313 of file OpenMPClause.h.
Referenced by clang::OMPDeclareMapperDecl::clauselist_size(), clang::OMPRequiresDecl::clauselist_size(), clang::OMPAllocateDecl::clauselist_size(), clang::OMPDeclarativeDirective< U >::getNumClauses(), and clang::OMPExecutableDirective::getNumClauses().
|
inline |
Definition at line 9390 of file OpenMPClause.h.
References getAssociatedStmt().
Referenced by clang::OMPLoopDirective::getBody(), clang::OMPExecutableDirective::getRawStmt(), and getRawStmt().
|
inline |
Definition at line 9403 of file OpenMPClause.h.
References getRawStmt().
|
inline |
Definition at line 9315 of file OpenMPClause.h.
Referenced by getInnermostCapturedStmt(), and clang::OMPExecutableDirective::hasAssociatedStmt().
|
inline |
Set associated statement.
Definition at line 9318 of file OpenMPClause.h.
Sets the list of variables for this clause.
Clauses | The list of clauses for the directive. |
Definition at line 27 of file StmtOpenMP.cpp.
|
friend |
Definition at line 9279 of file OpenMPClause.h.
|
friend |
Definition at line 9281 of file OpenMPClause.h.
|
friend |
Definition at line 9280 of file OpenMPClause.h.