mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
Add an optimization stub
llvm-svn: 35
This commit is contained in:
parent
6cc066490b
commit
acbaaf7bf2
@ -32,8 +32,8 @@ static inline bool ApplyOptToAllMethods(Module *C, bool (*Opt)(Method*)) {
|
||||
//
|
||||
|
||||
bool DoDeadCodeElimination(Method *M); // DCE a method
|
||||
bool DoRemoveUnusedConstants(SymTabValue *S); // RUC a method or class
|
||||
bool DoDeadCodeElimination(Module *C); // DCE & RUC a whole class
|
||||
bool DoRemoveUnusedConstants(SymTabValue *S); // RUC a method or module
|
||||
bool DoDeadCodeElimination(Module *C); // DCE & RUC a whole module
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Constant Propogation Pass
|
||||
@ -92,4 +92,16 @@ static inline bool DoSymbolStripping(Module *M) {
|
||||
//
|
||||
bool DoFullSymbolStripping(Module *M);
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Induction Variable Cannonicalization
|
||||
//
|
||||
|
||||
// DoInductionVariableCannonicalize - Simplify induction variables in loops
|
||||
//
|
||||
bool DoInductionVariableCannonicalize(Method *M);
|
||||
static inline bool DoInductionVariableCannonicalize(Module *M) {
|
||||
return ApplyOptToAllMethods(M, DoInductionVariableCannonicalize);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user