[llvm] [AMDGPU] Support image atomic no return instructions (PR #150742)

Harrison Hao via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 20 00:21:01 PDT 2025


================
@@ -6720,9 +6720,17 @@ bool AMDGPULegalizerInfo::legalizeImageIntrinsic(
   // We are only processing the operands of d16 image operations on subtargets
   // that use the unpacked register layout, or need to repack the TFE result.
 
+  unsigned IntrOpcode = Intr->BaseOpcode;
+  // For image atomic: use no-return opcode if result is unused.
----------------
harrisonGPU wrote:

So do you think it’s not necessary to do this? I just noticed there’s some code related to packed 16-bit image atomic instructions.

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


More information about the llvm-commits mailing list