class OMPTileDirective

Declaration

class OMPTileDirective : public OMPLoopTransformationDirective { /* full declaration omitted */ };

Description

This represents the '#pragma omp tile' loop transformation directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:5492

Inherits from: OMPLoopTransformationDirective

Member Variables

Inherited from OMPLoopBasedDirective:

protected NumAssociatedLoops = 0

Inherited from OMPExecutableDirective:

protected Data = nullptr

Inherited from Stmt:

protected

Method Overview

  • public static clang::OMPTileDirective * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation EndLoc, ArrayRef<clang::OMPClause *> Clauses, unsigned int NumLoops, clang::Stmt * AssociatedStmt, clang::Stmt * TransformedStmt, clang::Stmt * PreInits)
  • public static clang::OMPTileDirective * CreateEmpty(const clang::ASTContext & C, unsigned int NumClauses, unsigned int NumLoops)
  • private OMPTileDirective(clang::SourceLocation StartLoc, clang::SourceLocation EndLoc, unsigned int NumLoops)
  • public static bool classof(const clang::Stmt * T)
  • public clang::Stmt * getPreInits() const
  • public clang::Stmt * getTransformedStmt() const
  • private void setPreInits(clang::Stmt * PreInits)
  • private void setTransformedStmt(clang::Stmt * S)

Inherited from OMPLoopTransformationDirective:

Inherited from OMPLoopBasedDirective:

Inherited from OMPExecutableDirective:

Inherited from Stmt:

Methods

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

Description

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

Declared at: clang/include/clang/AST/StmtOpenMP.h:5531

Parameters

const clang::ASTContext& C
Context of the AST.
clang::SourceLocation StartLoc
Location of the introducer (e.g. the 'omp' token).
clang::SourceLocation EndLoc
Location of the directive's end (e.g. the tok::eod).
ArrayRef<clang::OMPClause*> Clauses
The directive's clauses.
unsigned int NumLoops
Number of associated loops (number of items in the 'sizes' clause).
clang::Stmt* AssociatedStmt
The outermost associated loop.
clang::Stmt* TransformedStmt
The loop nest after tiling, or nullptr in dependent contexts.
clang::Stmt* PreInits
Helper preinits statements for the loop nest.

static clang::OMPTileDirective* CreateEmpty(
    const clang::ASTContext& C,
    unsigned int NumClauses,
    unsigned int NumLoops)

Description

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

Declared at: clang/include/clang/AST/StmtOpenMP.h:5542

Parameters

const clang::ASTContext& C
Context of the AST.
unsigned int NumClauses
Number of clauses to allocate.
unsigned int NumLoops
Number of associated loops to allocate.

OMPTileDirective(clang::SourceLocation StartLoc,
                 clang::SourceLocation EndLoc,
                 unsigned int NumLoops)

Declared at: clang/include/clang/AST/StmtOpenMP.h:5502

Parameters

clang::SourceLocation StartLoc
clang::SourceLocation EndLoc
unsigned int NumLoops

static bool classof(const clang::Stmt* T)

Declared at: clang/include/clang/AST/StmtOpenMP.h:5563

Parameters

const clang::Stmt* T

clang::Stmt* getPreInits() const

Description

Return preinits statement.

Declared at: clang/include/clang/AST/StmtOpenMP.h:5561

clang::Stmt* getTransformedStmt() const

Description

Gets/sets the associated loops after tiling. This is in de-sugared format stored as a CompoundStmt. Note that if the generated loops a become associated loops of another directive, they may need to be hoisted before them.

Declared at: clang/include/clang/AST/StmtOpenMP.h:5556

void setPreInits(clang::Stmt* PreInits)

Declared at: clang/include/clang/AST/StmtOpenMP.h:5510

Parameters

clang::Stmt* PreInits

void setTransformedStmt(clang::Stmt* S)

Declared at: clang/include/clang/AST/StmtOpenMP.h:5514

Parameters

clang::Stmt* S