Remove all contents of the cfg namespace to the global namespace
[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 class IntervalPartition;
13
14 struct InductionVariableCannonicalize : public FunctionPass {
15   // doInductionVariableCannonicalize - Simplify induction variables in loops
16   //
17   static bool doIt(Function *F, IntervalPartition &IP);
18
19   virtual bool runOnFunction(Function *F);
20
21   // getAnalysisUsage - Declare that we need IntervalPartitions
22   void getAnalysisUsage(AnalysisUsage &AU) const;
23 };
24
25 #endif