clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::OMPScheduleClause Class Reference

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

#include <OpenMPClause.h>

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

List of all members.

Public Member Functions

 OMPScheduleClause (SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation KLoc, SourceLocation CommaLoc, SourceLocation EndLoc, OpenMPScheduleClauseKind Kind, Expr *ChunkSize)
 Build 'schedule' clause with schedule kind Kind and chunk size expression ChunkSize.
 OMPScheduleClause ()
 Build an empty clause.
OpenMPScheduleClauseKind getScheduleKind () const
 Get kind of the clause.
SourceLocation getLParenLoc ()
 Get location of '('.
SourceLocation getScheduleKindLoc ()
 Get kind location.
SourceLocation getCommaLoc ()
 Get location of ','.
ExprgetChunkSize ()
 Get chunk size.
ExprgetChunkSize () const
 Get chunk size.
StmtRange children ()

Static Public Member Functions

static bool classof (const OMPClause *T)

Friends

class OMPClauseReader

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

Definition at line 617 of file OpenMPClause.h.

Build an empty clause.

Definition at line 626 of file OpenMPClause.h.


Member Function Documentation

Reimplemented from clang::OMPClause.

Definition at line 653 of file OpenMPClause.h.

static bool clang::OMPScheduleClause::classof ( const OMPClause T) [inline, static]

Reimplemented from clang::OMPClause.

Definition at line 649 of file OpenMPClause.h.

References clang::OMPClause::getClauseKind().

Get chunk size.

Definition at line 644 of file OpenMPClause.h.

Get chunk size.

Definition at line 647 of file OpenMPClause.h.

Get location of ','.

Definition at line 641 of file OpenMPClause.h.

Get location of '('.

Definition at line 635 of file OpenMPClause.h.

Get kind of the clause.

Definition at line 632 of file OpenMPClause.h.

Get kind location.

Definition at line 638 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: