clang 22.0.0git
OMPDistributeParallelForDirective Class Reference

This represents '#pragma omp distribute parallel for' composite directive. More...

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPDistributeParallelForDirective:
[legend]

Public Member Functions

Expr * getTaskReductionRefExpr ()
 Returns special task reduction reference expression.
const Expr * getTaskReductionRefExpr () const
bool hasCancel () const
 Return true if current directive has inner cancel directive.

Static Public Member Functions

static OMPDistributeParallelForDirectiveCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, unsigned CollapsedNum, ArrayRef< OMPClause * > Clauses, Stmt *AssociatedStmt, const HelperExprs &Exprs, Expr *TaskRedRef, bool HasCancel)
 Creates directive with a list of Clauses.
static OMPDistributeParallelForDirectiveCreateEmpty (const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
 Creates an empty directive with the place for NumClauses clauses.
static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class OMPExecutableDirective

Detailed Description

This represents '#pragma omp distribute parallel for' composite directive.

#pragma omp distribute parallel for private(a,b)

In this example directive '#pragma omp distribute parallel for' has clause 'private' with the variables 'a' and 'b'

Definition at line 4547 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

bool OMPDistributeParallelForDirective::classof ( const Stmt * T)
inlinestatic

Definition at line 4629 of file StmtOpenMP.h.

◆ Create()

OMPDistributeParallelForDirective * OMPDistributeParallelForDirective::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation EndLoc,
unsigned CollapsedNum,
ArrayRef< OMPClause * > Clauses,
Stmt * AssociatedStmt,
const HelperExprs & Exprs,
Expr * TaskRedRef,
bool HasCancel )
static

Creates directive with a list of Clauses.

Parameters
CAST context.
StartLocStarting location of the directive kind.
EndLocEnding Location of the directive.
CollapsedNumNumber of collapsed loops.
ClausesList of clauses.
AssociatedStmtStatement, associated with the directive.
ExprsHelper expressions for CodeGen.
TaskRedRefTask reduction special reference expression to handle taskgroup descriptor.
HasCanceltrue if this directive has inner cancel directive.

Definition at line 1670 of file StmtOpenMP.cpp.

References clang::C.

Referenced by clang::SemaOpenMP::ActOnOpenMPDistributeParallelForDirective().

◆ CreateEmpty()

OMPDistributeParallelForDirective * OMPDistributeParallelForDirective::CreateEmpty ( const ASTContext & C,
unsigned NumClauses,
unsigned CollapsedNum,
EmptyShell  )
static

Creates an empty directive with the place for NumClauses clauses.

Parameters
CAST context.
CollapsedNumNumber of collapsed nested loops.
NumClausesNumber of clauses.

Definition at line 1721 of file StmtOpenMP.cpp.

References clang::C.

◆ getTaskReductionRefExpr() [1/2]

Expr * OMPDistributeParallelForDirective::getTaskReductionRefExpr ( )
inline

Returns special task reduction reference expression.

Definition at line 4617 of file StmtOpenMP.h.

Referenced by getTaskReductionRefExpr().

◆ getTaskReductionRefExpr() [2/2]

const Expr * OMPDistributeParallelForDirective::getTaskReductionRefExpr ( ) const
inline

Definition at line 4621 of file StmtOpenMP.h.

References getTaskReductionRefExpr().

◆ hasCancel()

bool OMPDistributeParallelForDirective::hasCancel ( ) const
inline

Return true if current directive has inner cancel directive.

Definition at line 4627 of file StmtOpenMP.h.

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 4548 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 4549 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


The documentation for this class was generated from the following files: