mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Goodbye PPC pattern isel. You have served us well, but it is now time for
you to ride off into the sunset. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25236 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -27,7 +27,6 @@ enum PPCTargetEnum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
FunctionPass *createPPCBranchSelectionPass();
|
FunctionPass *createPPCBranchSelectionPass();
|
||||||
FunctionPass *createPPCISelPattern(TargetMachine &TM);
|
|
||||||
FunctionPass *createPPCISelDag(TargetMachine &TM);
|
FunctionPass *createPPCISelDag(TargetMachine &TM);
|
||||||
FunctionPass *createDarwinAsmPrinter(std::ostream &OS, TargetMachine &TM);
|
FunctionPass *createDarwinAsmPrinter(std::ostream &OS, TargetMachine &TM);
|
||||||
FunctionPass *createAIXAsmPrinter(std::ostream &OS, TargetMachine &TM);
|
FunctionPass *createAIXAsmPrinter(std::ostream &OS, TargetMachine &TM);
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -29,9 +29,6 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
static cl::opt<bool> DisablePPCDAGDAG("disable-ppc-dag-isel", cl::Hidden,
|
|
||||||
cl::desc("Disable DAG-to-DAG isel for PPC"));
|
|
||||||
|
|
||||||
// Register the targets
|
// Register the targets
|
||||||
RegisterTarget<PPCTargetMachine>
|
RegisterTarget<PPCTargetMachine>
|
||||||
X("ppc32", " PowerPC");
|
X("ppc32", " PowerPC");
|
||||||
@@ -100,10 +97,7 @@ bool PPCTargetMachine::addPassesToEmitFile(PassManager &PM,
|
|||||||
PM.add(createUnreachableBlockEliminationPass());
|
PM.add(createUnreachableBlockEliminationPass());
|
||||||
|
|
||||||
// Install an instruction selector.
|
// Install an instruction selector.
|
||||||
if (!DisablePPCDAGDAG)
|
PM.add(createPPCISelDag(*this));
|
||||||
PM.add(createPPCISelDag(*this));
|
|
||||||
else
|
|
||||||
PM.add(createPPCISelPattern(*this));
|
|
||||||
|
|
||||||
if (PrintMachineCode)
|
if (PrintMachineCode)
|
||||||
PM.add(createMachineFunctionPrinterPass(&std::cerr));
|
PM.add(createMachineFunctionPrinterPass(&std::cerr));
|
||||||
@@ -157,10 +151,7 @@ void PPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
|||||||
PM.add(createUnreachableBlockEliminationPass());
|
PM.add(createUnreachableBlockEliminationPass());
|
||||||
|
|
||||||
// Install an instruction selector.
|
// Install an instruction selector.
|
||||||
if (!DisablePPCDAGDAG)
|
PM.add(createPPCISelDag(TM));
|
||||||
PM.add(createPPCISelDag(TM));
|
|
||||||
else
|
|
||||||
PM.add(createPPCISelPattern(TM));
|
|
||||||
|
|
||||||
PM.add(createRegisterAllocator());
|
PM.add(createRegisterAllocator());
|
||||||
PM.add(createPrologEpilogCodeInserter());
|
PM.add(createPrologEpilogCodeInserter());
|
||||||
|
Reference in New Issue
Block a user