clang
8.0.0
|
This represents implicit clause 'depend' for the '#pragma omp task' directive. More...
#include "clang/AST/OpenMPClause.h"
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... | |
Expr * | getLoopData (unsigned NumLoop) |
Get the loop data. More... | |
const Expr * | getLoopData (unsigned NumLoop) const |
child_range | children () |
Static Public Member Functions | |
static OMPDependClause * | Create (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 OMPDependClause * | CreateEmpty (const ASTContext &C, unsigned N, unsigned NumLoops) |
Creates an empty clause with N variables. More... | |
static bool | classof (const OMPClause *T) |
Friends | |
class | OMPClauseReader |
This represents implicit clause 'depend' for the '#pragma omp task' directive.
In this example directive '#pragma omp task' with clause 'depend' with the variables 'a' and 'b' with dependency 'in'.
Definition at line 3312 of file OpenMPClause.h.
|
inline |
Definition at line 3413 of file OpenMPClause.h.
Definition at line 3418 of file OpenMPClause.h.
|
static |
Creates clause with a list of variables VL.
C | AST context. |
StartLoc | Starting location of the clause. |
LParenLoc | Location of '('. |
EndLoc | Ending location of the clause. |
DepKind | Dependency type. |
DepLoc | Location of the dependency type. |
ColonLoc | Colon location. |
VL | List of references to the variables. |
NumLoops | Number of loops that is associated with this depend clause. |
Definition at line 719 of file OpenMPClause.cpp.
References clang::ASTContext::Allocate(), and setLoopData().
|
static |
Creates an empty clause with N variables.
C | AST context. |
N | The number of variables. |
NumLoops | Number of loops that is associated with this depend clause. |
Definition at line 736 of file OpenMPClause.cpp.
References clang::ASTContext::Allocate().
|
inline |
Get colon location.
Definition at line 3400 of file OpenMPClause.h.
References ColonLoc.
Referenced by clang::TreeTransform< Derived >::TransformOMPExecutableDirective(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().
|
inline |
Get dependency type.
Definition at line 3394 of file OpenMPClause.h.
Referenced by OMPIsDevicePtrClause::CreateEmpty(), clang::CodeGen::emitDeclareSimdFunction(), clang::TreeTransform< Derived >::TransformOMPExecutableDirective(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().
|
inline |
Get dependency type location.
Definition at line 3397 of file OpenMPClause.h.
Referenced by clang::TreeTransform< Derived >::TransformOMPExecutableDirective(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().
Expr * OMPDependClause::getLoopData | ( | unsigned | NumLoop | ) |
Get the loop data.
Definition at line 752 of file OpenMPClause.cpp.
Referenced by clang::CodeGen::emitDeclareSimdFunction(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().
const Expr * OMPDependClause::getLoopData | ( | unsigned | NumLoop | ) | const |
Definition at line 762 of file OpenMPClause.cpp.
|
inline |
Get number of loops associated with the clause.
Definition at line 3403 of file OpenMPClause.h.
Referenced by clang::CodeGen::emitDeclareSimdFunction(), clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate(), and clang::OMPClauseReader::VisitOMPClauseWithPostUpdate().
void OMPDependClause::setLoopData | ( | unsigned | NumLoop, |
Expr * | Cnt | ||
) |
Set the loop data for the depend clauses with 'sink|source' kind of dependency.
Definition at line 742 of file OpenMPClause.cpp.
Referenced by Create(), and clang::OMPClauseReader::VisitOMPClauseWithPostUpdate().
|
friend |
Definition at line 3315 of file OpenMPClause.h.