aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Scalar/InductionVars.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms/Scalar/InductionVars.h')
-rw-r--r--include/llvm/Transforms/Scalar/InductionVars.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/llvm/Transforms/Scalar/InductionVars.h b/include/llvm/Transforms/Scalar/InductionVars.h
index 4faf3458f6..7c79afaa59 100644
--- a/include/llvm/Transforms/Scalar/InductionVars.h
+++ b/include/llvm/Transforms/Scalar/InductionVars.h
@@ -9,15 +9,19 @@
#define LLVM_OPT_INDUCTION_VARS_H
#include "llvm/Pass.h"
+namespace cfg { class IntervalPartition; }
struct InductionVariableCannonicalize : public MethodPass {
// doInductionVariableCannonicalize - Simplify induction variables in loops
//
- static bool doIt(Method *M);
+ static bool doIt(Method *M, cfg::IntervalPartition &IP);
- virtual bool runOnMethod(Method *M) {
- return doIt(M);
- }
+ virtual bool runOnMethod(Method *M);
+
+ // getAnalysisUsageInfo - Declare that we need IntervalPartitions
+ void getAnalysisUsageInfo(Pass::AnalysisSet &Required,
+ Pass::AnalysisSet &Destroyed,
+ Pass::AnalysisSet &Provided);
};
#endif