aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-01 03:14:00 +0000
committerChris Lattner <sabre@nondot.org>2003-09-01 03:14:00 +0000
commit2757af2d47ea633d4cdb7bd1b12850e975a49bdf (patch)
treef3491948c6b179ec9e6545e256b0381c4c7cbe42 /include
parent36f18aefe869fe01c4ccf09073b0fed19e9a2064 (diff)
downloadexternal_llvm-2757af2d47ea633d4cdb7bd1b12850e975a49bdf.zip
external_llvm-2757af2d47ea633d4cdb7bd1b12850e975a49bdf.tar.gz
external_llvm-2757af2d47ea633d4cdb7bd1b12850e975a49bdf.tar.bz2
Change the RaiseAllocations pass from being a BasicBlockPass to being a Pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/IPO.h7
-rw-r--r--include/llvm/Transforms/Scalar.h5
2 files changed, 9 insertions, 3 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h
index 1ae3c81..4f0809a 100644
--- a/include/llvm/Transforms/IPO.h
+++ b/include/llvm/Transforms/IPO.h
@@ -22,6 +22,13 @@ Pass *createConstantMergePass();
//===----------------------------------------------------------------------===//
+// createRaiseAllocationsPass - Return a new pass that transforms malloc and
+// free function calls into malloc and free instructions.
+//
+Pass *createRaiseAllocationsPass();
+
+
+//===----------------------------------------------------------------------===//
// createDeadTypeEliminationPass - Return a new pass that eliminates symbol
// table entries for types that are never used.
//
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h
index 58dcd42..d896506 100644
--- a/include/llvm/Transforms/Scalar.h
+++ b/include/llvm/Transforms/Scalar.h
@@ -235,11 +235,10 @@ extern const PassInfo *LoopPreheadersID;
//===----------------------------------------------------------------------===//
-// These two passes convert malloc and free instructions to and from %malloc &
-// %free function calls.
+// This pass convert malloc and free instructions to %malloc & %free function
+// calls.
//
FunctionPass *createLowerAllocationsPass();
-Pass *createRaiseAllocationsPass();
//===----------------------------------------------------------------------===//
// This pass converts SwitchInst instructions into a sequence of chained binary