[llvm] [SPIRV] Translate {uinc/udec}_wrap as opaque intrinsics and preserve AMDGPU metadata through NonSemantic.AuxData (PR #213685)

Dmitry Sidorov via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 08:10:59 PDT 2026


================
@@ -3004,27 +3048,28 @@ void SPIRVEmitIntrinsicsImpl::insertSpirvDecorations(Instruction *I,
                       {I->getType()},
                       {I, MetadataAsValue::get(I->getContext(), MD)});
   }
-  if (I->getModule()->getTargetTriple().getVendor() == Triple::AMD &&
+  if (spirvPreserveAuxData() &&
+      I->getModule()->getTargetTriple().getVendor() == Triple::AMD &&
----------------
MrSidims wrote:

If we change NonSemanticAuxData spec for everybody - no AMD guard here is needed.

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


More information about the llvm-commits mailing list