clang 22.0.0git
OMPMasterTaskLoopDirective Class Reference

This represents '#pragma omp master taskloop' directive. More...

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPMasterTaskLoopDirective:
[legend]

Public Member Functions

bool hasCancel () const
 Return true if current directive has inner cancel directive.

Static Public Member Functions

static OMPMasterTaskLoopDirectiveCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, unsigned CollapsedNum, ArrayRef< OMPClause * > Clauses, Stmt *AssociatedStmt, const HelperExprs &Exprs, bool HasCancel)
 Creates directive with a list of Clauses.
static OMPMasterTaskLoopDirectiveCreateEmpty (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 master taskloop' directive.

#pragma omp master taskloop private(a,b) grainsize(val) num_tasks(num)

In this example directive '#pragma omp master taskloop' has clauses 'private' with the variables 'a' and 'b', 'grainsize' with expression 'val' and 'num_tasks' with expression 'num'.

Definition at line 3854 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

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

Definition at line 3916 of file StmtOpenMP.h.

◆ Create()

OMPMasterTaskLoopDirective * OMPMasterTaskLoopDirective::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation EndLoc,
unsigned CollapsedNum,
ArrayRef< OMPClause * > Clauses,
Stmt * AssociatedStmt,
const HelperExprs & Exprs,
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.
HasCanceltrue if this directive has inner cancel directive.

Definition at line 1245 of file StmtOpenMP.cpp.

References clang::C.

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

◆ CreateEmpty()

OMPMasterTaskLoopDirective * OMPMasterTaskLoopDirective::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 1282 of file StmtOpenMP.cpp.

References clang::C.

◆ hasCancel()

bool OMPMasterTaskLoopDirective::hasCancel ( ) const
inline

Return true if current directive has inner cancel directive.

Definition at line 3914 of file StmtOpenMP.h.

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 3855 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 3856 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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