diff options
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp b/llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp index b3941be3ce7..4e1200ad4f1 100644 --- a/llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp +++ b/llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp @@ -257,12 +257,12 @@ protected: IsaInfo::IsaVersion IV; - SICacheControl(const SISubtarget &ST); + SICacheControl(const GCNSubtarget &ST); public: /// Create a cache control for the subtarget \p ST. - static std::unique_ptr<SICacheControl> create(const SISubtarget &ST); + static std::unique_ptr<SICacheControl> create(const GCNSubtarget &ST); /// Update \p MI memory load instruction to bypass any caches up to /// the \p Scope memory scope for address spaces \p @@ -322,7 +322,7 @@ protected: public: - SIGfx6CacheControl(const SISubtarget &ST) : SICacheControl(ST) {}; + SIGfx6CacheControl(const GCNSubtarget &ST) : SICacheControl(ST) {}; bool enableLoadCacheBypass(const MachineBasicBlock::iterator &MI, SIAtomicScope Scope, @@ -346,7 +346,7 @@ public: class SIGfx7CacheControl : public SIGfx6CacheControl { public: - SIGfx7CacheControl(const SISubtarget &ST) : SIGfx6CacheControl(ST) {}; + SIGfx7CacheControl(const GCNSubtarget &ST) : SIGfx6CacheControl(ST) {}; bool insertCacheInvalidate(MachineBasicBlock::iterator &MI, SIAtomicScope Scope, @@ -606,14 +606,14 @@ Optional<SIMemOpInfo> SIMemOpAccess::getAtomicCmpxchgOrRmwInfo( return constructFromMIWithMMO(MI); } -SICacheControl::SICacheControl(const SISubtarget &ST) { +SICacheControl::SICacheControl(const GCNSubtarget &ST) { TII = ST.getInstrInfo(); IV = IsaInfo::getIsaVersion(ST.getFeatureBits()); } /* static */ -std::unique_ptr<SICacheControl> SICacheControl::create(const SISubtarget &ST) { - AMDGPUSubtarget::Generation Generation = ST.getGeneration(); +std::unique_ptr<SICacheControl> SICacheControl::create(const GCNSubtarget &ST) { + GCNSubtarget::Generation Generation = ST.getGeneration(); if (Generation <= AMDGPUSubtarget::SOUTHERN_ISLANDS) return make_unique<SIGfx6CacheControl>(ST); return make_unique<SIGfx7CacheControl>(ST); @@ -1012,7 +1012,7 @@ bool SIMemoryLegalizer::runOnMachineFunction(MachineFunction &MF) { bool Changed = false; SIMemOpAccess MOA(MF); - CC = SICacheControl::create(MF.getSubtarget<SISubtarget>()); + CC = SICacheControl::create(MF.getSubtarget<GCNSubtarget>()); for (auto &MBB : MF) { for (auto MI = MBB.begin(); MI != MBB.end(); ++MI) { |