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

Member Function Documentation

◆ children() [1/2]

child_range OMPDoacrossClause::children ( )
inline

Definition at line 10220 of file OpenMPClause.h.

Referenced by children().

◆ children() [2/2]

const_child_range OMPDoacrossClause::children ( ) const
inline

Definition at line 10225 of file OpenMPClause.h.

References children().

◆ classof()

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

Definition at line 10236 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 1812 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 1830 of file OpenMPClause.cpp.

References clang::C.

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

◆ getColonLoc()

SourceLocation OMPDoacrossClause::getColonLoc ( ) const
inline

Get colon location.

Definition at line 10208 of file OpenMPClause.h.

◆ getDependenceLoc()

SourceLocation OMPDoacrossClause::getDependenceLoc ( ) const
inline

Get dependence type location.

Definition at line 10205 of file OpenMPClause.h.

◆ getDependenceType()

OpenMPDoacrossClauseModifier OMPDoacrossClause::getDependenceType ( ) const
inline

Get dependence type.

Definition at line 10202 of file OpenMPClause.h.

◆ getLoopData() [1/2]

Expr * OMPDoacrossClause::getLoopData ( unsigned NumLoop)

Get the loop data.

Definition at line 1844 of file OpenMPClause.cpp.

◆ getLoopData() [2/2]

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

Definition at line 1850 of file OpenMPClause.cpp.

◆ getNumLoops()

unsigned OMPDoacrossClause::getNumLoops ( ) const
inline

Get number of loops associated with the clause.

Definition at line 10211 of file OpenMPClause.h.

◆ setLoopData()

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

Set the loop data.

Definition at line 1838 of file OpenMPClause.cpp.

◆ used_children() [1/2]

child_range OMPDoacrossClause::used_children ( )
inline

Definition at line 10229 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPDoacrossClause::used_children ( ) const
inline

Definition at line 10232 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 10127 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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