[llvm-commits] CVS: llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp PRE.cpp
Jeff Cohen
jeffc at jolt-lang.org
Sat Jan 8 09:21:51 PST 2005
Changes in directory llvm/lib/Transforms/Scalar:
BasicBlockPlacement.cpp updated: 1.3 -> 1.4
PRE.cpp updated: 1.13 -> 1.14
---
Log message:
Add more missing createXxxPass functions.
---
Diffs of the changes: (+4 -0)
Index: llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp
diff -u llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.3 llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.4
--- llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.3 Wed Sep 1 17:55:36 2004
+++ llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp Sat Jan 8 11:21:40 2005
@@ -31,6 +31,7 @@
#include "llvm/Pass.h"
#include "llvm/Support/CFG.h"
#include "llvm/ADT/Statistic.h"
+#include "llvm/Transforms/Scalar.h"
#include <set>
using namespace llvm;
@@ -71,6 +72,8 @@
"Profile Guided Basic Block Placement");
}
+FunctionPass *llvm::createBlockPlacementPass() { return new BlockPlacement(); }
+
bool BlockPlacement::runOnFunction(Function &F) {
PI = &getAnalysis<ProfileInfo>();
Index: llvm/lib/Transforms/Scalar/PRE.cpp
diff -u llvm/lib/Transforms/Scalar/PRE.cpp:1.13 llvm/lib/Transforms/Scalar/PRE.cpp:1.14
--- llvm/lib/Transforms/Scalar/PRE.cpp:1.13 Tue Nov 30 11:09:06 2004
+++ llvm/lib/Transforms/Scalar/PRE.cpp Sat Jan 8 11:21:40 2005
@@ -102,6 +102,7 @@
RegisterOpt<PRE> Z("pre", "Partial Redundancy Elimination");
}
+FunctionPass* llvm::createPREPass() { return new PRE(); }
bool PRE::runOnFunction(Function &F) {
VN = &getAnalysis<ValueNumbering>();
More information about the llvm-commits
mailing list