aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Scalar/IndVarSimplify.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms/Scalar/IndVarSimplify.h')
-rw-r--r--include/llvm/Transforms/Scalar/IndVarSimplify.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Scalar/IndVarSimplify.h b/include/llvm/Transforms/Scalar/IndVarSimplify.h
index 13f811994b..902483eb8c 100644
--- a/include/llvm/Transforms/Scalar/IndVarSimplify.h
+++ b/include/llvm/Transforms/Scalar/IndVarSimplify.h
@@ -10,10 +10,16 @@
#include "llvm/Pass.h"
+namespace cfg { class LoopInfo; }
+
struct InductionVariableSimplify : public MethodPass {
- static bool doit(Method *M);
+ static bool doit(Method *M, cfg::LoopInfo &Loops);
+
+ virtual bool runOnMethod(Method *M);
- virtual bool runOnMethod(Method *M) { return doit(M); }
+ virtual void getAnalysisUsageInfo(Pass::AnalysisSet &Required,
+ Pass::AnalysisSet &Destroyed,
+ Pass::AnalysisSet &Provided);
};
#endif