class OMPLoopTransformationDirective

Declaration

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

Description

The base class for all loop transformation directives.

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

Inherits from: OMPLoopBasedDirective

Member Variables

private unsigned int NumGeneratedLoops = 0
Number of loops generated by this loop transformation.

Inherited from OMPLoopBasedDirective:

protected NumAssociatedLoops = 0

Inherited from OMPExecutableDirective:

protected Data = nullptr

Inherited from Stmt:

protected

Method Overview

Inherited from OMPLoopBasedDirective:

Inherited from OMPExecutableDirective:

Inherited from Stmt:

Methods

OMPLoopTransformationDirective(
    clang::Stmt::StmtClass SC,
    clang::OpenMPDirectiveKind Kind,
    clang::SourceLocation StartLoc,
    clang::SourceLocation EndLoc,
    unsigned int NumAssociatedLoops)

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

Parameters

clang::Stmt::StmtClass SC
clang::OpenMPDirectiveKind Kind
clang::SourceLocation StartLoc
clang::SourceLocation EndLoc
unsigned int NumAssociatedLoops

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

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

Parameters

const clang::Stmt* T

unsigned int getNumAssociatedLoops() const

Description

Return the number of associated (consumed) loops.

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

unsigned int getNumGeneratedLoops()

Description

Return the number of loops generated by this loop transformation.

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

clang::Stmt* getPreInits() const

Description

Return preinits statement.

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

clang::Stmt* getTransformedStmt() const

Description

Get the de-sugared statements after 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.

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

void setNumGeneratedLoops(unsigned int Num)

Description

Set the number of loops generated by this loop transformation.

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

Parameters

unsigned int Num