[llvm] [AMDGPU] Overload resource descriptor in image intrinsics. (PR #107255)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 08:21:33 PDT 2024


================
@@ -857,8 +857,8 @@ class AMDGPUImageDimIntrinsic<AMDGPUDimProfile P_,
       !foreach(arg, P_.DataArgs, arg.Type),    // vdata(VGPR) -- for store/atomic
       !if(P_.IsAtomic, [], [llvm_i32_ty]),     // dmask(imm)
       P_.AddrTypes,                            // vaddr(VGPR)
-      [llvm_v8i32_ty],                         // rsrc(SGPR)
-      !if(P_.IsSample, [llvm_v4i32_ty,         // samp(SGPR)
+      [llvm_any_ty],                           // rsrc(SGPR)
----------------
arsenm wrote:

should be any integer vector, where "any" is v4 or v8? Should have comment about valid types too 

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


More information about the llvm-commits mailing list