[llvm-commits] [llvm] r85716 - in /llvm/trunk: include/llvm/Analysis/Passes.h lib/Analysis/ScalarEvolution.cpp
Dan Gohman
gohman at apple.com
Sun Nov 1 07:28:36 PST 2009
Author: djg
Date: Sun Nov 1 09:28:36 2009
New Revision: 85716
URL: http://llvm.org/viewvc/llvm-project?rev=85716&view=rev
Log:
Add a function to Passes.h to allow clients to create instances
of the ScalarEvolution pass without needing to #include ScalarEvolution.h.
Modified:
llvm/trunk/include/llvm/Analysis/Passes.h
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/include/llvm/Analysis/Passes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/Passes.h?rev=85716&r1=85715&r2=85716&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/Passes.h (original)
+++ llvm/trunk/include/llvm/Analysis/Passes.h Sun Nov 1 09:28:36 2009
@@ -147,6 +147,13 @@
//
LoopPass *createLoopDependenceAnalysisPass();
+ //===--------------------------------------------------------------------===//
+ //
+ // createScalarEvolutionPass - This creates an instance of the
+ // ScalarEvolution pass.
+ //
+ FunctionPass *createScalarEvolutionPass();
+
// Minor pass prototypes, allowing us to expose them through bugpoint and
// analyze.
FunctionPass *createInstCountPass();
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=85716&r1=85715&r2=85716&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Sun Nov 1 09:28:36 2009
@@ -5151,6 +5151,8 @@
// ScalarEvolution Class Implementation
//===----------------------------------------------------------------------===//
+FunctionPass *createScalarEvolutionPass() { return new ScalarEvolution(); }
+
ScalarEvolution::ScalarEvolution()
: FunctionPass(&ID) {
}
More information about the llvm-commits
mailing list