clang 22.0.0git
OMPTeamsDistributeParallelForDirective Class Referencefinal

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

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPTeamsDistributeParallelForDirective:
[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 OMPTeamsDistributeParallelForDirectiveCreate (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 OMPTeamsDistributeParallelForDirectiveCreateEmpty (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 teams distribute parallel for' composite directive.

#pragma omp teams distribute parallel for private(x)

In this example directive '#pragma omp teams distribute parallel for' has clause 'private' with the variables 'x'

Definition at line 5106 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

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

Definition at line 5186 of file StmtOpenMP.h.

◆ Create()

OMPTeamsDistributeParallelForDirective * OMPTeamsDistributeParallelForDirective::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 2065 of file StmtOpenMP.cpp.

References clang::C.

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

◆ CreateEmpty()

OMPTeamsDistributeParallelForDirective * OMPTeamsDistributeParallelForDirective::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 2116 of file StmtOpenMP.cpp.

References clang::C.

◆ getTaskReductionRefExpr() [1/2]

Expr * OMPTeamsDistributeParallelForDirective::getTaskReductionRefExpr ( )
inline

Returns special task reduction reference expression.

Definition at line 5174 of file StmtOpenMP.h.

Referenced by getTaskReductionRefExpr().

◆ getTaskReductionRefExpr() [2/2]

const Expr * OMPTeamsDistributeParallelForDirective::getTaskReductionRefExpr ( ) const
inline

Definition at line 5178 of file StmtOpenMP.h.

References getTaskReductionRefExpr().

◆ hasCancel()

bool OMPTeamsDistributeParallelForDirective::hasCancel ( ) const
inline

Return true if current directive has inner cancel directive.

Definition at line 5184 of file StmtOpenMP.h.

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 5107 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 5108 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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