[llvm] [AMDGPU] Add intrinsic for raw atomic buffer loads (PR #97707)

Jessica Del via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 10:04:05 PDT 2024


================
@@ -1116,6 +1116,19 @@ class AMDGPURawBufferLoad<LLVMType data_ty = llvm_any_ty> : DefaultAttrsIntrinsi
 def int_amdgcn_raw_buffer_load_format : AMDGPURawBufferLoad<llvm_anyfloat_ty>;
 def int_amdgcn_raw_buffer_load : AMDGPURawBufferLoad;
 
+class AMDGPURawAtomicBufferLoad<LLVMType data_ty = llvm_any_ty> : Intrinsic <
+  [data_ty],
+  [llvm_v4i32_ty,     // rsrc(SGPR)
----------------
OutOfCache wrote:

I understand the reasoning, however, in llpc we still use the vector variants. That's why we could still use both.

https://github.com/llvm/llvm-project/pull/97707


More information about the llvm-commits mailing list