mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-17 15:38:40 +00:00
Apply feedback from Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19432 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e400f76e6
commit
ecc1cef8bf
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
|
class FunctionPass;
|
||||||
class ModulePass;
|
class ModulePass;
|
||||||
class Function;
|
class Function;
|
||||||
class BasicBlock;
|
class BasicBlock;
|
||||||
@ -150,12 +151,12 @@ ModulePass *createIPSCCPPass();
|
|||||||
/// createLoopExtractorPass - This pass extracts all natural loops from the
|
/// createLoopExtractorPass - This pass extracts all natural loops from the
|
||||||
/// program into a function if it can.
|
/// program into a function if it can.
|
||||||
///
|
///
|
||||||
ModulePass *createLoopExtractorPass();
|
FunctionPass *createLoopExtractorPass();
|
||||||
|
|
||||||
/// createSingleLoopExtractorPass - This pass extracts one natural loop from the
|
/// createSingleLoopExtractorPass - This pass extracts one natural loop from the
|
||||||
/// program into a function if it can. This is used by bugpoint.
|
/// program into a function if it can. This is used by bugpoint.
|
||||||
///
|
///
|
||||||
ModulePass *createSingleLoopExtractorPass();
|
FunctionPass *createSingleLoopExtractorPass();
|
||||||
|
|
||||||
// createBlockExtractorPass - This pass extracts all blocks (except those
|
// createBlockExtractorPass - This pass extracts all blocks (except those
|
||||||
// specified in the argument list) from the functions in the module.
|
// specified in the argument list) from the functions in the module.
|
||||||
|
@ -61,7 +61,7 @@ namespace {
|
|||||||
// createLoopExtractorPass - This pass extracts all natural loops from the
|
// createLoopExtractorPass - This pass extracts all natural loops from the
|
||||||
// program into a function if it can.
|
// program into a function if it can.
|
||||||
//
|
//
|
||||||
ModulePass *llvm::createLoopExtractorPass() { return new LoopExtractor(); }
|
FunctionPass *llvm::createLoopExtractorPass() { return new LoopExtractor(); }
|
||||||
|
|
||||||
bool LoopExtractor::runOnFunction(Function &F) {
|
bool LoopExtractor::runOnFunction(Function &F) {
|
||||||
LoopInfo &LI = getAnalysis<LoopInfo>();
|
LoopInfo &LI = getAnalysis<LoopInfo>();
|
||||||
@ -131,7 +131,7 @@ bool LoopExtractor::runOnFunction(Function &F) {
|
|||||||
// createSingleLoopExtractorPass - This pass extracts one natural loop from the
|
// createSingleLoopExtractorPass - This pass extracts one natural loop from the
|
||||||
// program into a function if it can. This is used by bugpoint.
|
// program into a function if it can. This is used by bugpoint.
|
||||||
//
|
//
|
||||||
ModulePass *llvm::createSingleLoopExtractorPass() {
|
FunctionPass *llvm::createSingleLoopExtractorPass() {
|
||||||
return new SingleLoopExtractor();
|
return new SingleLoopExtractor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user