class OMPTaskgroupDirective

Declaration

class OMPTaskgroupDirective : public OMPExecutableDirective { /* full declaration omitted */ };

Description

This represents '#pragma omp taskgroup' directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:2669

Inherits from: OMPExecutableDirective

Member Variables

Inherited from OMPExecutableDirective:

protected Data = nullptr

Inherited from Stmt:

protected

Method Overview

  • public static clang::OMPTaskgroupDirective * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation EndLoc, ArrayRef<clang::OMPClause *> Clauses, clang::Stmt * AssociatedStmt, clang::Expr * ReductionRef)
  • public static clang::OMPTaskgroupDirective * CreateEmpty(const clang::ASTContext & C, unsigned int NumClauses, clang::Stmt::EmptyShell)
  • private OMPTaskgroupDirective(clang::SourceLocation StartLoc, clang::SourceLocation EndLoc)
  • private OMPTaskgroupDirective()
  • public static bool classof(const clang::Stmt * T)
  • public const clang::Expr * getReductionRef() const
  • public clang::Expr * getReductionRef()
  • private void setReductionRef(clang::Expr * RR)

Inherited from OMPExecutableDirective:

Inherited from Stmt:

Methods

static clang::OMPTaskgroupDirective* Create(
    const clang::ASTContext& C,
    clang::SourceLocation StartLoc,
    clang::SourceLocation EndLoc,
    ArrayRef<clang::OMPClause*> Clauses,
    clang::Stmt* AssociatedStmt,
    clang::Expr* ReductionRef)

Description

Creates directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:2702

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* ReductionRef
Reference to the task_reduction return variable.

static clang::OMPTaskgroupDirective* CreateEmpty(
    const clang::ASTContext& C,
    unsigned int NumClauses,
    clang::Stmt::EmptyShell)

Description

Creates an empty directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:2711

Parameters

const clang::ASTContext& C
AST context.
unsigned int NumClauses
Number of clauses.
clang::Stmt::EmptyShell

OMPTaskgroupDirective(
    clang::SourceLocation StartLoc,
    clang::SourceLocation EndLoc)

Description

Build directive with the given start and end location.

Declared at: clang/include/clang/AST/StmtOpenMP.h:2677

Parameters

clang::SourceLocation StartLoc
Starting location of the directive kind.
clang::SourceLocation EndLoc
Ending location of the directive.

OMPTaskgroupDirective()

Description

Build an empty directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:2683

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

Declared at: clang/include/clang/AST/StmtOpenMP.h:2721

Parameters

const clang::Stmt* T

const clang::Expr* getReductionRef() const

Description

Returns reference to the task_reduction return variable.

Declared at: clang/include/clang/AST/StmtOpenMP.h:2716

clang::Expr* getReductionRef()

Declared at: clang/include/clang/AST/StmtOpenMP.h:2719

void setReductionRef(clang::Expr* RR)

Description

Sets the task_reduction return variable.

Declared at: clang/include/clang/AST/StmtOpenMP.h:2689

Parameters

clang::Expr* RR