aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Scalar/DCE.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/DCE.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/DCE.h')
-rw-r--r--include/llvm/Transforms/Scalar/DCE.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/Transforms/Scalar/DCE.h b/include/llvm/Transforms/Scalar/DCE.h
index 712223e1d0..6fc5287e42 100644
--- a/include/llvm/Transforms/Scalar/DCE.h
+++ b/include/llvm/Transforms/Scalar/DCE.h
@@ -9,7 +9,7 @@
#define LLVM_OPT_DCE_H
#include "llvm/Pass.h"
-#include "llvm/BasicBlock.h"
+#include "llvm/Method.h"
//===----------------------------------------------------------------------===//
// DeadInstElimination - This pass quickly removes trivially dead instructions
@@ -68,13 +68,13 @@ struct DeadCodeElimination : public MethodPass {
// it more successful are removing non-obviously dead instructions.
//
struct AgressiveDCE : public MethodPass {
- // DoADCE - Execute the Agressive Dead Code Elimination Algorithm
- //
- static bool doADCE(Method *M); // Defined in ADCE.cpp
+ virtual bool runOnMethod(Method *M);
- virtual bool runOnMethod(Method *M) {
- return doADCE(M);
- }
+ // getAnalysisUsageInfo - We require post dominance frontiers (aka Control
+ // Dependence Graph)
+ virtual void getAnalysisUsageInfo(Pass::AnalysisSet &Requires,
+ Pass::AnalysisSet &Destroyed,
+ Pass::AnalysisSet &Provided);
};