class OMPScheduleClause

Declaration

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

Description

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

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

Inherits from: OMPClause, OMPClauseWithPreInit

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::OpenMPScheduleClauseKind Kind = OMPC_SCHEDULE_unknown
A kind of the 'schedule' clause.
private clang::OpenMPScheduleClauseModifier[2] Modifiers
private clang::SourceLocation[2] ModifiersLoc
Locations of modifiers.
private clang::SourceLocation KindLoc
Start location of the schedule ind 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

OMPScheduleClause()

Description

Build an empty clause.

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

OMPScheduleClause(
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation KLoc,
    clang::SourceLocation CommaLoc,
    clang::SourceLocation EndLoc,
    clang::OpenMPScheduleClauseKind Kind,
    clang::Expr* ChunkSize,
    clang::Stmt* HelperChunkSize,
    clang::OpenMPScheduleClauseModifier M1,
    clang::SourceLocation M1Loc,
    clang::OpenMPScheduleClauseModifier M2,
    clang::SourceLocation M2Loc)

Description

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

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

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::OpenMPScheduleClauseKind Kind
Schedule kind.
clang::Expr* ChunkSize
Chunk size.
clang::Stmt* HelperChunkSize
Helper chunk size for combined directives.
clang::OpenMPScheduleClauseModifier M1
The first modifier applied to 'schedule' clause.
clang::SourceLocation M1Loc
Location of the first modifier
clang::OpenMPScheduleClauseModifier M2
The second modifier applied to 'schedule' clause.
clang::SourceLocation M2Loc
Location of the second modifier

clang::OMPClause::const_child_range children()
    const

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

clang::OMPClause::child_range children()

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

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

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

Parameters

const clang::OMPClause* T

const clang::Expr* getChunkSize() const

Description

Get chunk size.

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

clang::Expr* getChunkSize()

Description

Get chunk size.

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

clang::SourceLocation getCommaLoc()

Description

Get location of ','.

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

clang::OpenMPScheduleClauseModifier
getFirstScheduleModifier() const

Description

Get the first modifier of the clause.

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

clang::SourceLocation
getFirstScheduleModifierLoc() const

Description

Get the first modifier location.

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

clang::SourceLocation getLParenLoc()

Description

Get location of '('.

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

clang::OpenMPScheduleClauseKind getScheduleKind()
    const

Description

Get kind of the clause.

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

clang::SourceLocation getScheduleKindLoc()

Description

Get kind location.

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

clang::OpenMPScheduleClauseModifier
getSecondScheduleModifier() const

Description

Get the second modifier of the clause.

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

clang::SourceLocation
getSecondScheduleModifierLoc() const

Description

Get the second modifier location.

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

void setChunkSize(clang::Expr* E)

Description

Set chunk size.

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

Parameters

clang::Expr* E
Chunk size.

void setCommaLoc(clang::SourceLocation Loc)

Description

Set location of ','.

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

Parameters

clang::SourceLocation Loc
Location of ','.

void setFirstScheduleModifier(
    clang::OpenMPScheduleClauseModifier M)

Description

Set the first schedule modifier.

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

Parameters

clang::OpenMPScheduleClauseModifier M
Schedule modifier.

void setFirstScheduleModifierLoc(
    clang::SourceLocation Loc)

Description

Set location of the first schedule modifier.

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

Parameters

clang::SourceLocation Loc

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc
Location of '('.

void setScheduleKind(
    clang::OpenMPScheduleClauseKind K)

Description

Set schedule kind.

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

Parameters

clang::OpenMPScheduleClauseKind K
Schedule kind.

void setScheduleKindLoc(
    clang::SourceLocation KLoc)

Description

Set schedule kind start location.

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

Parameters

clang::SourceLocation KLoc
Schedule kind location.

void setScheduleModifer(
    clang::OpenMPScheduleClauseModifier M)

Description

Set schedule modifier location.

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

Parameters

clang::OpenMPScheduleClauseModifier M
Schedule modifier location.

void setSecondScheduleModifier(
    clang::OpenMPScheduleClauseModifier M)

Description

Set the second schedule modifier.

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

Parameters

clang::OpenMPScheduleClauseModifier M
Schedule modifier.

void setSecondScheduleModifierLoc(
    clang::SourceLocation Loc)

Description

Set location of the second schedule modifier.

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

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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