[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LowerAllocations.cpp LowerSelect.cpp LowerSwitch.cpp Mem2Reg.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon May 1 21:24:49 PDT 2006
Changes in directory llvm/lib/Transforms/Scalar:
LowerAllocations.cpp updated: 1.55 -> 1.56
LowerSelect.cpp updated: 1.3 -> 1.4
LowerSwitch.cpp updated: 1.18 -> 1.19
Mem2Reg.cpp updated: 1.14 -> 1.15
---
Log message:
Add pass ID's for various passes, so they can be AddRequiredID. Patch by
Domagoj Babic!
---
Diffs of the changes: (+8 -0)
LowerAllocations.cpp | 2 ++
LowerSelect.cpp | 2 ++
LowerSwitch.cpp | 2 ++
Mem2Reg.cpp | 2 ++
4 files changed, 8 insertions(+)
Index: llvm/lib/Transforms/Scalar/LowerAllocations.cpp
diff -u llvm/lib/Transforms/Scalar/LowerAllocations.cpp:1.55 llvm/lib/Transforms/Scalar/LowerAllocations.cpp:1.56
--- llvm/lib/Transforms/Scalar/LowerAllocations.cpp:1.55 Sat Oct 22 23:37:20 2005
+++ llvm/lib/Transforms/Scalar/LowerAllocations.cpp Mon May 1 23:24:36 2006
@@ -60,6 +60,8 @@
X("lowerallocs", "Lower allocations from instructions to calls");
}
+// Publically exposed interface to pass...
+const PassInfo *llvm::LowerAllocationsID = X.getPassInfo();
// createLowerAllocationsPass - Interface to this file...
FunctionPass *llvm::createLowerAllocationsPass(bool LowerMallocArgToInteger) {
return new LowerAllocations(LowerMallocArgToInteger);
Index: llvm/lib/Transforms/Scalar/LowerSelect.cpp
diff -u llvm/lib/Transforms/Scalar/LowerSelect.cpp:1.3 llvm/lib/Transforms/Scalar/LowerSelect.cpp:1.4
--- llvm/lib/Transforms/Scalar/LowerSelect.cpp:1.3 Thu Apr 21 18:45:12 2005
+++ llvm/lib/Transforms/Scalar/LowerSelect.cpp Mon May 1 23:24:36 2006
@@ -47,6 +47,8 @@
X("lowerselect", "Lower select instructions to branches");
}
+// Publically exposed interface to pass...
+const PassInfo *llvm::LowerSelectID = X.getPassInfo();
//===----------------------------------------------------------------------===//
// This pass converts SelectInst instructions into conditional branch and PHI
// instructions. If the OnlyFP flag is set to true, then only floating point
Index: llvm/lib/Transforms/Scalar/LowerSwitch.cpp
diff -u llvm/lib/Transforms/Scalar/LowerSwitch.cpp:1.18 llvm/lib/Transforms/Scalar/LowerSwitch.cpp:1.19
--- llvm/lib/Transforms/Scalar/LowerSwitch.cpp:1.18 Sun Jan 22 17:32:06 2006
+++ llvm/lib/Transforms/Scalar/LowerSwitch.cpp Mon May 1 23:24:36 2006
@@ -60,6 +60,8 @@
X("lowerswitch", "Lower SwitchInst's to branches");
}
+// Publically exposed interface to pass...
+const PassInfo *llvm::LowerSwitchID = X.getPassInfo();
// createLowerSwitchPass - Interface to this file...
FunctionPass *llvm::createLowerSwitchPass() {
return new LowerSwitch();
Index: llvm/lib/Transforms/Scalar/Mem2Reg.cpp
diff -u llvm/lib/Transforms/Scalar/Mem2Reg.cpp:1.14 llvm/lib/Transforms/Scalar/Mem2Reg.cpp:1.15
--- llvm/lib/Transforms/Scalar/Mem2Reg.cpp:1.14 Thu Apr 21 18:45:12 2005
+++ llvm/lib/Transforms/Scalar/Mem2Reg.cpp Mon May 1 23:24:36 2006
@@ -74,6 +74,8 @@
return Changed;
}
+// Publically exposed interface to pass...
+const PassInfo *llvm::PromoteMemoryToRegisterID = X.getPassInfo();
// createPromoteMemoryToRegister - Provide an entry point to create this pass.
//
FunctionPass *llvm::createPromoteMemoryToRegisterPass() {
More information about the llvm-commits
mailing list