clang  8.0.0svn
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::OMPOrderedClause Class Referencefinal

This represents 'ordered' clause in the '#pragma omp ...' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPOrderedClause:
Inheritance graph
[legend]
Collaboration diagram for clang::OMPOrderedClause:
Collaboration graph
[legend]

Public Member Functions

void setLParenLoc (SourceLocation Loc)
 Sets the location of '('. More...
 
SourceLocation getLParenLoc () const
 Returns the location of '('. More...
 
ExprgetNumForLoops () const
 Return the number of associated for-loops. More...
 
void setLoopNumIterations (unsigned NumLoop, Expr *NumIterations)
 Set number of iterations for the specified loop. More...
 
ArrayRef< Expr * > getLoopNumIterations () const
 Get number of iterations for all the loops. More...
 
void setLoopCounter (unsigned NumLoop, Expr *Counter)
 Set loop counter for the specified loop. More...
 
ExprgetLoopCunter (unsigned NumLoop)
 Get loops counter for the specified loop. More...
 
const ExprgetLoopCunter (unsigned NumLoop) const
 
child_range children ()
 
- Public Member Functions inherited from clang::OMPClause
 LLVM_ATTRIBUTE_DEPRECATED (SourceLocation getLocStart() const LLVM_READONLY, "Use getBeginLoc instead")
 Returns the starting location of the clause. More...
 
SourceLocation getBeginLoc () const
 
 LLVM_ATTRIBUTE_DEPRECATED (SourceLocation getLocEnd() const LLVM_READONLY, "Use getEndLoc instead")
 Returns the ending location of the clause. More...
 
SourceLocation getEndLoc () const
 
void setLocStart (SourceLocation Loc)
 Sets the starting location of the clause. More...
 
void setLocEnd (SourceLocation Loc)
 Sets the ending location of the clause. More...
 
OpenMPClauseKind getClauseKind () const
 Returns kind of OpenMP clause (private, shared, reduction, etc.). More...
 
bool isImplicit () const
 
child_range children ()
 
const_child_range children () const
 

Static Public Member Functions

static OMPOrderedClauseCreate (const ASTContext &C, Expr *Num, unsigned NumLoops, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'ordered' clause. More...
 
static OMPOrderedClauseCreateEmpty (const ASTContext &C, unsigned NumLoops)
 Build an empty clause. More...
 
static bool classof (const OMPClause *T)
 
- Static Public Member Functions inherited from clang::OMPClause
static bool classof (const OMPClause *)
 

Friends

class OMPClauseReader
 

Additional Inherited Members

- Public Types inherited from clang::OMPClause
using child_iterator = StmtIterator
 
using const_child_iterator = ConstStmtIterator
 
using child_range = llvm::iterator_range< child_iterator >
 
using const_child_range = llvm::iterator_range< const_child_iterator >
 
- Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
 

Detailed Description

This represents 'ordered' clause in the '#pragma omp ...' directive.

#pragma omp for ordered (2)

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

Definition at line 933 of file OpenMPClause.h.

Member Function Documentation

◆ children()

child_range clang::OMPOrderedClause::children ( )
inline

Definition at line 1004 of file OpenMPClause.h.

◆ classof()

static bool clang::OMPOrderedClause::classof ( const OMPClause T)
inlinestatic

Definition at line 1006 of file OpenMPClause.h.

References clang::OMPClause::getClauseKind().

◆ Create()

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

Build 'ordered' clause.

Parameters
NumExpression, possibly associated with this clause.
NumLoopsNumber of loops, associated with this clause.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 184 of file OpenMPClause.cpp.

References clang::ASTContext::Allocate().

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

◆ CreateEmpty()

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

Build an empty clause.

Definition at line 199 of file OpenMPClause.cpp.

References clang::ASTContext::Allocate().

◆ getLoopCunter() [1/2]

Expr * OMPOrderedClause::getLoopCunter ( unsigned  NumLoop)

Get loops counter for the specified loop.

Definition at line 225 of file OpenMPClause.cpp.

◆ getLoopCunter() [2/2]

const Expr * OMPOrderedClause::getLoopCunter ( unsigned  NumLoop) const

Definition at line 230 of file OpenMPClause.cpp.

◆ getLoopNumIterations()

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

Get number of iterations for all the loops.

Definition at line 216 of file OpenMPClause.cpp.

Referenced by clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

◆ getLParenLoc()

SourceLocation clang::OMPOrderedClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 988 of file OpenMPClause.h.

◆ getNumForLoops()

Expr* clang::OMPOrderedClause::getNumForLoops ( ) const
inline

Return the number of associated for-loops.

Definition at line 991 of file OpenMPClause.h.

Referenced by clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

◆ setLoopCounter()

void OMPOrderedClause::setLoopCounter ( unsigned  NumLoop,
Expr Counter 
)

Set loop counter for the specified loop.

Definition at line 220 of file OpenMPClause.cpp.

◆ setLoopNumIterations()

void OMPOrderedClause::setLoopNumIterations ( unsigned  NumLoop,
Expr NumIterations 
)

Set number of iterations for the specified loop.

Definition at line 210 of file OpenMPClause.cpp.

◆ setLParenLoc()

void clang::OMPOrderedClause::setLParenLoc ( SourceLocation  Loc)
inline

Sets the location of '('.

Definition at line 985 of file OpenMPClause.h.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 936 of file OpenMPClause.h.


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