clang 22.0.0git
|
This represents the '#pragma omp unroll' loop transformation directive. More...
#include "clang/AST/StmtOpenMP.h"
Public Member Functions | |
Stmt * | getTransformedStmt () const |
Get the de-sugared associated loops after unrolling. | |
Stmt * | getPreInits () const |
Return the pre-init statements. |
Static Public Member Functions | |
static OMPUnrollDirective * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, ArrayRef< OMPClause * > Clauses, Stmt *AssociatedStmt, unsigned NumGeneratedLoops, Stmt *TransformedStmt, Stmt *PreInits) |
Create a new AST node representation for '#pragma omp unroll'. | |
static OMPUnrollDirective * | CreateEmpty (const ASTContext &C, unsigned NumClauses) |
Build an empty '#pragma omp unroll' AST node for deserialization. | |
static bool | classof (const Stmt *T) |
Friends | |
class | ASTStmtReader |
class | OMPExecutableDirective |
This represents the '#pragma omp unroll' loop transformation directive.
Definition at line 5707 of file StmtOpenMP.h.
|
inlinestatic |
Definition at line 5770 of file StmtOpenMP.h.
|
static |
Create a new AST node representation for '#pragma omp unroll'.
C | Context of the AST. |
StartLoc | Location of the introducer (e.g. the 'omp' token). |
EndLoc | Location of the directive's end (e.g. the tok::eod). |
Clauses | The directive's clauses. |
AssociatedStmt | The outermost associated loop. |
TransformedStmt | The loop nest after tiling, or nullptr in dependent contexts. |
PreInits | Helper preinits statements for the loop nest. |
Definition at line 451 of file StmtOpenMP.cpp.
References clang::C.
Referenced by clang::SemaOpenMP::ActOnOpenMPUnrollDirective().
|
static |
Build an empty '#pragma omp unroll' AST node for deserialization.
C | Context of the AST. |
NumClauses | Number of clauses to allocate. |
Definition at line 465 of file StmtOpenMP.cpp.
References clang::C.
|
inline |
Return the pre-init statements.
Definition at line 5768 of file StmtOpenMP.h.
|
inline |
Get the de-sugared associated loops after unrolling.
This is only used if the unrolled loop becomes an associated loop of another directive, otherwise the loop is emitted directly using loop transformation metadata. When the unrolled loop cannot be used by another directive (e.g. because of the full clause), the transformed stmt can also be nullptr.
Definition at line 5763 of file StmtOpenMP.h.
|
friend |
Definition at line 5709 of file StmtOpenMP.h.
References ASTStmtReader.
Referenced by ASTStmtReader.
|
friend |
Definition at line 5710 of file StmtOpenMP.h.
References OMPExecutableDirective.
Referenced by OMPExecutableDirective.