[llvm-commits] CVS: llvm/lib/Transforms/Scalar/GCSE.cpp LICM.cpp Reassociate.cpp
Misha Brukman
brukman at cs.uiuc.edu
Fri Nov 7 11:21:01 PST 2003
Changes in directory llvm/lib/Transforms/Scalar:
GCSE.cpp updated: 1.30 -> 1.31
LICM.cpp updated: 1.39 -> 1.40
Reassociate.cpp updated: 1.27 -> 1.28
---
Log message:
Declare FunctionPasses as such so that they can be used in FunctionPassManager.
---
Diffs of the changes: (+3 -3)
Index: llvm/lib/Transforms/Scalar/GCSE.cpp
diff -u llvm/lib/Transforms/Scalar/GCSE.cpp:1.30 llvm/lib/Transforms/Scalar/GCSE.cpp:1.31
--- llvm/lib/Transforms/Scalar/GCSE.cpp:1.30 Mon Oct 20 14:43:19 2003
+++ llvm/lib/Transforms/Scalar/GCSE.cpp Fri Nov 7 11:20:18 2003
@@ -54,7 +54,7 @@
}
// createGCSEPass - The public interface to this file...
-Pass *createGCSEPass() { return new GCSE(); }
+FunctionPass *createGCSEPass() { return new GCSE(); }
// GCSE::runOnFunction - This is the main transformation entry point for a
Index: llvm/lib/Transforms/Scalar/LICM.cpp
diff -u llvm/lib/Transforms/Scalar/LICM.cpp:1.39 llvm/lib/Transforms/Scalar/LICM.cpp:1.40
--- llvm/lib/Transforms/Scalar/LICM.cpp:1.39 Mon Oct 20 14:43:19 2003
+++ llvm/lib/Transforms/Scalar/LICM.cpp Fri Nov 7 11:20:18 2003
@@ -174,7 +174,7 @@
RegisterOpt<LICM> X("licm", "Loop Invariant Code Motion");
}
-Pass *createLICMPass() { return new LICM(); }
+FunctionPass *createLICMPass() { return new LICM(); }
/// runOnFunction - For LICM, this simply traverses the loop structure of the
/// function, hoisting expressions out of loops if possible.
Index: llvm/lib/Transforms/Scalar/Reassociate.cpp
diff -u llvm/lib/Transforms/Scalar/Reassociate.cpp:1.27 llvm/lib/Transforms/Scalar/Reassociate.cpp:1.28
--- llvm/lib/Transforms/Scalar/Reassociate.cpp:1.27 Mon Oct 20 14:43:19 2003
+++ llvm/lib/Transforms/Scalar/Reassociate.cpp Fri Nov 7 11:20:18 2003
@@ -58,7 +58,7 @@
RegisterOpt<Reassociate> X("reassociate", "Reassociate expressions");
}
-Pass *createReassociatePass() { return new Reassociate(); }
+FunctionPass *createReassociatePass() { return new Reassociate(); }
void Reassociate::BuildRankMap(Function &F) {
unsigned i = 2;
More information about the llvm-commits
mailing list