mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 03:06:28 +00:00
Add a function to Passes.h to allow clients to create instances
of the ScalarEvolution pass without needing to #include ScalarEvolution.h. llvm-svn: 85716
This commit is contained in:
parent
9cdf5185a3
commit
58714b62b6
@ -147,6 +147,13 @@ namespace llvm {
|
||||
//
|
||||
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();
|
||||
|
@ -5151,6 +5151,8 @@ ScalarEvolution::SCEVCallbackVH::SCEVCallbackVH(Value *V, ScalarEvolution *se)
|
||||
// ScalarEvolution Class Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
FunctionPass *createScalarEvolutionPass() { return new ScalarEvolution(); }
|
||||
|
||||
ScalarEvolution::ScalarEvolution()
|
||||
: FunctionPass(&ID) {
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user