diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-10-28 21:55:15 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-10-28 21:55:15 +0000 |
commit | 7b6475568d8449dd84ddc839181cfc0ac74a3e13 (patch) | |
tree | 5a159d350f597786e65d0059e94937d99b277e13 /llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h | |
parent | 4b6a6cc8e994fb0e4b0790816ecdd89a44080863 (diff) | |
download | bcm5719-llvm-7b6475568d8449dd84ddc839181cfc0ac74a3e13.tar.gz bcm5719-llvm-7b6475568d8449dd84ddc839181cfc0ac74a3e13.zip |
AMDGPU: Add definitions for scalar store instructions
Also add glc bit to the scalar loads since they exist on VI
and change the caching behavior.
This currently has an assembler bug where the glc bit is incorrectly
accepted on SI/CI which do not have it.
llvm-svn: 285463
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h index c6844d36479..416772199da 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h @@ -105,6 +105,7 @@ protected: bool Has16BitInsts; bool HasMovrel; bool HasVGPRIndexMode; + bool HasScalarStores; bool FlatAddressSpace; bool R600ALUInst; bool CaymanISA; @@ -527,6 +528,10 @@ public: return getGeneration() >= VOLCANIC_ISLANDS; } + bool hasScalarStores() const { + return HasScalarStores; + } + bool enableSIScheduler() const { return EnableSIScheduler; } |