CACAO
|
DeadCodeEliminationPass. More...
Public Member Functions | |
DeadCodeEliminationPass () | |
virtual bool | run (JITData &JD) |
Run the Pass. More... | |
virtual PassUsage & | get_PassUsage (PassUsage &PA) const |
Set the requirements for the pass. More... | |
virtual bool | is_enabled () const |
Allows concrete passes to enable/disable themselves the way they like. More... | |
![]() | |
Pass () | |
void | set_PassRunner (PassRunner *pr) |
template<class _PassClass > | |
_PassClass * | get_Pass () const |
Get the result of a previous compiler pass. More... | |
template<class _PassClass > | |
_PassClass * | get_Pass_if_available () const |
Get the result of a previous compiler pass. More... | |
virtual void | initialize () |
Initialize the Pass. More... | |
virtual void | finalize () |
Finalize the Pass. More... | |
virtual bool | verify () const |
Verify the Result. More... | |
virtual | ~Pass () |
Destructor. More... | |
Static Public Attributes | |
static Option< bool > | enabled |
Private Types | |
typedef alloc::unordered_map < Instruction *, bool >::type | InstBoolMapTy |
typedef alloc::unordered_map < Instruction *, std::size_t > ::type | InstIntMapTy |
Additional Inherited Members | |
![]() | |
template<class T > | |
static PassInfo::IDTy | ID () |
This template will return a unique ID for each type that it is called with. More... | |
This optimization pass removes dead (a.k.a unused) code from the program, based on an algorithm in [8]. It uses a 'weak' definition of 'dead' which does not take control-flow into account.
Definition at line 46 of file DeadCodeEliminationPass.hpp.
|
private |
Definition at line 48 of file DeadCodeEliminationPass.hpp.
|
private |
Definition at line 49 of file DeadCodeEliminationPass.hpp.
|
inline |
Definition at line 52 of file DeadCodeEliminationPass.hpp.
Set the requirements for the pass.
Reimplemented from cacao::jit::compiler2::Pass.
Definition at line 146 of file DeadCodeEliminationPass.cpp.
|
inlinevirtual |
Allows concrete passes to enable/disable themselves the way they like.
Reimplemented from cacao::jit::compiler2::Pass.
Definition at line 56 of file DeadCodeEliminationPass.hpp.
|
virtual |
Run the Pass.
This method implements the compiler pass.
Implements cacao::jit::compiler2::Pass.
Definition at line 57 of file DeadCodeEliminationPass.cpp.
|
static |
Definition at line 51 of file DeadCodeEliminationPass.hpp.