class OMPDistScheduleClause

Declaration

class OMPDistScheduleClause : public OMPClause,
                              public OMPClauseWithPreInit { /* full declaration omitted */ };

Description

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

Declared at: clang/include/clang/AST/OpenMPClause.h:6433

Inherits from: OMPClause, OMPClauseWithPreInit

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::OpenMPDistScheduleClauseKind Kind = OMPC_DIST_SCHEDULE_unknown
A kind of the 'schedule' clause.
private clang::SourceLocation KindLoc
Start location of the schedule kind in source code.
private clang::SourceLocation CommaLoc
Location of ',' (if any).
private clang::Expr* ChunkSize = nullptr
Chunk size.

Method Overview

Inherited from OMPClauseWithPreInit:

Inherited from OMPClause:

Methods

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

Description

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

Declared at: clang/include/clang/AST/OpenMPClause.h:6488

Parameters

clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation KLoc
Starting location of the argument.
clang::SourceLocation CommaLoc
Location of ','.
clang::SourceLocation EndLoc
Ending location of the clause.
clang::OpenMPDistScheduleClauseKind Kind
DistSchedule kind.
clang::Expr* ChunkSize
Chunk size.
clang::Stmt* HelperChunkSize
Helper chunk size for combined directives.

OMPDistScheduleClause()

Description

Build an empty clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:6500

clang::OMPClause::const_child_range children()
    const

Declared at: clang/include/clang/AST/OpenMPClause.h:6528

clang::OMPClause::child_range children()

Declared at: clang/include/clang/AST/OpenMPClause.h:6523

static bool classof(const clang::OMPClause* T)

Declared at: clang/include/clang/AST/OpenMPClause.h:6540

Parameters

const clang::OMPClause* T

const clang::Expr* getChunkSize() const

Description

Get chunk size.

Declared at: clang/include/clang/AST/OpenMPClause.h:6521

clang::Expr* getChunkSize()

Description

Get chunk size.

Declared at: clang/include/clang/AST/OpenMPClause.h:6518

clang::SourceLocation getCommaLoc()

Description

Get location of ','.

Declared at: clang/include/clang/AST/OpenMPClause.h:6515

clang::OpenMPDistScheduleClauseKind
getDistScheduleKind() const

Description

Get kind of the clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:6506

clang::SourceLocation getDistScheduleKindLoc()

Description

Get kind location.

Declared at: clang/include/clang/AST/OpenMPClause.h:6512

clang::SourceLocation getLParenLoc()

Description

Get location of '('.

Declared at: clang/include/clang/AST/OpenMPClause.h:6509

void setChunkSize(clang::Expr* E)

Description

Set chunk size.

Declared at: clang/include/clang/AST/OpenMPClause.h:6474

Parameters

clang::Expr* E
Chunk size.

void setCommaLoc(clang::SourceLocation Loc)

Description

Set location of ','.

Declared at: clang/include/clang/AST/OpenMPClause.h:6469

Parameters

clang::SourceLocation Loc
Location of ','.

void setDistScheduleKind(
    clang::OpenMPDistScheduleClauseKind K)

Description

Set schedule kind.

Declared at: clang/include/clang/AST/OpenMPClause.h:6454

Parameters

clang::OpenMPDistScheduleClauseKind K
Schedule kind.

void setDistScheduleKindLoc(
    clang::SourceLocation KLoc)

Description

Set schedule kind start location.

Declared at: clang/include/clang/AST/OpenMPClause.h:6464

Parameters

clang::SourceLocation KLoc
Schedule kind location.

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

Declared at: clang/include/clang/AST/OpenMPClause.h:6459

Parameters

clang::SourceLocation Loc
Location of '('.

clang::OMPClause::child_range used_children()

Declared at: clang/include/clang/AST/OpenMPClause.h:6533

clang::OMPClause::const_child_range
used_children() const

Declared at: clang/include/clang/AST/OpenMPClause.h:6536