move llvm/Transforms/Pass.h to the top level llvm/Pass.h file
[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/Pass.h"
12
13 namespace opt {
14
15 struct InductionVariableCannonicalize : public Pass {
16   // doInductionVariableCannonicalize - Simplify induction variables in loops
17   //
18   static bool doIt(Method *M);
19
20   virtual bool doPerMethodWork(Method *M) {
21     return doIt(M);
22   }
23 };
24
25 }  // end namespace opt
26
27 #endif