[clang] [flang] [llvm] [AMDGPU] Add "lds-buffer-load-insts" attribute for all targets < gfx11 (PR #133055)

Pierre van Houtryve via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 26 02:53:09 PDT 2025


================
@@ -10104,7 +10104,8 @@ SDValue SITargetLowering::LowerINTRINSIC_VOID(SDValue Op,
   case Intrinsic::amdgcn_raw_ptr_buffer_load_lds:
   case Intrinsic::amdgcn_struct_buffer_load_lds:
   case Intrinsic::amdgcn_struct_ptr_buffer_load_lds: {
-    assert(!AMDGPU::isGFX12Plus(*Subtarget));
+    if (!Subtarget->hasLDSBufferLoad())
----------------
Pierre-vh wrote:

ditto

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


More information about the llvm-commits mailing list