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"
12 class IntervalPartition;
14 struct InductionVariableCannonicalize : public FunctionPass {
15 // doInductionVariableCannonicalize - Simplify induction variables in loops
17 static bool doIt(Function *F, IntervalPartition &IP);
19 virtual bool runOnFunction(Function *F);
21 // getAnalysisUsage - Declare that we need IntervalPartitions
22 void getAnalysisUsage(AnalysisUsage &AU) const;