clang  3.9.0
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 <OpenMPClause.h>

Inheritance diagram for OMPDependClause:
[legend]
Collaboration diagram for OMPDependClause:
[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...
 
void setCounterValue (Expr *V)
 Set the loop counter value for the depend clauses with 'sink|source' kind of dependency. More...
 
ExprgetCounterValue ()
 Get the loop counter value. More...
 
const ExprgetCounterValue () const
 Get the loop counter value. More...
 
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)
 Creates clause with a list of variables VL. More...
 
static OMPDependClauseCreateEmpty (const ASTContext &C, unsigned N)
 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 2578 of file OpenMPClause.h.

Member Function Documentation

child_range OMPDependClause::children ( )
inline

Definition at line 2658 of file OpenMPClause.h.

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

Definition at line 2663 of file OpenMPClause.h.

OMPDependClause * OMPDependClause::Create ( const ASTContext C,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc,
OpenMPDependClauseKind  DepKind,
SourceLocation  DepLoc,
SourceLocation  ColonLoc,
ArrayRef< Expr * >  VL 
)
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.

Definition at line 521 of file OpenMPClause.cpp.

References clang::ASTContext::Allocate(), and setCounterValue().

Referenced by clang::Sema::ActOnOpenMPDependClause().

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

Creates an empty clause with N variables.

Parameters
CAST context.
NThe number of variables.

Definition at line 536 of file OpenMPClause.cpp.

References clang::ASTContext::Allocate().

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

SourceLocation OMPDependClause::getColonLoc ( ) const
inline

Get colon location.

Definition at line 2648 of file OpenMPClause.h.

References ColonLoc.

Expr * OMPDependClause::getCounterValue ( )

Get the loop counter value.

Definition at line 554 of file OpenMPClause.cpp.

Referenced by clang::CodeGen::emitDoacrossOrdered().

const Expr * OMPDependClause::getCounterValue ( ) const

Get the loop counter value.

Definition at line 547 of file OpenMPClause.cpp.

OpenMPDependClauseKind OMPDependClause::getDependencyKind ( ) const
inline

Get dependency type.

Definition at line 2644 of file OpenMPClause.h.

Referenced by clang::CodeGen::emitDoacrossOrdered().

SourceLocation OMPDependClause::getDependencyLoc ( ) const
inline

Get dependency type location.

Definition at line 2646 of file OpenMPClause.h.

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 541 of file OpenMPClause.cpp.

Referenced by Create().

Friends And Related Function Documentation

friend class OMPClauseReader
friend

Definition at line 2583 of file OpenMPClause.h.


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