[Mlir-commits] [mlir] [mlir][spirv] Add support for structs decorations (PR #149793)

Igor Wodiany llvmlistbot at llvm.org
Tue Jul 22 05:30:15 PDT 2025


================
@@ -327,10 +327,33 @@ class StructType
     }
   };
 
+  // Type for specifying the decoration(s) on the struct itself
+  struct StructDecorationInfo {
+    bool hasValue;
----------------
IgWod-IMG wrote:

It applies only to `decorationValue`. I kept `hasValue` since I mirrored what member implementation does, but I'm happy to get rid of it. Decorations outside structs use UnitAttr to denotate no value, see `Deserializer.cpp:1210` in the PR, so we could follow that. Any thoughts?

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


More information about the Mlir-commits mailing list