clang 22.0.0git
OMPGenericLoopDirective Class Referencefinal

This represents '#pragma omp loop' directive. More...

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPGenericLoopDirective:
[legend]

Static Public Member Functions

static OMPGenericLoopDirectiveCreate (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 OMPGenericLoopDirectiveCreateEmpty (const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
 Creates an empty directive with a place for NumClauses clauses.
static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class OMPExecutableDirective

Detailed Description

This represents '#pragma omp loop' directive.

#pragma omp loop private(a,b) binding(parallel) order(concurrent)

In this example directive '#pragma omp loop' has clauses 'private' with the variables 'a' and 'b', 'binding' with modifier 'parallel' and 'order(concurrent).

Definition at line 6190 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

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

Definition at line 6239 of file StmtOpenMP.h.

◆ Create()

OMPGenericLoopDirective * OMPGenericLoopDirective::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 2409 of file StmtOpenMP.cpp.

References clang::C.

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

◆ CreateEmpty()

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

Creates an empty directive with a place for NumClauses clauses.

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

Definition at line 2444 of file StmtOpenMP.cpp.

References clang::C.

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 6191 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 6192 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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