[clang] [llvm] [clang][amdgpu] Add builtins for raw/struct buffer lds load (PR #137678)

Jon Chesterfield via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 29 08:57:56 PDT 2025


================
@@ -163,7 +163,10 @@ BUILTIN(__builtin_amdgcn_raw_buffer_load_b64, "V2UiQbiiIi", "n")
 BUILTIN(__builtin_amdgcn_raw_buffer_load_b96, "V3UiQbiiIi", "n")
 BUILTIN(__builtin_amdgcn_raw_buffer_load_b128, "V4UiQbiiIi", "n")
 
+TARGET_BUILTIN(__builtin_amdgcn_raw_buffer_load_lds, "vV4Uiv*3IUiiiIiIi", "t", "vmem-to-lds-load-insts")
----------------
JonChesterfield wrote:

Found some context, are we partway through replacing v4i32 with an addrspace8 ptr, and want to expand uses of v4i32 into the "new" one for a while to avoid breaking as much library code?

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


More information about the cfe-commits mailing list