mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-29 16:12:44 +00:00
Make the create...() functions for some of these passes return a FunctionPass *.
llvm-svn: 15276
This commit is contained in:
parent
c22bbdd36d
commit
45adb41f46
@ -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…
x
Reference in New Issue
Block a user