clang: OMPInterchangeDirective Class Reference (original) (raw)
Represents the '#pragma omp interchange' loop transformation directive. More...
#include "[clang/AST/StmtOpenMP.h](StmtOpenMP%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| Stmt * | getTransformedStmt () const |
| Gets the associated loops after the transformation. | |
| Stmt * | getPreInits () const |
| Return preinits statement. |
| 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) |
| 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) |
| Friends | |
|---|---|
| class | ASTStmtReader |
| class | OMPExecutableDirective |
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 5897 of file StmtOpenMP.h.
◆ classof()
| bool OMPInterchangeDirective::classof ( const Stmt * T) | inlinestatic |
|---|
◆ Create()
Create a new AST node representation for '#pragma omp interchange'.
Parameters
| 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. |
| NumLoops | Number of affected loops (number of items in the 'permutation' clause if present). |
| 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 535 of file StmtOpenMP.cpp.
References clang::C.
Referenced by clang::SemaOpenMP::ActOnOpenMPInterchangeDirective().
◆ CreateEmpty()
Build an empty '#pragma omp interchange' AST node for deserialization.
Parameters
| C | Context of the AST. |
|---|---|
| NumClauses | Number of clauses to allocate. |
| NumLoops | Number of associated loops to allocate. |
Definition at line 548 of file StmtOpenMP.cpp.
References clang::C.
◆ getPreInits()
| Stmt * OMPInterchangeDirective::getPreInits ( ) const | inline |
|---|
◆ getTransformedStmt()
| Stmt * OMPInterchangeDirective::getTransformedStmt ( ) const | inline |
|---|
◆ ASTStmtReader
| friend class ASTStmtReader | friend |
|---|
◆ OMPExecutableDirective
The documentation for this class was generated from the following files:
- include/clang/AST/StmtOpenMP.h
- lib/AST/StmtOpenMP.cpp