diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2017-01-30 17:42:41 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2017-01-30 17:42:41 +0000 |
commit | 7a19d56f732b5aa50026e149511adb9a66b50701 (patch) | |
tree | cd61fcdcf01dabad79912c50781097a576effbba /llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp | |
parent | 062c14af5c49f7f55de1d671c106a7cd8598704c (diff) | |
download | bcm5719-llvm-7a19d56f732b5aa50026e149511adb9a66b50701.tar.gz bcm5719-llvm-7a19d56f732b5aa50026e149511adb9a66b50701.zip |
Revert "AMDGPU/GlobalISel: Add support for simple shaders"
This reverts commit r293503.
Revert while I investigate some of the buildbot failures.
llvm-svn: 293509
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp index 20593c1eedb..e4f693267e2 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp @@ -16,18 +16,18 @@ #include "AMDGPUTargetMachine.h" #include "AMDGPU.h" #include "AMDGPUCallLowering.h" -#include "AMDGPUInstructionSelector.h" -#include "AMDGPULegalizerInfo.h" -#include "AMDGPURegisterBankInfo.h" #include "AMDGPUTargetObjectFile.h" #include "AMDGPUTargetTransformInfo.h" #include "GCNSchedStrategy.h" #include "R600MachineScheduler.h" #include "SIMachineScheduler.h" -#include "llvm/CodeGen/GlobalISel/InstructionSelect.h" +#include "llvm/ADT/SmallString.h" +#include "llvm/ADT/STLExtras.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/ADT/Triple.h" +#include "llvm/CodeGen/GlobalISel/GISelAccessor.h" #include "llvm/CodeGen/GlobalISel/IRTranslator.h" -#include "llvm/CodeGen/GlobalISel/Legalizer.h" -#include "llvm/CodeGen/GlobalISel/RegBankSelect.h" +#include "llvm/CodeGen/MachineScheduler.h" #include "llvm/CodeGen/Passes.h" #include "llvm/CodeGen/TargetPassConfig.h" #include "llvm/Support/TargetRegistry.h" @@ -256,21 +256,9 @@ namespace { struct SIGISelActualAccessor : public GISelAccessor { std::unique_ptr<AMDGPUCallLowering> CallLoweringInfo; - std::unique_ptr<InstructionSelector> InstSelector; - std::unique_ptr<LegalizerInfo> Legalizer; - std::unique_ptr<RegisterBankInfo> RegBankInfo; const AMDGPUCallLowering *getCallLowering() const override { return CallLoweringInfo.get(); } - const InstructionSelector *getInstructionSelector() const override { - return InstSelector.get(); - } - const LegalizerInfo *getLegalizerInfo() const override { - return Legalizer.get(); - } - const RegisterBankInfo *getRegBankInfo() const override { - return RegBankInfo.get(); - } }; } // end anonymous namespace @@ -304,11 +292,6 @@ const SISubtarget *GCNTargetMachine::getSubtargetImpl(const Function &F) const { SIGISelActualAccessor *GISel = new SIGISelActualAccessor(); GISel->CallLoweringInfo.reset( new AMDGPUCallLowering(*I->getTargetLowering())); - GISel->Legalizer.reset(new AMDGPULegalizerInfo()); - - GISel->RegBankInfo.reset(new AMDGPURegisterBankInfo(*I->getRegisterInfo())); - GISel->InstSelector.reset(new AMDGPUInstructionSelector(*I, - *static_cast<AMDGPURegisterBankInfo*>(GISel->RegBankInfo.get()))); #endif I->setGISelAccessor(*GISel); @@ -609,20 +592,16 @@ bool GCNPassConfig::addIRTranslator() { } bool GCNPassConfig::addLegalizeMachineIR() { - addPass(new Legalizer()); return false; } bool GCNPassConfig::addRegBankSelect() { - addPass(new RegBankSelect()); return false; } bool GCNPassConfig::addGlobalInstructionSelect() { - addPass(new InstructionSelect()); return false; } - #endif void GCNPassConfig::addPreRegAlloc() { |