class OMPOrderedClause

Declaration

class OMPOrderedClause : public OMPClause, private TrailingObjects { /* full declaration omitted */ };

Description

This represents 'ordered' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp for' has 'ordered' clause with parameter 2.

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

Inherits from: OMPClause, TrailingObjects

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::Stmt* NumForLoops = nullptr
Number of for-loops.
private unsigned int NumberOfLoops = 0
Real number of loops.

Method Overview

  • public static clang::OMPOrderedClause * Create(const clang::ASTContext & C, clang::Expr * Num, unsigned int NumLoops, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
  • public static clang::OMPOrderedClause * CreateEmpty(const clang::ASTContext & C, unsigned int NumLoops)
  • private OMPOrderedClause(unsigned int NumLoops)
  • private OMPOrderedClause(clang::Expr * Num, unsigned int NumLoops, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
  • 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 getLParenLoc() const
  • public clang::Expr * getLoopCounter(unsigned int NumLoop)
  • public const clang::Expr * getLoopCounter(unsigned int NumLoop) const
  • public ArrayRef<clang::Expr *> getLoopNumIterations() const
  • public clang::Expr * getNumForLoops() const
  • public void setLParenLoc(clang::SourceLocation Loc)
  • public void setLoopCounter(unsigned int NumLoop, clang::Expr * Counter)
  • public void setLoopNumIterations(unsigned int NumLoop, clang::Expr * NumIterations)
  • private void setNumForLoops(clang::Expr * Num)
  • public clang::OMPClause::child_range used_children()
  • public clang::OMPClause::const_child_range used_children() const

Inherited from OMPClause:

Methods

static clang::OMPOrderedClause* Create(
    const clang::ASTContext& C,
    clang::Expr* Num,
    unsigned int NumLoops,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc)

Description

Build 'ordered' clause.

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

Parameters

const clang::ASTContext& C
clang::Expr* Num
Expression, possibly associated with this clause.
unsigned int NumLoops
Number of loops, associated with this clause.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.

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

Description

Build an empty clause.

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

Parameters

const clang::ASTContext& C
unsigned int NumLoops

OMPOrderedClause(unsigned int NumLoops)

Description

Build an empty clause.

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

Parameters

unsigned int NumLoops

OMPOrderedClause(clang::Expr* Num,
                 unsigned int NumLoops,
                 clang::SourceLocation StartLoc,
                 clang::SourceLocation LParenLoc,
                 clang::SourceLocation EndLoc)

Description

Build 'ordered' clause.

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

Parameters

clang::Expr* Num
Expression, possibly associated with this clause.
unsigned int NumLoops
Number of loops, associated with this clause.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.

clang::OMPClause::const_child_range children()
    const

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

clang::OMPClause::child_range children()

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

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

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

Parameters

const clang::OMPClause* T

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

clang::Expr* getLoopCounter(unsigned int NumLoop)

Description

Get loops counter for the specified loop.

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

Parameters

unsigned int NumLoop

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

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

Parameters

unsigned int NumLoop

ArrayRef<clang::Expr*> getLoopNumIterations()
    const

Description

Get number of iterations for all the loops.

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

clang::Expr* getNumForLoops() const

Description

Return the number of associated for-loops.

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

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

void setLoopCounter(unsigned int NumLoop,
                    clang::Expr* Counter)

Description

Set loop counter for the specified loop.

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

Parameters

unsigned int NumLoop
clang::Expr* Counter

void setLoopNumIterations(
    unsigned int NumLoop,
    clang::Expr* NumIterations)

Description

Set number of iterations for the specified loop.

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

Parameters

unsigned int NumLoop
clang::Expr* NumIterations

void setNumForLoops(clang::Expr* Num)

Description

Set the number of associated for-loops.

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

Parameters

clang::Expr* Num

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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