clang 23.0.0git
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 OMPChildren:
[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 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

Detailed Description

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

Definition at line 9791 of file OpenMPClause.h.

Member Function Documentation

◆ getAssociatedStmt() [1/2]

Stmt * OMPChildren::getAssociatedStmt ( )
inline

Definition at line 9849 of file OpenMPClause.h.

◆ getAssociatedStmt() [2/2]

const Stmt * OMPChildren::getAssociatedStmt ( ) const
inline

Returns statement associated with the directive.

Definition at line 9846 of file OpenMPClause.h.

References getAssociatedStmt().

Referenced by getAssociatedStmt(), getCapturedStmt(), getInnermostCapturedStmt(), and getRawStmt().

◆ getAssociatedStmtAsRange()

Stmt::child_range OMPChildren::getAssociatedStmtAsRange ( )
inline

Definition at line 9921 of file OpenMPClause.h.

◆ getCapturedStmt()

const CapturedStmt * 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 9868 of file OpenMPClause.h.

References getAssociatedStmt().

◆ getChildren() [1/2]

MutableArrayRef< Stmt * > OMPChildren::getChildren ( )

Definition at line 33 of file StmtOpenMP.cpp.

Referenced by getChildren().

◆ getChildren() [2/2]

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

Definition at line 9900 of file OpenMPClause.h.

References getChildren().

◆ getClauses() [1/2]

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

Get the clauses storage.

Definition at line 9856 of file OpenMPClause.h.

Referenced by getClauses().

◆ getClauses() [2/2]

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

Definition at line 9859 of file OpenMPClause.h.

References getClauses().

◆ getInnermostCapturedStmt() [1/2]

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

Get innermost captured statement for the construct.

Definition at line 9883 of file OpenMPClause.h.

References getAssociatedStmt(), and hasAssociatedStmt().

Referenced by getInnermostCapturedStmt().

◆ getInnermostCapturedStmt() [2/2]

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

Definition at line 9894 of file OpenMPClause.h.

References getInnermostCapturedStmt().

◆ getNumChildren()

unsigned OMPChildren::getNumChildren ( ) const
inline

Definition at line 9829 of file OpenMPClause.h.

◆ getNumClauses()

unsigned OMPChildren::getNumClauses ( ) const
inline

Definition at line 9828 of file OpenMPClause.h.

◆ getRawStmt() [1/2]

Stmt * OMPChildren::getRawStmt ( )
inline

Definition at line 9904 of file OpenMPClause.h.

References getAssociatedStmt().

Referenced by getRawStmt().

◆ getRawStmt() [2/2]

const Stmt * OMPChildren::getRawStmt ( ) const
inline

Definition at line 9917 of file OpenMPClause.h.

References getRawStmt().

◆ hasAssociatedStmt()

bool OMPChildren::hasAssociatedStmt ( ) const
inline

Definition at line 9830 of file OpenMPClause.h.

Referenced by getInnermostCapturedStmt().

◆ setAssociatedStmt()

void OMPChildren::setAssociatedStmt ( Stmt * S)
inline

Set associated statement.

Definition at line 9833 of file OpenMPClause.h.

◆ setChildren()

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

References Children, and setClauses().

◆ 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 setChildren().

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 9794 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.

◆ OMPDeclarativeDirective

template<typename T>
friend class OMPDeclarativeDirective
friend

Definition at line 9796 of file OpenMPClause.h.

References OMPDeclarativeDirective.

Referenced by OMPDeclarativeDirective.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 9795 of file OpenMPClause.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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