[Mlir-commits] [mlir] [mlir][spirv] Add support for RelaxedPrecision in function arguments (PR #138685)

Lei Zhang llvmlistbot at llvm.org
Tue May 6 08:20:26 PDT 2025


================
@@ -448,6 +448,17 @@ LogicalResult spirv::Deserializer::setFunctionArgAttrs(
       foundDecorationAttr = spirv::DecorationAttr::get(context, decoration);
       break;
     }
+
+    if (decAttr.getName() == getSymbolDecoration(stringifyDecoration(
+                                 spirv::Decoration::RelaxedPrecision))) {
+      if (foundDecorationAttr)
----------------
antiagainst wrote:

This follows the old behavior which restricts it to only support one decoration per function parameter; we should relax this. But fine to do it later.

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


More information about the Mlir-commits mailing list