Convert to new simpler pass structure
[oota-llvm.git] / include / llvm / Transforms / Scalar / InductionVars.h
1 //===-- InductionVars.h - Induction Variable Recognition ---------*- C++ -*--=//
2 //
3 // This family of functions is useful for Induction variable recognition, 
4 // removal and optimizations.
5 //
6 //===----------------------------------------------------------------------===//
7
8 #ifndef LLVM_OPT_INDUCTION_VARS_H
9 #define LLVM_OPT_INDUCTION_VARS_H
10
11 #include "llvm/Transforms/Pass.h"
12 #include "llvm/Module.h"
13
14 namespace opt {
15
16 struct InductionVariableCannonicalize : public Pass {
17   // doInductionVariableCannonicalize - Simplify induction variables in loops
18   //
19   static bool doIt(Method *M);
20
21   virtual bool doPerMethodWork(Method *M) {
22     return doIt(M);
23   }
24 };
25
26 }  // end namespace opt
27
28 #endif