aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Scalar/IndVarSimplify.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-30 23:29:35 +0000
committerChris Lattner <sabre@nondot.org>2002-01-30 23:29:35 +0000
commit967a04442d92f224911eb65b4c06102048f318c2 (patch)
treea4cbe8ad2490fd3bf9ad319a14e14db94e753482 /include/llvm/Transforms/Scalar/IndVarSimplify.h
parentfacd752d3afaeca7dee46648f2a2ae209a94e5e9 (diff)
downloadexternal_llvm-967a04442d92f224911eb65b4c06102048f318c2.tar.gz
external_llvm-967a04442d92f224911eb65b4c06102048f318c2.tar.bz2
external_llvm-967a04442d92f224911eb65b4c06102048f318c2.zip
Convert xforms over to use new pass structure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1596 91177308-0d34-0410-b5e6-96231b3b80d8
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