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
- public OMPScheduleClause()
- public 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)
- public clang::OMPClause::const_child_range children() const
- public clang::OMPClause::child_range children()
- public static bool classof(const clang::OMPClause * T)
- public const clang::Expr * getChunkSize() const
- public clang::Expr * getChunkSize()
- public clang::SourceLocation getCommaLoc()
- public clang::OpenMPScheduleClauseModifier getFirstScheduleModifier() const
- public clang::SourceLocation getFirstScheduleModifierLoc() const
- public clang::SourceLocation getLParenLoc()
- public clang::OpenMPScheduleClauseKind getScheduleKind() const
- public clang::SourceLocation getScheduleKindLoc()
- public clang::OpenMPScheduleClauseModifier getSecondScheduleModifier() const
- public clang::SourceLocation getSecondScheduleModifierLoc() const
- private void setChunkSize(clang::Expr * E)
- private void setCommaLoc(clang::SourceLocation Loc)
- private void setFirstScheduleModifier(clang::OpenMPScheduleClauseModifier M)
- private void setFirstScheduleModifierLoc(clang::SourceLocation Loc)
- private void setLParenLoc(clang::SourceLocation Loc)
- private void setScheduleKind(clang::OpenMPScheduleClauseKind K)
- private void setScheduleKindLoc(clang::SourceLocation KLoc)
- private void setScheduleModifer(clang::OpenMPScheduleClauseModifier M)
- private void setSecondScheduleModifier(clang::OpenMPScheduleClauseModifier M)
- private void setSecondScheduleModifierLoc(clang::SourceLocation Loc)
- public clang::OMPClause::child_range used_children()
- public clang::OMPClause::const_child_range used_children() const
Inherited from OMPClauseWithPreInit:
- public get
- public get
- public getCaptureRegion
- public getPreInitStmt
- public getPreInitStmt
- protected setPreInitStmt
Inherited from OMPClause:
- public children
- public children
- public classof
- public getBeginLoc
- public getClauseKind
- public getEndLoc
- public isImplicit
- public setLocEnd
- public setLocStart
- public used_children
- public used_children
Methods
¶OMPScheduleClause()
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)
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
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:1742
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:1737
¶static bool classof(const clang::OMPClause* T)
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
const clang::Expr* getChunkSize() const
Description
Get chunk size.
Declared at: clang/include/clang/AST/OpenMPClause.h:1735
¶clang::Expr* getChunkSize()
clang::Expr* getChunkSize()
Description
Get chunk size.
Declared at: clang/include/clang/AST/OpenMPClause.h:1732
¶clang::SourceLocation getCommaLoc()
clang::SourceLocation getCommaLoc()
Description
Get location of ','.
Declared at: clang/include/clang/AST/OpenMPClause.h:1729
¶clang::OpenMPScheduleClauseModifier
getFirstScheduleModifier() const
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
clang::SourceLocation
getFirstScheduleModifierLoc() const
Description
Get the first modifier location.
Declared at: clang/include/clang/AST/OpenMPClause.h:1719
¶clang::SourceLocation getLParenLoc()
clang::SourceLocation getLParenLoc()
Description
Get location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:1713
¶clang::OpenMPScheduleClauseKind getScheduleKind()
const
clang::OpenMPScheduleClauseKind getScheduleKind()
const
Description
Get kind of the clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:1700
¶clang::SourceLocation getScheduleKindLoc()
clang::SourceLocation getScheduleKindLoc()
Description
Get kind location.
Declared at: clang/include/clang/AST/OpenMPClause.h:1716
¶clang::OpenMPScheduleClauseModifier
getSecondScheduleModifier() const
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
clang::SourceLocation
getSecondScheduleModifierLoc() const
Description
Get the second modifier location.
Declared at: clang/include/clang/AST/OpenMPClause.h:1724
¶void setChunkSize(clang::Expr* E)
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)
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)
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)
void setFirstScheduleModifierLoc(
clang::SourceLocation Loc)
Description
Set location of the first schedule modifier.
Declared at: clang/include/clang/AST/OpenMPClause.h:1618
Parameters
¶void setLParenLoc(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)
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)
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)
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)
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)
void setSecondScheduleModifierLoc(
clang::SourceLocation Loc)
Description
Set location of the second schedule modifier.
Declared at: clang/include/clang/AST/OpenMPClause.h:1623
Parameters
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:1747
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:1750