|
clang 24.0.0git
|
Represents the '#pragma omp split' loop transformation directive. More...
#include "clang/AST/StmtOpenMP.h"
Public Member Functions | |
| Stmt * | getTransformedStmt () const |
| Gets/sets the associated loops after the transformation, i.e. | |
| Stmt * | getPreInits () const |
| Return preinits 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. | |
| 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. | |
Static Public Member Functions | |
| static OMPSplitDirective * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, ArrayRef< OMPClause * > Clauses, unsigned NumLoops, Stmt *AssociatedStmt, Stmt *TransformedStmt, Stmt *PreInits) |
| Create a new AST node representation for '#pragma omp split'. | |
| static OMPSplitDirective * | CreateEmpty (const ASTContext &C, unsigned NumClauses, unsigned NumLoops) |
| Build an empty '#pragma omp split' 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) | |
Represents the '#pragma omp split' loop transformation directive.
This directive transforms a single loop into multiple loops based on index ranges. The transformation splits the iteration space of the loop into multiple contiguous ranges. The counts clause is required and exactly one list item must be omp_fill.
Definition at line 6165 of file StmtOpenMP.h.
|
inlinestatic |
Definition at line 6226 of file StmtOpenMP.h.
|
static |
Create a new AST node representation for '#pragma omp split'.
| 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 (e.g. the required counts clause). |
| NumLoops | Number of affected loops (should be 1 for split). |
| AssociatedStmt | The outermost associated loop. |
| TransformedStmt | The loop nest after splitting, or nullptr in dependent contexts. |
| PreInits | Helper preinits statements for the loop nest. |
Definition at line 608 of file StmtOpenMP.cpp.
References clang::C.
Referenced by clang::SemaOpenMP::ActOnOpenMPSplitDirective().
|
static |
Build an empty '#pragma omp split' AST node for deserialization.
| C | Context of the AST. |
| NumClauses | Number of clauses to allocate. |
| NumLoops | Number of associated loops to allocate. |
Definition at line 620 of file StmtOpenMP.cpp.
References clang::C.
|
inline |
Return preinits statement.
Definition at line 6224 of file StmtOpenMP.h.
|
inline |
Gets/sets the associated loops after the transformation, i.e.
after de-sugaring.
Definition at line 6219 of file StmtOpenMP.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitOMPSplitDirective().
|
friend |
Definition at line 6167 of file StmtOpenMP.h.
References ASTStmtReader.
Referenced by ASTStmtReader.
|
friend |
Definition at line 6168 of file StmtOpenMP.h.
References OMPExecutableDirective.
Referenced by OMPExecutableDirective.