summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-05-01 06:25:24 +0000
committerChris Lattner <sabre@nondot.org>2008-05-01 06:25:24 +0000
commitfd1cbbe9cfeddab8ec99a9325c1e87311609c0a3 (patch)
tree97c06df8a7a6e2792fdf3f9523324af2afc839d3 /include
parent2facbddb76e68fcc4d842174859506ca1584604c (diff)
downloadllvm-fd1cbbe9cfeddab8ec99a9325c1e87311609c0a3.tar.gz
llvm-fd1cbbe9cfeddab8ec99a9325c1e87311609c0a3.tar.bz2
llvm-fd1cbbe9cfeddab8ec99a9325c1e87311609c0a3.tar.xz
Delete the IPO simplify-libcalls and completely reimplement it as
a FunctionPass. This makes it simpler, fixes dozens of bugs, adds a couple of minor features, and shrinks is considerably: from 2214 to 1437 lines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/IPO.h5
-rw-r--r--include/llvm/Transforms/Scalar.h6
2 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h
index 3c5353a9a3..7d98dfe604 100644
--- a/include/llvm/Transforms/IPO.h
+++ b/include/llvm/Transforms/IPO.h
@@ -159,11 +159,6 @@ FunctionPass *createSingleLoopExtractorPass();
///
ModulePass *createBlockExtractorPass(const std::vector<BasicBlock*> &BTNE);
-/// createOptimizeWellKnownCallsPass - This pass optimizes specific calls to
-/// specific well-known (library) functions.
-ModulePass *createSimplifyLibCallsPass();
-
-
/// createIndMemRemPass - This pass removes potential indirect calls of
/// malloc and free
ModulePass *createIndMemRemPass();
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h
index 1098405014..f350a513e5 100644
--- a/include/llvm/Transforms/Scalar.h
+++ b/include/llvm/Transforms/Scalar.h
@@ -323,6 +323,12 @@ FunctionPass *createMemCpyOptPass();
// can prove are dead.
//
LoopPass *createLoopDeletionPass();
+
+//===----------------------------------------------------------------------===//
+//
+/// createSimplifyLibCallsPass - This pass optimizes specific calls to
+/// specific well-known (library) functions.
+FunctionPass *createSimplifyLibCallsPass();
//===----------------------------------------------------------------------===//
//