clang 19.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]

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 StmtgetAssociatedStmt () const
 Returns statement associated with the directive.
 
StmtgetAssociatedStmt ()
 
MutableArrayRef< OMPClause * > getClauses ()
 Get the clauses storage.
 
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.
 
CapturedStmtgetInnermostCapturedStmt (ArrayRef< OpenMPDirectiveKind > CaptureRegions)
 Get innermost captured statement for the construct.
 
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 9004 of file OpenMPClause.h.

Member Function Documentation

◆ getAssociatedStmt() [1/2]

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

Definition at line 9062 of file OpenMPClause.h.

◆ getAssociatedStmt() [2/2]

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

Returns statement associated with the directive.

Definition at line 9059 of file OpenMPClause.h.

References getAssociatedStmt().

Referenced by clang::OMPExecutableDirective::getAssociatedStmt(), getAssociatedStmt(), getCapturedStmt(), getInnermostCapturedStmt(), and getRawStmt().

◆ getAssociatedStmtAsRange()

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

Definition at line 9135 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 9082 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::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().

◆ getChildren() [2/2]

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

Definition at line 9114 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 9073 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 9097 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 9108 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

◆ getRawStmt() [2/2]

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

Definition at line 9131 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 9046 of file OpenMPClause.h.

◆ 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.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 9007 of file OpenMPClause.h.

◆ OMPDeclarativeDirective

template<typename T >
friend class OMPDeclarativeDirective
friend

Definition at line 9009 of file OpenMPClause.h.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 9008 of file OpenMPClause.h.


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