mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Make the create...() functions for some of these passes return a FunctionPass *.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15276 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c91bc30436
commit
96d4bf7aee
@ -23,12 +23,12 @@
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class Pass;
|
||||
class FunctionPass;
|
||||
|
||||
/// createLoadValueNumberingPass - Create and return a new pass that implements
|
||||
/// the ValueNumbering interface.
|
||||
///
|
||||
Pass *createLoadValueNumberingPass();
|
||||
FunctionPass *createLoadValueNumberingPass();
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
|
@ -61,7 +61,7 @@ Pass *createDeadInstEliminationPass();
|
||||
// their other instructions become dead, to eliminate chains of dead
|
||||
// computations.
|
||||
//
|
||||
Pass *createDeadCodeEliminationPass();
|
||||
FunctionPass *createDeadCodeEliminationPass();
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
@ -132,7 +132,7 @@ Pass *createIndVarSimplifyPass();
|
||||
// into:
|
||||
// %Z = add int 2, %X
|
||||
//
|
||||
Pass *createInstructionCombiningPass();
|
||||
FunctionPass *createInstructionCombiningPass();
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -87,7 +87,7 @@ namespace {
|
||||
RegisterAnalysisGroup<ValueNumbering, LoadVN> Y;
|
||||
}
|
||||
|
||||
Pass *llvm::createLoadValueNumberingPass() { return new LoadVN(); }
|
||||
FunctionPass *llvm::createLoadValueNumberingPass() { return new LoadVN(); }
|
||||
|
||||
|
||||
/// getAnalysisUsage - Does not modify anything. It uses Value Numbering and
|
||||
|
@ -123,7 +123,7 @@ bool DCE::runOnFunction(Function &F) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Pass *llvm::createDeadCodeEliminationPass() {
|
||||
FunctionPass *llvm::createDeadCodeEliminationPass() {
|
||||
return new DCE();
|
||||
}
|
||||
|
||||
|
@ -3210,7 +3210,7 @@ bool InstCombiner::runOnFunction(Function &F) {
|
||||
return Changed;
|
||||
}
|
||||
|
||||
Pass *llvm::createInstructionCombiningPass() {
|
||||
FunctionPass *llvm::createInstructionCombiningPass() {
|
||||
return new InstCombiner();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user