clang 22.0.0git
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:
[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 9592 of file OpenMPClause.h.

Member Function Documentation

◆ getAssociatedStmt() [1/2]

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

Definition at line 9650 of file OpenMPClause.h.

◆ getAssociatedStmt() [2/2]

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

Returns statement associated with the directive.

Definition at line 9647 of file OpenMPClause.h.

References getAssociatedStmt().

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

◆ getAssociatedStmtAsRange()

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

Definition at line 9722 of file OpenMPClause.h.

◆ 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 9669 of file OpenMPClause.h.

References clang::cast(), and getAssociatedStmt().

◆ getChildren() [1/2]

MutableArrayRef< Stmt * > OMPChildren::getChildren ( )

Definition at line 33 of file StmtOpenMP.cpp.

Referenced by getChildren().

◆ getChildren() [2/2]

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

Definition at line 9701 of file OpenMPClause.h.

References getChildren().

◆ getClauses() [1/2]

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

Get the clauses storage.

Definition at line 9657 of file OpenMPClause.h.

Referenced by getClauses().

◆ getClauses() [2/2]

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

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

References clang::cast(), getAssociatedStmt(), and hasAssociatedStmt().

Referenced by getInnermostCapturedStmt().

◆ getInnermostCapturedStmt() [2/2]

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

Definition at line 9695 of file OpenMPClause.h.

References getInnermostCapturedStmt().

◆ getNumChildren()

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

Definition at line 9630 of file OpenMPClause.h.

◆ getNumClauses()

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

Definition at line 9629 of file OpenMPClause.h.

◆ getRawStmt() [1/2]

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

Definition at line 9705 of file OpenMPClause.h.

References getAssociatedStmt().

Referenced by getRawStmt().

◆ getRawStmt() [2/2]

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

Definition at line 9718 of file OpenMPClause.h.

References getRawStmt().

◆ hasAssociatedStmt()

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

Definition at line 9631 of file OpenMPClause.h.

Referenced by getInnermostCapturedStmt().

◆ setAssociatedStmt()

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

Set associated statement.

Definition at line 9634 of file OpenMPClause.h.

◆ setChildren()

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

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

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 9595 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.

◆ OMPDeclarativeDirective

template<typename T>
friend class OMPDeclarativeDirective
friend

Definition at line 9597 of file OpenMPClause.h.

References OMPDeclarativeDirective.

Referenced by OMPDeclarativeDirective.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 9596 of file OpenMPClause.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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