Chisel
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Transformation Class Reference

Represesnts a transformation action on an AST. More...

#include <Transformation.h>

Inheritance diagram for Transformation:
DeadcodeElimination Reduction Reformat GlobalReduction LocalReduction

Public Member Functions

 Transformation ()
 
 ~Transformation ()
 

Protected Member Functions

virtual void Initialize (clang::ASTContext &Ctx)
 
std::vector< clang::Stmt * > getAllChildren (clang::Stmt *S)
 
clang::SourceLocation getEndOfCond (clang::Expr *E)
 
clang::SourceLocation getEndOfStmt (clang::Stmt *S)
 
clang::SourceLocation getEndLocation (clang::SourceLocation Loc)
 
clang::SourceLocation getEndLocationAfter (clang::SourceRange Range, char Symbol)
 
clang::SourceLocation getEndLocationUntil (clang::SourceRange Range, char Symbol)
 
clang::SourceLocation getEndLocationFromBegin (clang::SourceRange Range)
 
int getOffsetUntil (const char *Buf, char Symbol)
 
llvm::StringRef getSourceText (const clang::SourceLocation &B, const clang::SourceLocation &E)
 
void removeSourceText (const clang::SourceLocation &B, const clang::SourceLocation &E)
 

Protected Attributes

clang::ASTContext * Context
 
clang::Rewriter TheRewriter
 

Detailed Description

Represesnts a transformation action on an AST.

Constructor & Destructor Documentation

Transformation::Transformation ( )
inline
Transformation::~Transformation ( )
inline

Member Function Documentation

std::vector< clang::Stmt * > Transformation::getAllChildren ( clang::Stmt S)
protected
clang::SourceLocation Transformation::getEndLocation ( clang::SourceLocation  Loc)
protected
clang::SourceLocation Transformation::getEndLocationAfter ( clang::SourceRange  Range,
char  Symbol 
)
protected
clang::SourceLocation Transformation::getEndLocationFromBegin ( clang::SourceRange  Range)
protected
clang::SourceLocation Transformation::getEndLocationUntil ( clang::SourceRange  Range,
char  Symbol 
)
protected
clang::SourceLocation Transformation::getEndOfCond ( clang::Expr E)
protected
clang::SourceLocation Transformation::getEndOfStmt ( clang::Stmt S)
protected
int Transformation::getOffsetUntil ( const char *  Buf,
char  Symbol 
)
protected
llvm::StringRef Transformation::getSourceText ( const clang::SourceLocation B,
const clang::SourceLocation E 
)
protected
void Transformation::Initialize ( clang::ASTContext &  Ctx)
protectedvirtual

Reimplemented in Reduction.

void Transformation::removeSourceText ( const clang::SourceLocation B,
const clang::SourceLocation E 
)
protected

Member Data Documentation

clang::ASTContext* Transformation::Context
protected
clang::Rewriter Transformation::TheRewriter
protected

The documentation for this class was generated from the following files: