clang
15.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. More... | |
void | setChildren (ArrayRef< Stmt * > Children) |
void | setClauses (ArrayRef< OMPClause * > Clauses) |
Sets the list of variables for this clause. More... | |
const Stmt * | getAssociatedStmt () const |
Returns statement associated with the directive. More... | |
Stmt * | getAssociatedStmt () |
MutableArrayRef< OMPClause * > | getClauses () |
Get the clauses storage. More... | |
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. More... | |
CapturedStmt * | getInnermostCapturedStmt (ArrayRef< OpenMPDirectiveKind > CaptureRegions) |
Get innermost captured statement for the construct. More... | |
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 8893 of file OpenMPClause.h.
|
inline |
Definition at line 8951 of file OpenMPClause.h.
|
inline |
Returns statement associated with the directive.
Definition at line 8948 of file OpenMPClause.h.
Referenced by clang::OMPExecutableDirective::getAssociatedStmt(), getCapturedStmt(), getInnermostCapturedStmt(), getRawStmt(), and clang::ASTRecordWriter::writeOMPChildren().
|
inline |
Definition at line 9026 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 8971 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::OMPTileDirective::getPreInits(), clang::OMPUnrollDirective::getPreInits(), clang::OMPLoopDirective::getPrevEnsureUpperBound(), clang::OMPLoopDirective::getPrevLowerBoundVariable(), clang::OMPLoopDirective::getPrevUpperBoundVariable(), clang::OMPAtomicDirective::getR(), clang::OMPTaskgroupDirective::getReductionRef(), clang::OMPLoopDirective::getStrideVariable(), clang::OMPParallelDirective::getTaskReductionRefExpr(), clang::OMPForDirective::getTaskReductionRefExpr(), clang::OMPSectionsDirective::getTaskReductionRefExpr(), clang::OMPParallelForDirective::getTaskReductionRefExpr(), clang::OMPParallelMasterDirective::getTaskReductionRefExpr(), clang::OMPParallelMaskedDirective::getTaskReductionRefExpr(), clang::OMPParallelSectionsDirective::getTaskReductionRefExpr(), clang::OMPTargetParallelDirective::getTaskReductionRefExpr(), clang::OMPTargetParallelForDirective::getTaskReductionRefExpr(), clang::OMPDistributeParallelForDirective::getTaskReductionRefExpr(), clang::OMPTeamsDistributeParallelForDirective::getTaskReductionRefExpr(), clang::OMPTargetTeamsDistributeParallelForDirective::getTaskReductionRefExpr(), clang::OMPTileDirective::getTransformedStmt(), clang::OMPUnrollDirective::getTransformedStmt(), clang::OMPAtomicDirective::getUpdateExpr(), clang::OMPLoopDirective::getUpperBoundVariable(), clang::OMPAtomicDirective::getV(), clang::OMPAtomicDirective::getX(), clang::ASTRecordReader::readOMPChildren(), 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(), clang::OMPAllocateDecl::varlist_empty(), and clang::ASTRecordWriter::writeOMPChildren().
Definition at line 9005 of file OpenMPClause.h.
References getChildren().
|
inline |
Get the clauses storage.
Definition at line 8958 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< ValueDecl >::clauses(), clang::OMPExecutableDirective::clauses(), getClauses(), and clang::ASTRecordWriter::writeOMPChildren().
Definition at line 8962 of file OpenMPClause.h.
References getClauses().
|
inline |
Get innermost captured statement for the construct.
Definition at line 8988 of file OpenMPClause.h.
References getAssociatedStmt(), and hasAssociatedStmt().
Referenced by clang::OMPExecutableDirective::getInnermostCapturedStmt(), and getInnermostCapturedStmt().
|
inline |
Definition at line 8999 of file OpenMPClause.h.
References getInnermostCapturedStmt().
|
inline |
Definition at line 8931 of file OpenMPClause.h.
Referenced by clang::ASTRecordReader::readOMPChildren(), clang::OMPThreadPrivateDecl::varlist_size(), clang::OMPAllocateDecl::varlist_size(), and clang::ASTRecordWriter::writeOMPChildren().
|
inline |
Definition at line 8930 of file OpenMPClause.h.
Referenced by clang::OMPDeclareMapperDecl::clauselist_size(), clang::OMPRequiresDecl::clauselist_size(), clang::OMPAllocateDecl::clauselist_size(), clang::OMPDeclarativeDirective< ValueDecl >::getNumClauses(), clang::OMPExecutableDirective::getNumClauses(), clang::ASTRecordReader::readOMPChildren(), and clang::ASTRecordWriter::writeOMPChildren().
|
inline |
Definition at line 9009 of file OpenMPClause.h.
References getAssociatedStmt().
Referenced by clang::OMPExecutableDirective::getRawStmt(), and getRawStmt().
|
inline |
Definition at line 9022 of file OpenMPClause.h.
References getRawStmt().
|
inline |
Definition at line 8932 of file OpenMPClause.h.
Referenced by getInnermostCapturedStmt(), clang::OMPExecutableDirective::hasAssociatedStmt(), clang::ASTRecordReader::readOMPChildren(), and clang::ASTRecordWriter::writeOMPChildren().
|
inline |
Set associated statement.
Definition at line 8935 of file OpenMPClause.h.
Referenced by clang::ASTRecordReader::readOMPChildren().
Sets the list of variables for this clause.
Clauses | The list of clauses for the directive. |
Definition at line 27 of file StmtOpenMP.cpp.
Referenced by clang::ASTRecordReader::readOMPChildren().
|
friend |
Definition at line 8896 of file OpenMPClause.h.
|
friend |
Definition at line 8898 of file OpenMPClause.h.
|
friend |
Definition at line 8897 of file OpenMPClause.h.