clang  3.7.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)
 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...
 
SourceLocation getLParenLoc ()
 Get location of '('. More...
 
SourceLocation getScheduleKindLoc ()
 Get kind 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...
 
StmtRange 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
 
StmtRange children ()
 
ConstStmtRange 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

- 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 566 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 
)
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.

Definition at line 625 of file OpenMPClause.h.

clang::OMPScheduleClause::OMPScheduleClause ( )
inlineexplicit

Build an empty clause.

Definition at line 637 of file OpenMPClause.h.

Member Function Documentation

StmtRange clang::OMPScheduleClause::children ( )
inline

Definition at line 679 of file OpenMPClause.h.

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

Definition at line 675 of file OpenMPClause.h.

References clang::OMPClause::getClauseKind().

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

Get chunk size.

Definition at line 658 of file OpenMPClause.h.

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

Get chunk size.

Definition at line 661 of file OpenMPClause.h.

SourceLocation clang::OMPScheduleClause::getCommaLoc ( )
inline

Get location of ','.

Definition at line 655 of file OpenMPClause.h.

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

Get helper chunk size.

Definition at line 666 of file OpenMPClause.h.

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

Get helper chunk size.

Definition at line 671 of file OpenMPClause.h.

SourceLocation clang::OMPScheduleClause::getLParenLoc ( )
inline

Get location of '('.

Definition at line 649 of file OpenMPClause.h.

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

Get kind of the clause.

Definition at line 646 of file OpenMPClause.h.

SourceLocation clang::OMPScheduleClause::getScheduleKindLoc ( )
inline

Get kind location.

Definition at line 652 of file OpenMPClause.h.

Friends And Related Function Documentation

friend class OMPClauseReader
friend

Definition at line 567 of file OpenMPClause.h.


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