llvm-project/llvm/lib/Target/AMDGPU/Utils
Piotr Sobczak 265e94e657 [AMDGPU] Extend buffer intrinsics with swizzling
Summary:
Extend cachepolicy operand in the new VMEM buffer intrinsics
to supply information whether the buffer data is swizzled.
Also, propagate this information to MIR.

Intrinsics updated:
int_amdgcn_raw_buffer_load
int_amdgcn_raw_buffer_load_format
int_amdgcn_raw_buffer_store
int_amdgcn_raw_buffer_store_format
int_amdgcn_raw_tbuffer_load
int_amdgcn_raw_tbuffer_store
int_amdgcn_struct_buffer_load
int_amdgcn_struct_buffer_load_format
int_amdgcn_struct_buffer_store
int_amdgcn_struct_buffer_store_format
int_amdgcn_struct_tbuffer_load
int_amdgcn_struct_tbuffer_store

Furthermore, disable merging of VMEM buffer instructions
in SI Load/Store optimizer, if the "swizzled" bit on the instruction
is on.

The default value of the bit is 0, meaning that data in buffer
is linear and buffer instructions can be merged.

There is no difference in the generated code with this commit.
However, in the future it will be expected that front-ends
use buffer intrinsics with correct "swizzled" bit set.

Reviewers: arsenm, nhaehnle, tpr

Reviewed By: nhaehnle

Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, arphaman, jfb, Petar.Avramovic, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68200

llvm-svn: 373491
2019-10-02 17:22:36 +00:00
..
AMDGPUAsmUtils.cpp [AMDGPU][MC][GFX9][GFX10] Added support of GET_DOORBELL message 2019-07-15 15:12:16 +00:00
AMDGPUAsmUtils.h [AMDGPU][MC][GFX8+] Added syntactic sugar for 'vgpr index' operand of instructions s_set_gpr_idx_on and s_set_gpr_idx_mode 2019-02-27 13:12:12 +00:00
AMDGPUBaseInfo.cpp [AMDGPU] Extend buffer intrinsics with swizzling 2019-10-02 17:22:36 +00:00
AMDGPUBaseInfo.h [AMDGPU] Extend buffer intrinsics with swizzling 2019-10-02 17:22:36 +00:00
AMDGPUPALMetadata.cpp [AMDGPU] gfx1010 wave32 metadata 2019-06-17 16:48:56 +00:00
AMDGPUPALMetadata.h [AMDGPU] gfx1010 wave32 metadata 2019-06-17 16:48:56 +00:00
AMDKernelCodeTInfo.h [AMDGPU] gfx1010 wave32 metadata 2019-06-17 16:48:56 +00:00
AMDKernelCodeTUtils.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AMDKernelCodeTUtils.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt [AMDGPU] Factored PAL metadata handling out into its own class 2019-03-20 17:42:00 +00:00
LLVMBuild.txt [AMDGPU] Fix dependency on `BinaryFormat` 2019-03-20 21:22:27 +00:00