mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
Add a function to Passes.h to allow clients to create instances
of the ScalarEvolution pass without needing to #include ScalarEvolution.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85716 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
34e9d7b6be
commit
2166f62290
@ -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