clang 22.0.0git
OMPTargetParallelForSimdDirective Class Referencefinal

This represents '#pragma omp target parallel for simd' directive. More...

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPTargetParallelForSimdDirective:
[legend]

Static Public Member Functions

static OMPTargetParallelForSimdDirectiveCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, unsigned CollapsedNum, ArrayRef< OMPClause * > Clauses, Stmt *AssociatedStmt, const HelperExprs &Exprs)
 Creates directive with a list of Clauses.
static OMPTargetParallelForSimdDirectiveCreateEmpty (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 parallel for simd' directive.

#pragma omp target parallel for simd private(a) map(b) safelen(c)

In this example directive '#pragma omp target parallel for simd' has clauses 'private' with the variable 'a', 'map' with the variable 'b' and 'safelen' with the variable 'c'.

Definition at line 4774 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

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

Definition at line 4827 of file StmtOpenMP.h.

◆ Create()

OMPTargetParallelForSimdDirective * OMPTargetParallelForSimdDirective::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation EndLoc,
unsigned CollapsedNum,
ArrayRef< OMPClause * > Clauses,
Stmt * AssociatedStmt,
const HelperExprs & Exprs )
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.

Definition at line 1835 of file StmtOpenMP.cpp.

References clang::C.

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

◆ CreateEmpty()

OMPTargetParallelForSimdDirective * OMPTargetParallelForSimdDirective::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 1871 of file StmtOpenMP.cpp.

References clang::C.

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 4775 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 4776 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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