clang 24.0.0git
OMPCanonicalLoopNestTransformationDirective Class Reference

The base class for all transformation directives of canonical loop nests. More...

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPCanonicalLoopNestTransformationDirective:
[legend]

Public Member Functions

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 bool classof (const Stmt *T)
Static Public Member Functions inherited from OMPLoopTransformationDirective
static bool classof (const Stmt *T)

Protected Member Functions

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

Friends

class ASTStmtReader

Detailed Description

The base class for all transformation directives of canonical loop nests.

Definition at line 1069 of file StmtOpenMP.h.

Constructor & Destructor Documentation

◆ OMPCanonicalLoopNestTransformationDirective()

OMPCanonicalLoopNestTransformationDirective::OMPCanonicalLoopNestTransformationDirective ( StmtClass SC,
OpenMPDirectiveKind Kind,
SourceLocation StartLoc,
SourceLocation EndLoc,
unsigned NumAssociatedLoops )
inlineexplicitprotected

Member Function Documentation

◆ classof()

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

Definition at line 1099 of file StmtOpenMP.h.

◆ getFinals()

Stmt * OMPCanonicalLoopNestTransformationDirective::getFinals ( ) const

Return loop variable finalization statement, or nullptr if the concrete transformation does not produce one (e.g. unroll).

Definition at line 525 of file StmtOpenMP.cpp.

Referenced by emitLoopNestTransformation().

◆ getNumAssociatedLoops()

unsigned OMPCanonicalLoopNestTransformationDirective::getNumAssociatedLoops ( ) const
inline

Return the number of associated (consumed) loops.

Definition at line 1083 of file StmtOpenMP.h.

◆ getPreInits()

Stmt * OMPCanonicalLoopNestTransformationDirective::getPreInits ( ) const

Return preinits statement.

Definition at line 512 of file StmtOpenMP.cpp.

◆ getTransformedStmt()

Stmt * OMPCanonicalLoopNestTransformationDirective::getTransformedStmt ( ) const

Get the de-sugared statements after the loop transformation.

Might be nullptr if either the directive generates no loops and is handled directly in CodeGen, or resolving a template-dependence context is required.

Definition at line 499 of file StmtOpenMP.cpp.

Referenced by emitLoopNestTransformation().

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 1072 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.


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