forked from OSchip/llvm-project
Make the create...() functions for some of these passes return a FunctionPass *.
llvm-svn: 15276
This commit is contained in:
parent
9eaa879f49
commit
38b79e8fbc
|
@ -23,12 +23,12 @@
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
class Pass;
|
class FunctionPass;
|
||||||
|
|
||||||
/// createLoadValueNumberingPass - Create and return a new pass that implements
|
/// createLoadValueNumberingPass - Create and return a new pass that implements
|
||||||
/// the ValueNumbering interface.
|
/// the ValueNumbering interface.
|
||||||
///
|
///
|
||||||
Pass *createLoadValueNumberingPass();
|
FunctionPass *createLoadValueNumberingPass();
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ Pass *createDeadInstEliminationPass();
|
||||||
// their other instructions become dead, to eliminate chains of dead
|
// their other instructions become dead, to eliminate chains of dead
|
||||||
// computations.
|
// computations.
|
||||||
//
|
//
|
||||||
Pass *createDeadCodeEliminationPass();
|
FunctionPass *createDeadCodeEliminationPass();
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
|
@ -132,7 +132,7 @@ Pass *createIndVarSimplifyPass();
|
||||||
// into:
|
// into:
|
||||||
// %Z = add int 2, %X
|
// %Z = add int 2, %X
|
||||||
//
|
//
|
||||||
Pass *createInstructionCombiningPass();
|
FunctionPass *createInstructionCombiningPass();
|
||||||
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
|
@ -87,7 +87,7 @@ namespace {
|
||||||
RegisterAnalysisGroup<ValueNumbering, LoadVN> Y;
|
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
|
/// getAnalysisUsage - Does not modify anything. It uses Value Numbering and
|
||||||
|
|
|
@ -123,7 +123,7 @@ bool DCE::runOnFunction(Function &F) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Pass *llvm::createDeadCodeEliminationPass() {
|
FunctionPass *llvm::createDeadCodeEliminationPass() {
|
||||||
return new DCE();
|
return new DCE();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3210,7 +3210,7 @@ bool InstCombiner::runOnFunction(Function &F) {
|
||||||
return Changed;
|
return Changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
Pass *llvm::createInstructionCombiningPass() {
|
FunctionPass *llvm::createInstructionCombiningPass() {
|
||||||
return new InstCombiner();
|
return new InstCombiner();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue