clang  8.0.0svn
Public Member Functions | Static Public Member Functions | Friends | List of all members
OMPDependClause Class Referencefinal

This represents implicit clause 'depend' for the '#pragma omp task' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPDependClause:
Inheritance graph
[legend]
Collaboration diagram for OMPDependClause:
Collaboration graph
[legend]

Public Member Functions

OpenMPDependClauseKind getDependencyKind () const
 Get dependency type. More...
 
SourceLocation getDependencyLoc () const
 Get dependency type location. More...
 
SourceLocation getColonLoc () const
 Get colon location. More...
 
unsigned getNumLoops () const
 Get number of loops associated with the clause. More...
 
void setLoopData (unsigned NumLoop, Expr *Cnt)
 Set the loop data for the depend clauses with 'sink|source' kind of dependency. More...
 
ExprgetLoopData (unsigned NumLoop)
 Get the loop data. More...
 
const ExprgetLoopData (unsigned NumLoop) const
 
child_range children ()
 

Static Public Member Functions

static OMPDependClauseCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, OpenMPDependClauseKind DepKind, SourceLocation DepLoc, SourceLocation ColonLoc, ArrayRef< Expr *> VL, unsigned NumLoops)
 Creates clause with a list of variables VL. More...
 
static OMPDependClauseCreateEmpty (const ASTContext &C, unsigned N, unsigned NumLoops)
 Creates an empty clause with N variables. More...
 
static bool classof (const OMPClause *T)
 

Friends

class OMPClauseReader
 

Detailed Description

This represents implicit clause 'depend' for the '#pragma omp task' directive.

#pragma omp task depend(in:a,b)

In this example directive '#pragma omp task' with clause 'depend' with the variables 'a' and 'b' with dependency 'in'.

Definition at line 3108 of file OpenMPClause.h.

Member Function Documentation

◆ children()

child_range OMPDependClause::children ( )
inline

Definition at line 3209 of file OpenMPClause.h.

◆ classof()

static bool OMPDependClause::classof ( const OMPClause T)
inlinestatic

Definition at line 3214 of file OpenMPClause.h.

◆ Create()

OMPDependClause * OMPDependClause::Create ( const ASTContext C,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc,
OpenMPDependClauseKind  DepKind,
SourceLocation  DepLoc,
SourceLocation  ColonLoc,
ArrayRef< Expr *>  VL,
unsigned  NumLoops 
)
static

Creates clause with a list of variables VL.

Parameters
CAST context.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.
DepKindDependency type.
DepLocLocation of the dependency type.
ColonLocColon location.
VLList of references to the variables.
NumLoopsNumber of loops that is associated with this depend clause.

Definition at line 708 of file OpenMPClause.cpp.

References clang::ASTContext::Allocate().

◆ CreateEmpty()

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

Creates an empty clause with N variables.

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

Definition at line 725 of file OpenMPClause.cpp.

References clang::ASTContext::Allocate().

◆ getColonLoc()

SourceLocation OMPDependClause::getColonLoc ( ) const
inline

Get colon location.

Definition at line 3196 of file OpenMPClause.h.

References ColonLoc.

◆ getDependencyKind()

OpenMPDependClauseKind OMPDependClause::getDependencyKind ( ) const
inline

Get dependency type.

Definition at line 3190 of file OpenMPClause.h.

◆ getDependencyLoc()

SourceLocation OMPDependClause::getDependencyLoc ( ) const
inline

Get dependency type location.

Definition at line 3193 of file OpenMPClause.h.

◆ getLoopData() [1/2]

Expr * OMPDependClause::getLoopData ( unsigned  NumLoop)

Get the loop data.

Definition at line 741 of file OpenMPClause.cpp.

◆ getLoopData() [2/2]

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

Definition at line 751 of file OpenMPClause.cpp.

◆ getNumLoops()

unsigned OMPDependClause::getNumLoops ( ) const
inline

Get number of loops associated with the clause.

Definition at line 3199 of file OpenMPClause.h.

◆ setLoopData()

void OMPDependClause::setLoopData ( unsigned  NumLoop,
Expr Cnt 
)

Set the loop data for the depend clauses with 'sink|source' kind of dependency.

Definition at line 731 of file OpenMPClause.cpp.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 3111 of file OpenMPClause.h.


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