class OMPDependClause

Declaration

class OMPDependClause : public OMPVarListClause,
                        private TrailingObjects { /* full declaration omitted */ };

Description

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'.

Declared at: clang/include/clang/AST/OpenMPClause.h:4742

Inherits from: OMPVarListClause, TrailingObjects

Member Variables

private clang::OMPDependClause::DependDataTy Data
Dependency type and source locations.
private unsigned int NumLoops = 0
Number of loops, associated with the depend clause.

Method Overview

  • public static clang::OMPDependClause * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc, clang::OMPDependClause::DependDataTy Data, clang::Expr * DepModifier, ArrayRef<clang::Expr *> VL, unsigned int NumLoops)
  • public static clang::OMPDependClause * CreateEmpty(const clang::ASTContext & C, unsigned int N, unsigned int NumLoops)
  • private OMPDependClause(unsigned int N, unsigned int NumLoops)
  • private OMPDependClause(clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc, unsigned int N, unsigned int NumLoops)
  • public clang::OMPClause::const_child_range children() const
  • public clang::OMPClause::child_range children()
  • public static bool classof(const clang::OMPClause * T)
  • public clang::SourceLocation getColonLoc() const
  • public clang::OpenMPDependClauseKind getDependencyKind() const
  • public clang::SourceLocation getDependencyLoc() const
  • public const clang::Expr * getLoopData(unsigned int NumLoop) const
  • public clang::Expr * getLoopData(unsigned int NumLoop)
  • public clang::Expr * getModifier()
  • public const clang::Expr * getModifier() const
  • public unsigned int getNumLoops() const
  • public clang::SourceLocation getOmpAllMemoryLoc() const
  • private void setColonLoc(clang::SourceLocation Loc)
  • private void setDependencyKind(clang::OpenMPDependClauseKind K)
  • private void setDependencyLoc(clang::SourceLocation Loc)
  • public void setLoopData(unsigned int NumLoop, clang::Expr * Cnt)
  • private void setModifier(clang::Expr * DepModifier)
  • private void setOmpAllMemoryLoc(clang::SourceLocation Loc)
  • public clang::OMPClause::child_range used_children()
  • public clang::OMPClause::const_child_range used_children() const

Methods

static clang::OMPDependClause* Create(
    const clang::ASTContext& C,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc,
    clang::OMPDependClause::DependDataTy Data,
    clang::Expr* DepModifier,
    ArrayRef<clang::Expr*> VL,
    unsigned int NumLoops)

Description

Creates clause with a list of variables \a VL.

Declared at: clang/include/clang/AST/OpenMPClause.h:4822

Parameters

const clang::ASTContext& C
AST context.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.
clang::OMPDependClause::DependDataTy Data
Dependency type and source locations.
clang::Expr* DepModifier
ArrayRef<clang::Expr*> VL
List of references to the variables.
unsigned int NumLoops
Number of loops that is associated with this depend clause.

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

Description

Creates an empty clause with \a N variables.

Declared at: clang/include/clang/AST/OpenMPClause.h:4834

Parameters

const clang::ASTContext& C
AST context.
unsigned int N
The number of variables.
unsigned int NumLoops
Number of loops that is associated with this depend clause.

OMPDependClause(unsigned int N,
                unsigned int NumLoops)

Description

Build an empty clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:4790

Parameters

unsigned int N
Number of variables.
unsigned int NumLoops
Number of loops that is associated with this depend clause.

OMPDependClause(clang::SourceLocation StartLoc,
                clang::SourceLocation LParenLoc,
                clang::SourceLocation EndLoc,
                unsigned int N,
                unsigned int NumLoops)

Description

Build clause with number of variables \a N.

Declared at: clang/include/clang/AST/OpenMPClause.h:4779

Parameters

clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.
unsigned int N
Number of the variables in the clause.
unsigned int NumLoops
Number of loops that is associated with this depend clause.

clang::OMPClause::const_child_range children()
    const

Declared at: clang/include/clang/AST/OpenMPClause.h:4871

clang::OMPClause::child_range children()

Declared at: clang/include/clang/AST/OpenMPClause.h:4866

static bool classof(const clang::OMPClause* T)

Declared at: clang/include/clang/AST/OpenMPClause.h:4883

Parameters

const clang::OMPClause* T

clang::SourceLocation getColonLoc() const

Description

Get colon location.

Declared at: clang/include/clang/AST/OpenMPClause.h:4844

clang::OpenMPDependClauseKind getDependencyKind()
    const

Description

Get dependency type.

Declared at: clang/include/clang/AST/OpenMPClause.h:4838

clang::SourceLocation getDependencyLoc() const

Description

Get dependency type location.

Declared at: clang/include/clang/AST/OpenMPClause.h:4841

const clang::Expr* getLoopData(
    unsigned int NumLoop) const

Declared at: clang/include/clang/AST/OpenMPClause.h:4864

Parameters

unsigned int NumLoop

clang::Expr* getLoopData(unsigned int NumLoop)

Description

Get the loop data.

Declared at: clang/include/clang/AST/OpenMPClause.h:4863

Parameters

unsigned int NumLoop

clang::Expr* getModifier()

Description

Return optional depend modifier.

Declared at: clang/include/clang/AST/OpenMPClause.h:4850

const clang::Expr* getModifier() const

Declared at: clang/include/clang/AST/OpenMPClause.h:4851

unsigned int getNumLoops() const

Description

Get number of loops associated with the clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:4856

clang::SourceLocation getOmpAllMemoryLoc() const

Description

Get 'omp_all_memory' location.

Declared at: clang/include/clang/AST/OpenMPClause.h:4847

void setColonLoc(clang::SourceLocation Loc)

Description

Set colon location.

Declared at: clang/include/clang/AST/OpenMPClause.h:4803

Parameters

clang::SourceLocation Loc

void setDependencyKind(
    clang::OpenMPDependClauseKind K)

Description

Set dependency kind.

Declared at: clang/include/clang/AST/OpenMPClause.h:4797

Parameters

clang::OpenMPDependClauseKind K

void setDependencyLoc(clang::SourceLocation Loc)

Description

Set dependency kind and its location.

Declared at: clang/include/clang/AST/OpenMPClause.h:4800

Parameters

clang::SourceLocation Loc

void setLoopData(unsigned int NumLoop,
                 clang::Expr* Cnt)

Description

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

Declared at: clang/include/clang/AST/OpenMPClause.h:4860

Parameters

unsigned int NumLoop
clang::Expr* Cnt

void setModifier(clang::Expr* DepModifier)

Description

Sets optional dependency modifier.

Declared at: clang/include/clang/AST/OpenMPClause.h:4809

Parameters

clang::Expr* DepModifier

void setOmpAllMemoryLoc(clang::SourceLocation Loc)

Description

Set the 'omp_all_memory' location.

Declared at: clang/include/clang/AST/OpenMPClause.h:4806

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

Declared at: clang/include/clang/AST/OpenMPClause.h:4876

clang::OMPClause::const_child_range
used_children() const

Declared at: clang/include/clang/AST/OpenMPClause.h:4879