class OMPParallelMasterDirective

Declaration

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

Description

This represents '#pragma omp parallel master' directive. In this example directive '#pragma omp parallel master' has clauses 'private' with the variables 'a' and 'b'

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

Inherits from: OMPExecutableDirective

Member Variables

Inherited from OMPExecutableDirective:

protected Data = nullptr

Inherited from Stmt:

protected

Method Overview

Inherited from OMPExecutableDirective:

Inherited from Stmt:

Methods

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

Description

Creates directive with a list of \a Clauses.

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

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.

static clang::OMPParallelMasterDirective*
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:2295

Parameters

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

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

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

Parameters

clang::SourceLocation StartLoc
clang::SourceLocation EndLoc

OMPParallelMasterDirective()

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

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

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

Parameters

const clang::Stmt* T

clang::Expr* getTaskReductionRefExpr()

Description

Returns special task reduction reference expression.

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

const clang::Expr* getTaskReductionRefExpr() const

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

void setTaskReductionRefExpr(clang::Expr* E)

Description

Sets special task reduction descriptor.

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

Parameters

clang::Expr* E