OpenASIP
2.0
|
#include <MachineDCE.hh>
Public Types | |
typedef std::map< std::string, MachineFunction * > | FunctionMap |
typedef std::set< std::string > | UserList |
typedef std::map< std::string, UserList > | UserRelations |
typedef std::set< const std::string * > | AvoidRecursionSet |
typedef std::set< std::string > | UnusedFunctionsList |
Public Member Functions | |
MachineDCE () | |
virtual bool | doInitialization (Module &M) override |
virtual bool | runOnMachineFunction (MachineFunction &F) override |
virtual bool | doFinalization (Module &M) override |
virtual StringRef | getPassName () const override |
bool | canFindStart (const std::string &user, AvoidRecursionSet &avoid_recursion) |
void | addInitializer (const Constant *init, std::string &name) |
Public Attributes | |
FunctionMap | functionMappings_ |
Function name to MachineFunction map. More... | |
UserRelations | usersOfValue_ |
List of users of a symbol. More... | |
UserList | baseUsers_ |
If users are traced to this list it means that function cannot be eliminated. More... | |
UnusedFunctionsList | removeableFunctions |
Static Public Attributes | |
static char | ID = 0 |
Definition at line 66 of file MachineDCE.hh.
typedef std::set<const std::string*> llvm::MachineDCE::AvoidRecursionSet |
Definition at line 72 of file MachineDCE.hh.
typedef std::map<std::string, MachineFunction*> llvm::MachineDCE::FunctionMap |
Definition at line 69 of file MachineDCE.hh.
typedef std::set<std::string> llvm::MachineDCE::UnusedFunctionsList |
Definition at line 96 of file MachineDCE.hh.
typedef std::set<std::string> llvm::MachineDCE::UserList |
Definition at line 70 of file MachineDCE.hh.
typedef std::map<std::string, UserList> llvm::MachineDCE::UserRelations |
Definition at line 71 of file MachineDCE.hh.
|
inline |
Definition at line 68 of file MachineDCE.hh.
void MachineDCE::addInitializer | ( | const Constant * | init, |
std::string & | name | ||
) |
Definition at line 85 of file MachineDCE.cc.
References baseUsers_, and usersOfValue_.
Referenced by doInitialization().
bool MachineDCE::canFindStart | ( | const std::string & | user, |
AvoidRecursionSet & | avoid_recursion | ||
) |
Returns true if can find startpoint.
Definition at line 62 of file MachineDCE.cc.
References baseUsers_, and usersOfValue_.
Referenced by doFinalization().
|
overridevirtual |
Definition at line 185 of file MachineDCE.cc.
References canFindStart(), functionMappings_, and removeableFunctions.
|
overridevirtual |
Definition at line 111 of file MachineDCE.cc.
References addInitializer(), assert, and baseUsers_.
|
inlineoverridevirtual |
Definition at line 88 of file MachineDCE.hh.
|
overridevirtual |
UserList llvm::MachineDCE::baseUsers_ |
If users are traced to this list it means that function cannot be eliminated.
Definition at line 82 of file MachineDCE.hh.
Referenced by addInitializer(), canFindStart(), and doInitialization().
FunctionMap llvm::MachineDCE::functionMappings_ |
Function name to MachineFunction map.
Definition at line 75 of file MachineDCE.hh.
Referenced by doFinalization(), and runOnMachineFunction().
|
static |
Definition at line 67 of file MachineDCE.hh.
UnusedFunctionsList llvm::MachineDCE::removeableFunctions |
Definition at line 97 of file MachineDCE.hh.
Referenced by llvm::LLVMTCEBuilder::deleteDeadProcedures(), and doFinalization().
UserRelations llvm::MachineDCE::usersOfValue_ |
List of users of a symbol.
Definition at line 78 of file MachineDCE.hh.
Referenced by addInitializer(), canFindStart(), and runOnMachineFunction().