Rename Method to Function
[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 namespace cfg { class IntervalPartition; }
13
14 struct InductionVariableCannonicalize : public MethodPass {
15   // doInductionVariableCannonicalize - Simplify induction variables in loops
16   //
17   static bool doIt(Function *M, cfg::IntervalPartition &IP);
18
19   virtual bool runOnMethod(Function *M);
20
21   // getAnalysisUsageInfo - Declare that we need IntervalPartitions
22   void getAnalysisUsageInfo(Pass::AnalysisSet &Required,
23                             Pass::AnalysisSet &Destroyed,
24                             Pass::AnalysisSet &Provided);
25 };
26
27 #endif