[Mlir-commits] [mlir] [mlir][SPIR-V] Deserialize null array and struct constants (PR #231626)
Arseniy Obolenskiy
llvmlistbot at llvm.org
Wed Oct 14 03:01:40 PDT 2026
================
@@ -2142,6 +2154,50 @@ Value spirv::Deserializer::materializeSpecConstantOperation(
return specConstOperationOp.getResult();
}
+/// Returns the attribute `spirv.Constant` uses for the null value of `type`, or
+/// a null attribute if there is none, in which case `unsupportedType` is set to
+/// `type` or to the nested type that has no null constant representation.
+///
+/// Null arrays and literal structs are array attributes holding the null value
+/// of every element or member, which is what an OpConstantComposite of null
+/// constituents is deserialized into.
----------------
aobolensk wrote:
Can we reduce comments verbosity here and in other places?
https://github.com/llvm/llvm-project/pull/231626
More information about the Mlir-commits
mailing list