Add an optimization stub

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-06-20 19:26:21 +00:00
parent 564de7d79b
commit 113b2ffd35

View File

@ -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