class OMPTargetParallelDirective
Declaration
class OMPTargetParallelDirective : public OMPExecutableDirective { /* full declaration omitted */ };
Description
This represents '#pragma omp target parallel' directive. In this example directive '#pragma omp target parallel' has clause 'if' with condition 'a'.
Declared at: clang/include/clang/AST/StmtOpenMP.h:3313
Inherits from: OMPExecutableDirective
Member Variables
- private bool HasCancel = false
- true if the construct has inner cancel directive.
Inherited from OMPExecutableDirective:
- protected Data = nullptr
Inherited from Stmt:
Method Overview
- public static clang::OMPTargetParallelDirective * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation EndLoc, ArrayRef<clang::OMPClause *> Clauses, clang::Stmt * AssociatedStmt, clang::Expr * TaskRedRef, bool HasCancel)
- public static clang::OMPTargetParallelDirective * CreateEmpty(const clang::ASTContext & C, unsigned int NumClauses, clang::Stmt::EmptyShell)
- private OMPTargetParallelDirective(clang::SourceLocation StartLoc, clang::SourceLocation EndLoc)
- private OMPTargetParallelDirective()
- public static bool classof(const clang::Stmt * T)
- public clang::Expr * getTaskReductionRefExpr()
- public const clang::Expr * getTaskReductionRefExpr() const
- public bool hasCancel() const
- private void setHasCancel(bool Has)
- private void setTaskReductionRefExpr(clang::Expr * E)
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::OMPTargetParallelDirective* Create(
const clang::ASTContext& C,
clang::SourceLocation StartLoc,
clang::SourceLocation EndLoc,
ArrayRef<clang::OMPClause*> Clauses,
clang::Stmt* AssociatedStmt,
clang::Expr* TaskRedRef,
bool HasCancel)
static clang::OMPTargetParallelDirective* Create(
const clang::ASTContext& C,
clang::SourceLocation StartLoc,
clang::SourceLocation EndLoc,
ArrayRef<clang::OMPClause*> Clauses,
clang::Stmt* AssociatedStmt,
clang::Expr* TaskRedRef,
bool HasCancel)
Description
Creates directive with a list of \a Clauses.
Declared at: clang/include/clang/AST/StmtOpenMP.h:3354
Parameters
- const clang::ASTContext& C
- AST context.
- clang::SourceLocation StartLoc
- Starting location of the directive kind.
- clang::SourceLocation EndLoc
- Ending Location of the directive.
- ArrayRef<clang::OMPClause*> Clauses
- List of clauses.
- clang::Stmt* AssociatedStmt
- Statement, associated with the directive.
- clang::Expr* TaskRedRef
- Task reduction special reference expression to handle taskgroup descriptor.
- bool HasCancel
- true if this directive has inner cancel directive.
¶static clang::OMPTargetParallelDirective*
CreateEmpty(const clang::ASTContext& C,
unsigned int NumClauses,
clang::Stmt::EmptyShell)
static clang::OMPTargetParallelDirective*
CreateEmpty(const clang::ASTContext& C,
unsigned int NumClauses,
clang::Stmt::EmptyShell)
Description
Creates an empty directive with the place for \a NumClauses clauses.
Declared at: clang/include/clang/AST/StmtOpenMP.h:3365
Parameters
- const clang::ASTContext& C
- AST context.
- unsigned int NumClauses
- Number of clauses.
- clang::Stmt::EmptyShell
¶OMPTargetParallelDirective(
clang::SourceLocation StartLoc,
clang::SourceLocation EndLoc)
OMPTargetParallelDirective(
clang::SourceLocation StartLoc,
clang::SourceLocation EndLoc)
Description
Build directive with the given start and end location.
Declared at: clang/include/clang/AST/StmtOpenMP.h:3324
Parameters
- clang::SourceLocation StartLoc
- Starting location of the directive kind.
- clang::SourceLocation EndLoc
- Ending location of the directive.
¶OMPTargetParallelDirective()
OMPTargetParallelDirective()
Description
Build an empty directive.
Declared at: clang/include/clang/AST/StmtOpenMP.h:3331
¶static bool classof(const clang::Stmt* T)
static bool classof(const clang::Stmt* T)
Declared at: clang/include/clang/AST/StmtOpenMP.h:3379
Parameters
- const clang::Stmt* T
¶clang::Expr* getTaskReductionRefExpr()
clang::Expr* getTaskReductionRefExpr()
Description
Returns special task reduction reference expression.
Declared at: clang/include/clang/AST/StmtOpenMP.h:3368
¶const clang::Expr* getTaskReductionRefExpr() const
const clang::Expr* getTaskReductionRefExpr() const
Declared at: clang/include/clang/AST/StmtOpenMP.h:3371
¶bool hasCancel() const
bool hasCancel() const
Description
Return true if current directive has inner cancel directive.
Declared at: clang/include/clang/AST/StmtOpenMP.h:3377
¶void setHasCancel(bool Has)
void setHasCancel(bool Has)
Description
Set cancel state.
Declared at: clang/include/clang/AST/StmtOpenMP.h:3339
Parameters
- bool Has
¶void setTaskReductionRefExpr(clang::Expr* E)
void setTaskReductionRefExpr(clang::Expr* E)
Description
Sets special task reduction descriptor.
Declared at: clang/include/clang/AST/StmtOpenMP.h:3337
Parameters
- clang::Expr* E