Change the RaiseAllocations pass from being a BasicBlockPass to being a Pass

llvm-svn: 8279
This commit is contained in:
Chris Lattner 2003-09-01 03:14:00 +00:00
parent 1f9495ceab
commit 2ef2a63728
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