|
Chisel
|
Represents a sound dead-code elimination phase. More...
#include <DeadcodeElimination.h>
Public Member Functions | |
| DeadcodeElimination () | |
| ~DeadcodeElimination () | |
| void | removeUnusedElements () |
Public Member Functions inherited from Transformation | |
| Transformation () | |
| ~Transformation () | |
Public Attributes | |
| std::map< clang::Decl *, clang::SourceRange > | LocationMapping |
| std::vector< clang::SourceLocation > | UnusedLocations |
Friends | |
| class | LocalElementCollectionVisitor |
Additional Inherited Members | |
Protected Member Functions inherited from Transformation | |
| 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 inherited from Transformation | |
| clang::ASTContext * | Context |
| clang::Rewriter | TheRewriter |
Represents a sound dead-code elimination phase.
DeadcodeElimination removes unused statements without calling the oracle, and removes unused labels and unused variable declarations that are side-effect free.
|
inline |
|
inline |
| void DeadcodeElimination::removeUnusedElements | ( | ) |
|
friend |
| std::map<clang::Decl *, clang::SourceRange> DeadcodeElimination::LocationMapping |
| std::vector<clang::SourceLocation> DeadcodeElimination::UnusedLocations |
1.8.11