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

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

Public Member Functions

 OMPScheduleClause (SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation KLoc, SourceLocation CommaLoc, SourceLocation EndLoc, OpenMPScheduleClauseKind Kind, Expr *ChunkSize, Expr *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...
 
ExprgetChunkSize () const
 Get chunk size. More...
 
ExprgetHelperChunkSize ()
 Get helper chunk size. More...
 
ExprgetHelperChunkSize () const
 Get helper 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
 

Static Public Member Functions

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
typedef StmtIterator child_iterator
 
typedef ConstStmtIterator const_child_iterator
 
typedef llvm::iterator_range
< child_iterator
child_range
 
typedef llvm::iterator_range
< const_child_iterator
const_child_range
 
- Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
 

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 653 of file OpenMPClause.h.

Constructor & Destructor Documentation

clang::OMPScheduleClause::OMPScheduleClause ( SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  KLoc,
SourceLocation  CommaLoc,
SourceLocation  EndLoc,
OpenMPScheduleClauseKind  Kind,
Expr ChunkSize,
Expr 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 757 of file OpenMPClause.h.

clang::OMPScheduleClause::OMPScheduleClause ( )
inlineexplicit

Build an empty clause.

Definition at line 775 of file OpenMPClause.h.

References clang::OMPC_SCHEDULE_MODIFIER_unknown.

Member Function Documentation

child_range clang::OMPScheduleClause::children ( )
inline

Definition at line 839 of file OpenMPClause.h.

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

Definition at line 835 of file OpenMPClause.h.

References clang::OMPClause::getClauseKind().

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

Get chunk size.

Definition at line 818 of file OpenMPClause.h.

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

Get chunk size.

Definition at line 821 of file OpenMPClause.h.

SourceLocation clang::OMPScheduleClause::getCommaLoc ( )
inline

Get location of ','.

Definition at line 815 of file OpenMPClause.h.

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

Get the first modifier of the clause.

Definition at line 789 of file OpenMPClause.h.

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

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

Get the first modifier location.

Definition at line 805 of file OpenMPClause.h.

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

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

Get helper chunk size.

Definition at line 826 of file OpenMPClause.h.

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

Get helper chunk size.

Definition at line 831 of file OpenMPClause.h.

SourceLocation clang::OMPScheduleClause::getLParenLoc ( )
inline

Get location of '('.

Definition at line 799 of file OpenMPClause.h.

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

Get kind of the clause.

Definition at line 786 of file OpenMPClause.h.

SourceLocation clang::OMPScheduleClause::getScheduleKindLoc ( )
inline

Get kind location.

Definition at line 802 of file OpenMPClause.h.

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

Get the second modifier of the clause.

Definition at line 794 of file OpenMPClause.h.

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

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

Get the second modifier location.

Definition at line 810 of file OpenMPClause.h.

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

Friends And Related Function Documentation

friend class OMPClauseReader
friend

Definition at line 654 of file OpenMPClause.h.


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