1 //===-- InductionVars.h - Induction Variable Recognition ---------*- C++ -*--=//
3 // This family of functions is useful for Induction variable recognition,
4 // removal and optimizations.
6 //===----------------------------------------------------------------------===//
8 #ifndef LLVM_OPT_INDUCTION_VARS_H
9 #define LLVM_OPT_INDUCTION_VARS_H
11 #include "llvm/Pass.h"
15 struct InductionVariableCannonicalize : public Pass {
16 // doInductionVariableCannonicalize - Simplify induction variables in loops
18 static bool doIt(Method *M);
20 virtual bool doPerMethodWork(Method *M) {
25 } // end namespace opt