clang 22.0.0git
OMPTargetTeamsDistributeParallelForDirective Class Referencefinal

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

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPTargetTeamsDistributeParallelForDirective:
[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 OMPTargetTeamsDistributeParallelForDirectiveCreate (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 OMPTargetTeamsDistributeParallelForDirectiveCreateEmpty (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 target teams distribute parallel for' combined directive.

#pragma omp target teams distribute parallel for private(x)

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

Definition at line 5321 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

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

Definition at line 5404 of file StmtOpenMP.h.

◆ Create()

OMPTargetTeamsDistributeParallelForDirective * OMPTargetTeamsDistributeParallelForDirective::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 2188 of file StmtOpenMP.cpp.

References clang::C.

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

◆ CreateEmpty()

OMPTargetTeamsDistributeParallelForDirective * OMPTargetTeamsDistributeParallelForDirective::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 2240 of file StmtOpenMP.cpp.

References clang::C.

◆ getTaskReductionRefExpr() [1/2]

Expr * OMPTargetTeamsDistributeParallelForDirective::getTaskReductionRefExpr ( )
inline

Returns special task reduction reference expression.

Definition at line 5391 of file StmtOpenMP.h.

Referenced by getTaskReductionRefExpr().

◆ getTaskReductionRefExpr() [2/2]

const Expr * OMPTargetTeamsDistributeParallelForDirective::getTaskReductionRefExpr ( ) const
inline

Definition at line 5396 of file StmtOpenMP.h.

References getTaskReductionRefExpr().

◆ hasCancel()

bool OMPTargetTeamsDistributeParallelForDirective::hasCancel ( ) const
inline

Return true if current directive has inner cancel directive.

Definition at line 5402 of file StmtOpenMP.h.

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 5323 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 5324 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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