clang 23.0.0git
OMPDoacrossClause Class Referencefinal

This represents the 'doacross' clause for the '#pragma omp ordered' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPDoacrossClause:
[legend]

Public Member Functions

OpenMPDoacrossClauseModifier getDependenceType () const
 Get dependence type.
SourceLocation getDependenceLoc () const
 Get dependence type location.
SourceLocation getColonLoc () const
 Get colon location.
unsigned getNumLoops () const
 Get number of loops associated with the clause.
void setLoopData (unsigned NumLoop, Expr *Cnt)
 Set the loop data.
ExprgetLoopData (unsigned NumLoop)
 Get the loop data.
const ExprgetLoopData (unsigned NumLoop) const
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const

Static Public Member Functions

static OMPDoacrossClauseCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, OpenMPDoacrossClauseModifier DepType, SourceLocation DepLoc, SourceLocation ColonLoc, ArrayRef< Expr * > VL, unsigned NumLoops)
 Creates clause with a list of expressions VL.
static OMPDoacrossClauseCreateEmpty (const ASTContext &C, unsigned N, unsigned NumLoops)
 Creates an empty clause with N expressions.
static bool classof (const OMPClause *T)

Friends

class OMPClauseReader

Detailed Description

This represents the 'doacross' clause for the '#pragma omp ordered' directive.

#pragma omp ordered doacross(sink: i-1, j-1)

In this example directive '#pragma omp ordered' with clause 'doacross' with a dependence-type 'sink' and loop-iteration vector expressions i-1 and j-1.

Definition at line 10129 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPDoacrossClause::children ( )
inline

Definition at line 10225 of file OpenMPClause.h.

Referenced by children().

◆ children() [2/2]

const_child_range OMPDoacrossClause::children ( ) const
inline

Definition at line 10230 of file OpenMPClause.h.

References children().

◆ classof()

bool OMPDoacrossClause::classof ( const OMPClause * T)
inlinestatic

Definition at line 10241 of file OpenMPClause.h.

◆ Create()

OMPDoacrossClause * OMPDoacrossClause::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation EndLoc,
OpenMPDoacrossClauseModifier DepType,
SourceLocation DepLoc,
SourceLocation ColonLoc,
ArrayRef< Expr * > VL,
unsigned NumLoops )
static

Creates clause with a list of expressions VL.

Parameters
CAST context.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.
DepTypeThe dependence type.
DepLocLocation of the dependence type.
ColonLocLocation of ':'.
VLList of references to the expressions.
NumLoopsNumber of loops that associated with the clause.

Definition at line 1813 of file OpenMPClause.cpp.

References clang::C.

Referenced by clang::SemaOpenMP::ActOnOpenMPDoacrossClause().

◆ CreateEmpty()

OMPDoacrossClause * OMPDoacrossClause::CreateEmpty ( const ASTContext & C,
unsigned N,
unsigned NumLoops )
static

Creates an empty clause with N expressions.

Parameters
CAST context.
NThe number of expressions.
NumLoopsNumber of loops that is associated with this clause.

Definition at line 1831 of file OpenMPClause.cpp.

References clang::C.

Referenced by clang::OMPClauseReader::readClause().

◆ getColonLoc()

SourceLocation OMPDoacrossClause::getColonLoc ( ) const
inline

Get colon location.

Definition at line 10213 of file OpenMPClause.h.

◆ getDependenceLoc()

SourceLocation OMPDoacrossClause::getDependenceLoc ( ) const
inline

Get dependence type location.

Definition at line 10210 of file OpenMPClause.h.

◆ getDependenceType()

OpenMPDoacrossClauseModifier OMPDoacrossClause::getDependenceType ( ) const
inline

Get dependence type.

Definition at line 10207 of file OpenMPClause.h.

◆ getLoopData() [1/2]

Expr * OMPDoacrossClause::getLoopData ( unsigned NumLoop)

Get the loop data.

Definition at line 1845 of file OpenMPClause.cpp.

◆ getLoopData() [2/2]

const Expr * OMPDoacrossClause::getLoopData ( unsigned NumLoop) const

Definition at line 1851 of file OpenMPClause.cpp.

◆ getNumLoops()

unsigned OMPDoacrossClause::getNumLoops ( ) const
inline

Get number of loops associated with the clause.

Definition at line 10216 of file OpenMPClause.h.

◆ setLoopData()

void OMPDoacrossClause::setLoopData ( unsigned NumLoop,
Expr * Cnt )

Set the loop data.

Definition at line 1839 of file OpenMPClause.cpp.

◆ used_children() [1/2]

child_range OMPDoacrossClause::used_children ( )
inline

Definition at line 10234 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPDoacrossClause::used_children ( ) const
inline

Definition at line 10237 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 10132 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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