class OMPParallelMaskedTaskLoopDirective
Declaration
class OMPParallelMaskedTaskLoopDirective : public OMPLoopDirective { /* full declaration omitted */ };
Description
This represents '#pragma omp parallel masked taskloop' directive. In this example directive '#pragma omp parallel masked taskloop' has clauses 'private' with the variables 'a' and 'b', 'grainsize' with expression 'val' and 'num_tasks' with expression 'num'.
Declared at: clang/include/clang/AST/StmtOpenMP.h:4159
Inherits from: OMPLoopDirective
Member Variables
- private bool HasCancel = false
- true if the construct has inner cancel directive.
Inherited from OMPLoopBasedDirective:
Inherited from OMPExecutableDirective:
- protected Data = nullptr
Inherited from Stmt:
Method Overview
- public static clang::OMPParallelMaskedTaskLoopDirective * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation EndLoc, unsigned int CollapsedNum, ArrayRef<clang::OMPClause *> Clauses, clang::Stmt * AssociatedStmt, const clang::OMPLoopBasedDirective::HelperExprs & Exprs, bool HasCancel)
- public static clang::OMPParallelMaskedTaskLoopDirective * CreateEmpty(const clang::ASTContext & C, unsigned int NumClauses, unsigned int CollapsedNum, clang::Stmt::EmptyShell)
- private OMPParallelMaskedTaskLoopDirective(clang::SourceLocation StartLoc, clang::SourceLocation EndLoc, unsigned int CollapsedNum)
- private OMPParallelMaskedTaskLoopDirective(unsigned int CollapsedNum)
- public static bool classof(const clang::Stmt * T)
- public bool hasCancel() const
- private void setHasCancel(bool Has)
Inherited from OMPLoopDirective:
- public classof
- public counters
- public counters
- public dependent_counters
- public dependent_counters
- public dependent_inits
- public dependent_inits
- public finals
- public finals
- public finals_conditions
- public finals_conditions
- protected getArraysOffset
- public getBody
- public getBody
- public getCalcLastIteration
- public getCombinedCond
- public getCombinedDistCond
- public getCombinedEnsureUpperBound
- public getCombinedInit
- public getCombinedLowerBoundVariable
- public getCombinedNextLowerBound
- public getCombinedNextUpperBound
- public getCombinedParForInDistCond
- public getCombinedUpperBoundVariable
- public getCond
- public getDistInc
- public getEnsureUpperBound
- public getInc
- public getInit
- public getIsLastIterVariable
- public getIterationVariable
- public getLastIteration
- public getLowerBoundVariable
- public getNextLowerBound
- public getNextUpperBound
- public getNumIterations
- public getPreCond
- public getPreInits
- public getPreInits
- public getPrevEnsureUpperBound
- public getPrevLowerBoundVariable
- public getPrevUpperBoundVariable
- public getStrideVariable
- public getUpperBoundVariable
- public inits
- public inits
- protected numLoopChildren
- public private_counters
- public private_counters
- protected setCalcLastIteration
- protected setCombinedCond
- protected setCombinedDistCond
- protected setCombinedEnsureUpperBound
- protected setCombinedInit
- protected setCombinedLowerBoundVariable
- protected setCombinedNextLowerBound
- protected setCombinedNextUpperBound
- protected setCombinedParForInDistCond
- protected setCombinedUpperBoundVariable
- protected setCond
- protected setCounters
- protected setDependentCounters
- protected setDependentInits
- protected setDistInc
- protected setEnsureUpperBound
- protected setFinals
- protected setFinalsConditions
- protected setInc
- protected setInit
- protected setInits
- protected setIsLastIterVariable
- protected setIterationVariable
- protected setLastIteration
- protected setLowerBoundVariable
- protected setNextLowerBound
- protected setNextUpperBound
- protected setNumIterations
- protected setPreCond
- protected setPreInits
- protected setPrevEnsureUpperBound
- protected setPrevLowerBoundVariable
- protected setPrevUpperBoundVariable
- protected setPrivateCounters
- protected setStrideVariable
- protected setUpdates
- protected setUpperBoundVariable
- public updates
- public updates
Inherited from OMPLoopBasedDirective:
- public classof
- public doForAllLoops
- public doForAllLoops
- public doForAllLoops
- public doForAllLoops
- public doForAllLoopsBodies
- public doForAllLoopsBodies
- public getLoopsNumber
- public tryToFindNextInnerLoop
- public tryToFindNextInnerLoop
Inherited from OMPExecutableDirective:
- public children
- public children
- public classof
- public clauses
- protected createDirective
- protected createEmptyDirective
- protected createEmptyDirective
- public getAssociatedStmt
- public getAssociatedStmt
- public getBeginLoc
- public getCapturedStmt
- public getClause
- public getClausesOfKind
- public getClausesOfKind
- public getDirectiveKind
- public getEndLoc
- public getInnermostCapturedStmt
- public getInnermostCapturedStmt
- public getNumClauses
- public getRawStmt
- public getRawStmt
- public getSingleClause
- public getSingleClause
- public getStructuredBlock
- public getStructuredBlock
- public hasAssociatedStmt
- public hasClausesOfKind
- public isStandaloneDirective
- public setLocEnd
- public setLocStart
- public used_clauses_children
Inherited from Stmt:
- public EnableStatistics
- public IgnoreContainers
- public IgnoreContainers
- public PrintStats
- public ProcessODRHash
- public Profile
- public addStmtClass
- public child_begin
- public child_begin
- public child_end
- public child_end
- public children
- public children
- public determineLikelihoodConflict
- public dump
- public dump
- public dumpColor
- public dumpPretty
- public getBeginLoc
- public getEndLoc
- public getID
- public getLikelihood
- public getLikelihood
- public getLikelihood
- public getLikelihoodAttr
- public getSourceRange
- public getStmtClass
- public getStmtClassName
- public printJson
- public printPretty
- public printPrettyControlled
- public stripLabelLikeStatements
- public stripLabelLikeStatements
- public viewAST
Methods
¶static clang::OMPParallelMaskedTaskLoopDirective*
Create(const clang::ASTContext& C,
clang::SourceLocation StartLoc,
clang::SourceLocation EndLoc,
unsigned int CollapsedNum,
ArrayRef<clang::OMPClause*> Clauses,
clang::Stmt* AssociatedStmt,
const clang::OMPLoopBasedDirective::
HelperExprs& Exprs,
bool HasCancel)
static clang::OMPParallelMaskedTaskLoopDirective*
Create(const clang::ASTContext& C,
clang::SourceLocation StartLoc,
clang::SourceLocation EndLoc,
unsigned int CollapsedNum,
ArrayRef<clang::OMPClause*> Clauses,
clang::Stmt* AssociatedStmt,
const clang::OMPLoopBasedDirective::
HelperExprs& Exprs,
bool HasCancel)
Description
Creates directive with a list of \a Clauses.
Declared at: clang/include/clang/AST/StmtOpenMP.h:4203
Parameters
- const clang::ASTContext& C
- AST context.
- clang::SourceLocation StartLoc
- Starting location of the directive kind.
- clang::SourceLocation EndLoc
- Ending Location of the directive.
- unsigned int CollapsedNum
- Number of collapsed loops.
- ArrayRef<clang::OMPClause*> Clauses
- List of clauses.
- clang::Stmt* AssociatedStmt
- Statement, associated with the directive.
- const clang::OMPLoopBasedDirective::HelperExprs& Exprs
- Helper expressions for CodeGen.
- bool HasCancel
- true if this directive has inner cancel directive.
¶static clang::OMPParallelMaskedTaskLoopDirective*
CreateEmpty(const clang::ASTContext& C,
unsigned int NumClauses,
unsigned int CollapsedNum,
clang::Stmt::EmptyShell)
static clang::OMPParallelMaskedTaskLoopDirective*
CreateEmpty(const clang::ASTContext& C,
unsigned int NumClauses,
unsigned int CollapsedNum,
clang::Stmt::EmptyShell)
Description
Creates an empty directive with the place for \a NumClauses clauses.
Declared at: clang/include/clang/AST/StmtOpenMP.h:4214
Parameters
- const clang::ASTContext& C
- AST context.
- unsigned int NumClauses
- Number of clauses.
- unsigned int CollapsedNum
- Number of collapsed nested loops.
- clang::Stmt::EmptyShell
¶OMPParallelMaskedTaskLoopDirective(
clang::SourceLocation StartLoc,
clang::SourceLocation EndLoc,
unsigned int CollapsedNum)
OMPParallelMaskedTaskLoopDirective(
clang::SourceLocation StartLoc,
clang::SourceLocation EndLoc,
unsigned int CollapsedNum)
Description
Build directive with the given start and end location.
Declared at: clang/include/clang/AST/StmtOpenMP.h:4171
Parameters
- clang::SourceLocation StartLoc
- Starting location of the directive kind.
- clang::SourceLocation EndLoc
- Ending location of the directive.
- unsigned int CollapsedNum
- Number of collapsed nested loops.
¶OMPParallelMaskedTaskLoopDirective(
unsigned int CollapsedNum)
OMPParallelMaskedTaskLoopDirective(
unsigned int CollapsedNum)
Description
Build an empty directive.
Declared at: clang/include/clang/AST/StmtOpenMP.h:4182
Parameters
- unsigned int CollapsedNum
- Number of collapsed nested loops.
¶static bool classof(const clang::Stmt* T)
static bool classof(const clang::Stmt* T)
Declared at: clang/include/clang/AST/StmtOpenMP.h:4222
Parameters
- const clang::Stmt* T
¶bool hasCancel() const
bool hasCancel() const
Description
Return true if current directive has inner cancel directive.
Declared at: clang/include/clang/AST/StmtOpenMP.h:4220
¶void setHasCancel(bool Has)
void setHasCancel(bool Has)
Description
Set cancel state.
Declared at: clang/include/clang/AST/StmtOpenMP.h:4188
Parameters
- bool Has