clang
6.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... | |
void | setCounterValue (Expr *V) |
Set the loop counter value for the depend clauses with 'sink|source' kind of dependency. More... | |
Expr * | getCounterValue () |
Get the loop counter value. More... | |
const Expr * | getCounterValue () const |
Get the loop counter value. More... | |
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) |
Creates clause with a list of variables VL. More... | |
static OMPDependClause * | CreateEmpty (const ASTContext &C, unsigned N) |
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 3074 of file OpenMPClause.h.
|
inline |
Definition at line 3159 of file OpenMPClause.h.
Definition at line 3164 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. |
Definition at line 656 of file OpenMPClause.cpp.
References clang::ASTContext::Allocate(), and setCounterValue().
|
static |
Creates an empty clause with N variables.
C | AST context. |
N | The number of variables. |
Definition at line 671 of file OpenMPClause.cpp.
References clang::ASTContext::Allocate().
|
inline |
Get colon location.
Definition at line 3147 of file OpenMPClause.h.
References ColonLoc.
Referenced by clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().
Expr * OMPDependClause::getCounterValue | ( | ) |
Get the loop counter value.
Definition at line 689 of file OpenMPClause.cpp.
Referenced by clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().
const Expr * OMPDependClause::getCounterValue | ( | ) | const |
Get the loop counter value.
Definition at line 682 of file OpenMPClause.cpp.
|
inline |
Get dependency type.
Definition at line 3141 of file OpenMPClause.h.
Referenced by clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().
|
inline |
Get dependency type location.
Definition at line 3144 of file OpenMPClause.h.
Referenced by clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().
void OMPDependClause::setCounterValue | ( | Expr * | V | ) |
Set the loop counter value for the depend clauses with 'sink|source' kind of dependency.
Required for codegen.
Definition at line 676 of file OpenMPClause.cpp.
Referenced by Create().
|
friend |
Definition at line 3077 of file OpenMPClause.h.