clang  14.0.0git
Public Member Functions | Friends | List of all members
clang::OMPChildren Class Referencefinal

Contains data for OpenMP directives: clauses, children expressions/statements (helpers for codegen) and associated statement, if any. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPChildren:
Inheritance graph
[legend]
Collaboration diagram for clang::OMPChildren:
Collaboration graph
[legend]

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 StmtgetAssociatedStmt () const
 Returns statement associated with the directive. More...
 
StmtgetAssociatedStmt ()
 
MutableArrayRef< OMPClause * > getClauses ()
 Get the clauses storage. More...
 
ArrayRef< OMPClause * > getClauses () const
 
const CapturedStmtgetCapturedStmt (OpenMPDirectiveKind RegionKind, ArrayRef< OpenMPDirectiveKind > CaptureRegions) const
 Returns the captured statement associated with the component region within the (combined) directive. More...
 
CapturedStmtgetInnermostCapturedStmt (ArrayRef< OpenMPDirectiveKind > CaptureRegions)
 Get innermost captured statement for the construct. More...
 
const CapturedStmtgetInnermostCapturedStmt (ArrayRef< OpenMPDirectiveKind > CaptureRegions) const
 
MutableArrayRef< Stmt * > getChildren ()
 
ArrayRef< Stmt * > getChildren () const
 
StmtgetRawStmt ()
 
const StmtgetRawStmt () const
 
Stmt::child_range getAssociatedStmtAsRange ()
 

Friends

class OMPClauseReader
 
class OMPExecutableDirective
 
template<typename T >
class OMPDeclarativeDirective
 

Detailed Description

Contains data for OpenMP directives: clauses, children expressions/statements (helpers for codegen) and associated statement, if any.

Definition at line 8569 of file OpenMPClause.h.

Member Function Documentation

◆ getAssociatedStmt() [1/2]

Stmt* clang::OMPChildren::getAssociatedStmt ( )
inline

Definition at line 8627 of file OpenMPClause.h.

◆ getAssociatedStmt() [2/2]

const Stmt* clang::OMPChildren::getAssociatedStmt ( ) const
inline

◆ getAssociatedStmtAsRange()

Stmt::child_range clang::OMPChildren::getAssociatedStmtAsRange ( )
inline

Definition at line 8702 of file OpenMPClause.h.

Referenced by clang::OMPExecutableDirective::children().

◆ getCapturedStmt()

const CapturedStmt* clang::OMPChildren::getCapturedStmt ( OpenMPDirectiveKind  RegionKind,
ArrayRef< OpenMPDirectiveKind CaptureRegions 
) const
inline

Returns the captured statement associated with the component region within the (combined) directive.

Parameters
RegionKindComponent region kind.

Definition at line 8647 of file OpenMPClause.h.

References getAssociatedStmt().

Referenced by clang::OMPExecutableDirective::getCapturedStmt().

◆ getChildren() [1/2]

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::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::OMPTaskgroupDirective::getReductionRef(), clang::OMPLoopDirective::getStrideVariable(), clang::OMPParallelDirective::getTaskReductionRefExpr(), clang::OMPForDirective::getTaskReductionRefExpr(), clang::OMPSectionsDirective::getTaskReductionRefExpr(), clang::OMPParallelForDirective::getTaskReductionRefExpr(), clang::OMPParallelMasterDirective::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().

◆ getChildren() [2/2]

ArrayRef<Stmt *> clang::OMPChildren::getChildren ( ) const
inline

Definition at line 8681 of file OpenMPClause.h.

References getChildren().

◆ getClauses() [1/2]

MutableArrayRef<OMPClause *> clang::OMPChildren::getClauses ( )
inline

◆ getClauses() [2/2]

ArrayRef<OMPClause *> clang::OMPChildren::getClauses ( ) const
inline

Definition at line 8638 of file OpenMPClause.h.

References getClauses().

◆ getInnermostCapturedStmt() [1/2]

CapturedStmt* clang::OMPChildren::getInnermostCapturedStmt ( ArrayRef< OpenMPDirectiveKind CaptureRegions)
inline

Get innermost captured statement for the construct.

Definition at line 8664 of file OpenMPClause.h.

References getAssociatedStmt(), and hasAssociatedStmt().

Referenced by clang::OMPExecutableDirective::getInnermostCapturedStmt(), and getInnermostCapturedStmt().

◆ getInnermostCapturedStmt() [2/2]

const CapturedStmt* clang::OMPChildren::getInnermostCapturedStmt ( ArrayRef< OpenMPDirectiveKind CaptureRegions) const
inline

Definition at line 8675 of file OpenMPClause.h.

References getInnermostCapturedStmt().

◆ getNumChildren()

unsigned clang::OMPChildren::getNumChildren ( ) const
inline

◆ getNumClauses()

unsigned clang::OMPChildren::getNumClauses ( ) const
inline

◆ getRawStmt() [1/2]

Stmt* clang::OMPChildren::getRawStmt ( )
inline

Definition at line 8685 of file OpenMPClause.h.

References getAssociatedStmt().

Referenced by clang::OMPExecutableDirective::getRawStmt(), and getRawStmt().

◆ getRawStmt() [2/2]

const Stmt* clang::OMPChildren::getRawStmt ( ) const
inline

Definition at line 8698 of file OpenMPClause.h.

References getRawStmt().

◆ hasAssociatedStmt()

bool clang::OMPChildren::hasAssociatedStmt ( ) const
inline

◆ setAssociatedStmt()

void clang::OMPChildren::setAssociatedStmt ( Stmt S)
inline

Set associated statement.

Definition at line 8611 of file OpenMPClause.h.

Referenced by clang::ASTRecordReader::readOMPChildren().

◆ setChildren()

void clang::OMPChildren::setChildren ( ArrayRef< Stmt * >  Children)

◆ setClauses()

void OMPChildren::setClauses ( ArrayRef< OMPClause * >  Clauses)

Sets the list of variables for this clause.

Parameters
ClausesThe list of clauses for the directive.

Definition at line 27 of file StmtOpenMP.cpp.

Referenced by clang::ASTRecordReader::readOMPChildren().

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 8572 of file OpenMPClause.h.

◆ OMPDeclarativeDirective

template<typename T >
friend class OMPDeclarativeDirective
friend

Definition at line 8574 of file OpenMPClause.h.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 8573 of file OpenMPClause.h.


The documentation for this class was generated from the following files: