aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-06-30 06:37:16 +0000
committerChris Lattner <sabre@nondot.org>2001-06-30 06:37:16 +0000
commit8ea0755f9851bcd7900fee2eed94265e60551918 (patch)
treee01307799327df101a81e6c013dc48cde3bc322d /include
parentd8d8c836e75fc14bc9a143232d2e9ea64df8dc16 (diff)
downloadexternal_llvm-8ea0755f9851bcd7900fee2eed94265e60551918.zip
external_llvm-8ea0755f9851bcd7900fee2eed94265e60551918.tar.gz
external_llvm-8ea0755f9851bcd7900fee2eed94265e60551918.tar.bz2
Add prototypes for ADCE pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/Scalar/DCE.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/llvm/Transforms/Scalar/DCE.h b/include/llvm/Transforms/Scalar/DCE.h
index 362e146..a7497bc 100644
--- a/include/llvm/Transforms/Scalar/DCE.h
+++ b/include/llvm/Transforms/Scalar/DCE.h
@@ -8,10 +8,8 @@
#ifndef LLVM_OPT_DCE_H
#define LLVM_OPT_DCE_H
+#include "llvm/Module.h"
#include "llvm/Method.h"
-class Module;
-class SymTabValue;
-class BasicBlock;
namespace opt {
@@ -19,6 +17,14 @@ bool DoDeadCodeElimination(Method *M); // DCE a method
bool DoRemoveUnusedConstants(SymTabValue *S); // RUC a method or module
bool DoDeadCodeElimination(Module *C); // DCE & RUC a whole module
+
+// DoADCE - Execute the Agressive Dead Code Elimination Algorithm
+//
+bool DoADCE(Method *M); // Defined in ADCE.cpp
+static inline bool DoADCE(Module *M) {
+ return M->reduceApply(DoADCE);
+}
+
// SimplifyCFG - This function is used to do simplification of a CFG. For
// example, it adjusts branches to branches to eliminate the extra hop, it
// eliminates unreachable basic blocks, and does other "peephole" optimization