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
This commit is contained in:
Chris Lattner 2003-09-01 03:14:00 +00:00
parent 36f18aefe8
commit 2757af2d47
2 changed files with 9 additions and 3 deletions

View File

@ -21,6 +21,13 @@ class Function;
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.

View File

@ -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