mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 18:06:49 +00:00
bye bye Pattern ISEL
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
66e495820a
commit
fabd5ba250
@ -27,9 +27,9 @@
|
||||
using namespace llvm;
|
||||
|
||||
namespace llvm {
|
||||
extern cl::opt<bool> EnableAlphaIDIV;
|
||||
extern cl::opt<bool> EnableAlphaCount;
|
||||
extern cl::opt<bool> EnableAlphaLSMark;
|
||||
cl::opt<bool> EnableAlphaLSMark("enable-alpha-lsmark",
|
||||
cl::desc("Emit symbols to correlate Mem ops to LLVM Values"),
|
||||
cl::Hidden);
|
||||
}
|
||||
|
||||
/// AddLiveIn - This helper function adds the specified physical register to the
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -28,12 +28,6 @@ namespace {
|
||||
RegisterTarget<AlphaTargetMachine> X("alpha", " Alpha (incomplete)");
|
||||
}
|
||||
|
||||
namespace llvm {
|
||||
cl::opt<bool> DisableAlphaDAG("disable-alpha-dag-isel",
|
||||
cl::desc("Disable DAG ISEL for Alpha"),
|
||||
cl::Hidden);
|
||||
}
|
||||
|
||||
unsigned AlphaTargetMachine::getModuleMatchQuality(const Module &M) {
|
||||
// We strongly match "alpha*".
|
||||
std::string TT = M.getTargetTriple();
|
||||
@ -94,10 +88,7 @@ bool AlphaTargetMachine::addPassesToEmitFile(PassManager &PM,
|
||||
// Make sure that no unreachable blocks are instruction selected.
|
||||
PM.add(createUnreachableBlockEliminationPass());
|
||||
|
||||
if (!DisableAlphaDAG)
|
||||
PM.add(createAlphaISelDag(*this));
|
||||
else
|
||||
PM.add(createAlphaPatternInstructionSelector(*this));
|
||||
PM.add(createAlphaISelDag(*this));
|
||||
|
||||
if (PrintMachineCode)
|
||||
PM.add(createMachineFunctionPrinterPass(&std::cerr));
|
||||
@ -135,7 +126,7 @@ void AlphaJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
||||
// Make sure that no unreachable blocks are instruction selected.
|
||||
PM.add(createUnreachableBlockEliminationPass());
|
||||
|
||||
PM.add(createAlphaPatternInstructionSelector(TM));
|
||||
PM.add(createAlphaISelDag(TM));
|
||||
|
||||
if (PrintMachineCode)
|
||||
PM.add(createMachineFunctionPrinterPass(&std::cerr));
|
||||
|
Loading…
Reference in New Issue
Block a user