aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-02 04:24:36 +0000
committerChris Lattner <sabre@nondot.org>2006-05-02 04:24:36 +0000
commitb3674e475389b72939bf90965790d63e9fa24b95 (patch)
tree132036db20f9fe0b772c95c1d3090c9ea6d9b486 /include/llvm/Transforms
parent51b776d25915ca7fbfc14578ff479352a772da06 (diff)
downloadexternal_llvm-b3674e475389b72939bf90965790d63e9fa24b95.zip
external_llvm-b3674e475389b72939bf90965790d63e9fa24b95.tar.gz
external_llvm-b3674e475389b72939bf90965790d63e9fa24b95.tar.bz2
Add pass ID's for various passes, so they can be AddRequiredID. Patch by
Domagoj Babic! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/Scalar.h34
1 files changed, 20 insertions, 14 deletions
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h
index 502c5d3..3ae1348 100644
--- a/include/llvm/Transforms/Scalar.h
+++ b/include/llvm/Transforms/Scalar.h
@@ -163,6 +163,7 @@ FunctionPass *createLoopUnrollPass();
// ret int %Y
//
FunctionPass *createPromoteMemoryToRegisterPass();
+extern const PassInfo *PromoteMemoryToRegisterID;
//===----------------------------------------------------------------------===//
//
@@ -240,31 +241,36 @@ FunctionPass *createLoopSimplifyPass();
extern const PassInfo *LoopSimplifyID;
//===----------------------------------------------------------------------===//
+// This pass converts SelectInst instructions into conditional branch and PHI
+// instructions. If the OnlyFP flag is set to true, then only floating point
+// select instructions are lowered.
//
-// This pass eliminates call instructions to the current function which occur
-// immediately before return instructions.
-//
-FunctionPass *createTailCallEliminationPass();
-
+FunctionPass *createLowerSelectPass(bool OnlyFP = false);
+extern const PassInfo *LowerSelectID;
//===----------------------------------------------------------------------===//
-// This pass convert malloc and free instructions to %malloc & %free function
-// calls.
+//
+// LowerAllocations Pass - Turn malloc and free instructions into %malloc and
+// %free calls.
+//
+// AU.addRequiredID(LowerAllocationsID);
//
FunctionPass *createLowerAllocationsPass(bool LowerMallocArgToInteger = false);
+extern const PassInfo *LowerAllocationsID;
//===----------------------------------------------------------------------===//
-// This pass converts SwitchInst instructions into a sequence of chained binary
-// branch instructions.
//
-FunctionPass *createLowerSwitchPass();
+// This pass eliminates call instructions to the current function which occur
+// immediately before return instructions.
+//
+FunctionPass *createTailCallEliminationPass();
//===----------------------------------------------------------------------===//
-// This pass converts SelectInst instructions into conditional branch and PHI
-// instructions. If the OnlyFP flag is set to true, then only floating point
-// select instructions are lowered.
+// This pass converts SwitchInst instructions into a sequence of chained binary
+// branch instructions.
//
-FunctionPass *createLowerSelectPass(bool OnlyFP = false);
+FunctionPass *createLowerSwitchPass();
+extern const PassInfo *LowerSwitchID;
//===----------------------------------------------------------------------===//
// This pass converts PackedType operations into low-level scalar operations.