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/Transforms/Pass.h"
12 #include "llvm/Module.h"
16 struct InductionVariableCannonicalize : public Pass {
17 // doInductionVariableCannonicalize - Simplify induction variables in loops
19 static bool doIt(Method *M);
21 virtual bool doPerMethodWork(Method *M) {
26 } // end namespace opt