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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 09:57:26 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)
----------------
arsenm wrote:

Why introduce a new buffer-as-vector intrinsic? Should use the new pointer approach? 

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


More information about the llvm-commits mailing list