clang 22.0.0git
OMPReverseDirective Class Referencefinal

Represents the '#pragma omp reverse' loop transformation directive. More...

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPReverseDirective:
[legend]

Public Member Functions

Stmt * getTransformedStmt () const
 Gets/sets the associated loops after the transformation, i.e.
Stmt * getPreInits () const
 Return preinits statement.

Static Public Member Functions

static OMPReverseDirectiveCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, Stmt *AssociatedStmt, unsigned NumLoops, Stmt *TransformedStmt, Stmt *PreInits)
 Create a new AST node representation for '#pragma omp reverse'.
static OMPReverseDirectiveCreateEmpty (const ASTContext &C, unsigned NumLoops)
 Build an empty '#pragma omp reverse' AST node for deserialization.
static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class OMPExecutableDirective

Detailed Description

Represents the '#pragma omp reverse' loop transformation directive.

#pragma omp reverse
for (int i = 0; i < n; ++i)
...

Definition at line 5782 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

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

Definition at line 5842 of file StmtOpenMP.h.

◆ Create()

OMPReverseDirective * OMPReverseDirective::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation EndLoc,
Stmt * AssociatedStmt,
unsigned NumLoops,
Stmt * TransformedStmt,
Stmt * PreInits )
static

Create a new AST node representation for '#pragma omp reverse'.

Parameters
CContext of the AST.
StartLocLocation of the introducer (e.g. the 'omp' token).
EndLocLocation of the directive's end (e.g. the tok::eod).
NumLoopsNumber of affected loops
AssociatedStmtThe outermost associated loop.
TransformedStmtThe loop nest after tiling, or nullptr in dependent contexts.
PreInitsHelper preinits statements for the loop nest.

Definition at line 473 of file StmtOpenMP.cpp.

References clang::C.

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

◆ CreateEmpty()

OMPReverseDirective * OMPReverseDirective::CreateEmpty ( const ASTContext & C,
unsigned NumLoops )
static

Build an empty '#pragma omp reverse' AST node for deserialization.

Parameters
CContext of the AST.
NumLoopsNumber of associated loops to allocate

Definition at line 485 of file StmtOpenMP.cpp.

References clang::C.

◆ getPreInits()

Stmt * OMPReverseDirective::getPreInits ( ) const
inline

Return preinits statement.

Definition at line 5840 of file StmtOpenMP.h.

◆ getTransformedStmt()

Stmt * OMPReverseDirective::getTransformedStmt ( ) const
inline

Gets/sets the associated loops after the transformation, i.e.

after de-sugaring.

Definition at line 5835 of file StmtOpenMP.h.

Referenced by clang::CodeGen::CodeGenFunction::EmitOMPReverseDirective().

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 5784 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 5785 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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