clang 24.0.0git
OMPInterchangeDirective Class Referencefinal

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

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPInterchangeDirective:
[legend]

Public Member Functions

Stmt * getTransformedStmt () const
 Gets the associated loops after the transformation.
Stmt * getPreInits () const
 Return preinits statement.
Stmt * getFinals () const
 Return finals statement.
Public Member Functions inherited from OMPCanonicalLoopNestTransformationDirective
unsigned getNumAssociatedLoops () const
 Return the number of associated (consumed) loops.
Stmt * getTransformedStmt () const
 Get the de-sugared statements after the loop transformation.
Stmt * getPreInits () const
 Return preinits statement.
Stmt * getFinals () const
 Return loop variable finalization statement, or nullptr if the concrete transformation does not produce one (e.g. unroll).
Public Member Functions inherited from OMPLoopTransformationDirective
unsigned getNumGeneratedTopLevelLoops () const
Stmt * getDirective () const
 Returns the specific directive related to this loop transformation.
Stmt * getTransformedStmt () const
 Get the de-sugared statements after the loop transformation.
Stmt * getPreInits () const
 Return preinits statement.
Stmt * getFinals () const
 Return loop variable finalization statement, or nullptr if the concrete transformation does not produce one (e.g. unroll).

Static Public Member Functions

static OMPInterchangeDirective * Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, ArrayRef< OMPClause * > Clauses, unsigned NumLoops, Stmt *AssociatedStmt, Stmt *TransformedStmt, Stmt *PreInits, Stmt *Finals)
 Create a new AST node representation for '#pragma omp interchange'.
static OMPInterchangeDirective * CreateEmpty (const ASTContext &C, unsigned NumClauses, unsigned NumLoops)
 Build an empty '#pragma omp interchange' AST node for deserialization.
static bool classof (const Stmt *T)
Static Public Member Functions inherited from OMPCanonicalLoopNestTransformationDirective
static bool classof (const Stmt *T)
Static Public Member Functions inherited from OMPLoopTransformationDirective
static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class OMPExecutableDirective

Additional Inherited Members

Protected Member Functions inherited from OMPCanonicalLoopNestTransformationDirective
 OMPCanonicalLoopNestTransformationDirective (StmtClass SC, OpenMPDirectiveKind Kind, SourceLocation StartLoc, SourceLocation EndLoc, unsigned NumAssociatedLoops)
Protected Member Functions inherited from OMPLoopTransformationDirective
void setNumGeneratedTopLevelLoops (unsigned N)
 OMPLoopTransformationDirective (Stmt *S)

Detailed Description

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

#pragma omp interchange
for (int i = 0; i < m; ++i)
for (int j = 0; j < n; ++j)
..

Definition at line 6037 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

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

Definition at line 6104 of file StmtOpenMP.h.

◆ Create()

OMPInterchangeDirective * OMPInterchangeDirective::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation EndLoc,
ArrayRef< OMPClause * > Clauses,
unsigned NumLoops,
Stmt * AssociatedStmt,
Stmt * TransformedStmt,
Stmt * PreInits,
Stmt * Finals )
static

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

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).
ClausesThe directive's clauses.
NumLoopsNumber of affected loops (number of items in the 'permutation' clause if present).
AssociatedStmtThe outermost associated loop.
TransformedStmtThe loop nest after tiling, or nullptr in dependent contexts.
PreInitsHelper preinits statements for the loop nest.
FinalsLoop variable finalization statements.

Definition at line 669 of file StmtOpenMP.cpp.

References clang::C.

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

◆ CreateEmpty()

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

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

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

Definition at line 682 of file StmtOpenMP.cpp.

References clang::C.

◆ getFinals()

Stmt * OMPInterchangeDirective::getFinals ( ) const
inline

Return finals statement.

Definition at line 6102 of file StmtOpenMP.h.

◆ getPreInits()

Stmt * OMPInterchangeDirective::getPreInits ( ) const
inline

Return preinits statement.

Definition at line 6099 of file StmtOpenMP.h.

◆ getTransformedStmt()

Stmt * OMPInterchangeDirective::getTransformedStmt ( ) const
inline

Gets the associated loops after the transformation.

This is the de-sugared replacement or nullptr in dependent contexts.

Definition at line 6094 of file StmtOpenMP.h.

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 6039 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 6040 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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