clang 23.0.0git
OMPDistScheduleClause Class Reference

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPDistScheduleClause:
[legend]

Public Member Functions

 OMPDistScheduleClause (SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation KLoc, SourceLocation CommaLoc, SourceLocation EndLoc, OpenMPDistScheduleClauseKind Kind, Expr *ChunkSize, Stmt *HelperChunkSize)
 Build 'dist_schedule' clause with schedule kind Kind and chunk size expression ChunkSize.
 OMPDistScheduleClause ()
 Build an empty clause.
OpenMPDistScheduleClauseKind getDistScheduleKind () const
 Get kind of the clause.
SourceLocation getLParenLoc ()
 Get location of '('.
SourceLocation getDistScheduleKindLoc ()
 Get kind location.
SourceLocation getCommaLoc ()
 Get location of ','.
Expr * getChunkSize ()
 Get chunk size.
const Expr * getChunkSize () const
 Get chunk size.
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const

Static Public Member Functions

static bool classof (const OMPClause *T)

Friends

class OMPClauseReader

Detailed Description

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

#pragma omp distribute dist_schedule(static, 3)

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

Definition at line 7418 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPDistScheduleClause() [1/2]

OMPDistScheduleClause::OMPDistScheduleClause ( SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation KLoc,
SourceLocation CommaLoc,
SourceLocation EndLoc,
OpenMPDistScheduleClauseKind Kind,
Expr * ChunkSize,
Stmt * HelperChunkSize )
inline

Build 'dist_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.
KindDistSchedule kind.
ChunkSizeChunk size.
HelperChunkSizeHelper chunk size for combined directives.

Definition at line 7473 of file OpenMPClause.h.

Referenced by children().

◆ OMPDistScheduleClause() [2/2]

OMPDistScheduleClause::OMPDistScheduleClause ( )
inlineexplicit

Build an empty clause.

Definition at line 7485 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPDistScheduleClause::children ( )
inline

Definition at line 7508 of file OpenMPClause.h.

Referenced by children().

◆ children() [2/2]

const_child_range OMPDistScheduleClause::children ( ) const
inline

Definition at line 7513 of file OpenMPClause.h.

References children(), and OMPDistScheduleClause().

◆ classof()

bool OMPDistScheduleClause::classof ( const OMPClause * T)
inlinestatic

Definition at line 7524 of file OpenMPClause.h.

◆ getChunkSize() [1/2]

Expr * OMPDistScheduleClause::getChunkSize ( )
inline

Get chunk size.

Definition at line 7503 of file OpenMPClause.h.

◆ getChunkSize() [2/2]

const Expr * OMPDistScheduleClause::getChunkSize ( ) const
inline

Get chunk size.

Definition at line 7506 of file OpenMPClause.h.

◆ getCommaLoc()

SourceLocation OMPDistScheduleClause::getCommaLoc ( )
inline

Get location of ','.

Definition at line 7500 of file OpenMPClause.h.

◆ getDistScheduleKind()

OpenMPDistScheduleClauseKind OMPDistScheduleClause::getDistScheduleKind ( ) const
inline

Get kind of the clause.

Definition at line 7491 of file OpenMPClause.h.

◆ getDistScheduleKindLoc()

SourceLocation OMPDistScheduleClause::getDistScheduleKindLoc ( )
inline

Get kind location.

Definition at line 7497 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPDistScheduleClause::getLParenLoc ( )
inline

Get location of '('.

Definition at line 7494 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range OMPDistScheduleClause::used_children ( )
inline

Definition at line 7517 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPDistScheduleClause::used_children ( ) const
inline

Definition at line 7520 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 7419 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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