clang  6.0.0svn
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::OMPScheduleClause Class Reference

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

#include "clang/AST/OpenMPClause.h"

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

Public Member Functions

 OMPScheduleClause (SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation KLoc, SourceLocation CommaLoc, SourceLocation EndLoc, OpenMPScheduleClauseKind Kind, Expr *ChunkSize, Stmt *HelperChunkSize, OpenMPScheduleClauseModifier M1, SourceLocation M1Loc, OpenMPScheduleClauseModifier M2, SourceLocation M2Loc)
 Build 'schedule' clause with schedule kind Kind and chunk size expression ChunkSize. More...
 
 OMPScheduleClause ()
 Build an empty clause. More...
 
OpenMPScheduleClauseKind getScheduleKind () const
 Get kind of the clause. More...
 
OpenMPScheduleClauseModifier getFirstScheduleModifier () const
 Get the first modifier of the clause. More...
 
OpenMPScheduleClauseModifier getSecondScheduleModifier () const
 Get the second modifier of the clause. More...
 
SourceLocation getLParenLoc ()
 Get location of '('. More...
 
SourceLocation getScheduleKindLoc ()
 Get kind location. More...
 
SourceLocation getFirstScheduleModifierLoc () const
 Get the first modifier location. More...
 
SourceLocation getSecondScheduleModifierLoc () const
 Get the second modifier location. More...
 
SourceLocation getCommaLoc ()
 Get location of ','. More...
 
ExprgetChunkSize ()
 Get chunk size. More...
 
const ExprgetChunkSize () const
 Get chunk size. More...
 
child_range children ()
 
- Public Member Functions inherited from clang::OMPClause
SourceLocation getLocStart () const
 Returns the starting location of the clause. More...
 
SourceLocation getLocEnd () const
 Returns the ending location of the clause. More...
 
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
 
- Public Member Functions inherited from clang::OMPClauseWithPreInit
const StmtgetPreInitStmt () const
 Get pre-initialization statement for the clause. More...
 
StmtgetPreInitStmt ()
 Get pre-initialization statement for the clause. More...
 
OpenMPDirectiveKind getCaptureRegion ()
 Get capture region for the stmt in the clause. More...
 

Static Public Member Functions

static bool classof (const OMPClause *T)
 
- Static Public Member Functions inherited from clang::OMPClause
static bool classof (const OMPClause *)
 
- Static Public Member Functions inherited from clang::OMPClauseWithPreInit
static OMPClauseWithPreInitget (OMPClause *C)
 
static const OMPClauseWithPreInitget (const OMPClause *C)
 

Friends

class OMPClauseReader
 

Additional Inherited Members

- Public Types inherited from clang::OMPClause
typedef StmtIterator child_iterator
 
typedef ConstStmtIterator const_child_iterator
 
typedef llvm::iterator_range< child_iteratorchild_range
 
typedef llvm::iterator_range< const_child_iteratorconst_child_range
 
- Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
 
- Protected Member Functions inherited from clang::OMPClauseWithPreInit
void setPreInitStmt (Stmt *S, OpenMPDirectiveKind ThisRegion=OMPD_unknown)
 Set pre-initialization statement for the clause. More...
 
 OMPClauseWithPreInit (const OMPClause *This)
 

Detailed Description

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

#pragma omp for schedule(static, 3)

In this example directive '#pragma omp for' has 'schedule' clause with arguments 'static' and '3'.

Definition at line 722 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPScheduleClause() [1/2]

clang::OMPScheduleClause::OMPScheduleClause ( SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  KLoc,
SourceLocation  CommaLoc,
SourceLocation  EndLoc,
OpenMPScheduleClauseKind  Kind,
Expr ChunkSize,
Stmt HelperChunkSize,
OpenMPScheduleClauseModifier  M1,
SourceLocation  M1Loc,
OpenMPScheduleClauseModifier  M2,
SourceLocation  M2Loc 
)
inline

Build 'schedule' clause with schedule kind Kind and chunk size expression ChunkSize.

Parameters
StartLocStarting location of the clause.
LParenLocLocation of '('.
KLocStarting location of the argument.
CommaLocLocation of ','.
EndLocEnding location of the clause.
KindSchedule kind.
ChunkSizeChunk size.
HelperChunkSizeHelper chunk size for combined directives.
M1The first modifier applied to 'schedule' clause.
M1LocLocation of the first modifier
M2The second modifier applied to 'schedule' clause.
M2LocLocation of the second modifier

Definition at line 819 of file OpenMPClause.h.

◆ OMPScheduleClause() [2/2]

clang::OMPScheduleClause::OMPScheduleClause ( )
inlineexplicit

Build an empty clause.

Definition at line 837 of file OpenMPClause.h.

References clang::OMPC_SCHEDULE_MODIFIER_unknown.

Member Function Documentation

◆ children()

child_range clang::OMPScheduleClause::children ( )
inline

Definition at line 888 of file OpenMPClause.h.

◆ classof()

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

Definition at line 884 of file OpenMPClause.h.

References clang::OMPClause::getClauseKind().

◆ getChunkSize() [1/2]

Expr* clang::OMPScheduleClause::getChunkSize ( )
inline

Get chunk size.

Definition at line 879 of file OpenMPClause.h.

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

◆ getChunkSize() [2/2]

const Expr* clang::OMPScheduleClause::getChunkSize ( ) const
inline

Get chunk size.

Definition at line 882 of file OpenMPClause.h.

◆ getCommaLoc()

SourceLocation clang::OMPScheduleClause::getCommaLoc ( )
inline

Get location of ','.

Definition at line 876 of file OpenMPClause.h.

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

◆ getFirstScheduleModifier()

OpenMPScheduleClauseModifier clang::OMPScheduleClause::getFirstScheduleModifier ( ) const
inline

Get the first modifier of the clause.

Definition at line 850 of file OpenMPClause.h.

Referenced by clang::Sema::ActOnOpenMPRegionEnd(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

◆ getFirstScheduleModifierLoc()

SourceLocation clang::OMPScheduleClause::getFirstScheduleModifierLoc ( ) const
inline

Get the first modifier location.

Definition at line 866 of file OpenMPClause.h.

Referenced by clang::Sema::ActOnOpenMPRegionEnd(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

◆ getLParenLoc()

SourceLocation clang::OMPScheduleClause::getLParenLoc ( )
inline

Get location of '('.

Definition at line 860 of file OpenMPClause.h.

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

◆ getScheduleKind()

OpenMPScheduleClauseKind clang::OMPScheduleClause::getScheduleKind ( ) const
inline

Get kind of the clause.

Definition at line 847 of file OpenMPClause.h.

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

◆ getScheduleKindLoc()

SourceLocation clang::OMPScheduleClause::getScheduleKindLoc ( )
inline

Get kind location.

Definition at line 863 of file OpenMPClause.h.

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

◆ getSecondScheduleModifier()

OpenMPScheduleClauseModifier clang::OMPScheduleClause::getSecondScheduleModifier ( ) const
inline

Get the second modifier of the clause.

Definition at line 855 of file OpenMPClause.h.

Referenced by clang::Sema::ActOnOpenMPRegionEnd(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

◆ getSecondScheduleModifierLoc()

SourceLocation clang::OMPScheduleClause::getSecondScheduleModifierLoc ( ) const
inline

Get the second modifier location.

Definition at line 871 of file OpenMPClause.h.

Referenced by clang::Sema::ActOnOpenMPRegionEnd(), and clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 723 of file OpenMPClause.h.


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