[Mlir-commits] [mlir] [mlir][spirv] Enable (de)serialization of TensorARM to/from OpConstan… (PR #151485)
Mohammadreza Ameri Mahabadian
llvmlistbot at llvm.org
Fri Aug 1 02:54:11 PDT 2025
================
@@ -1789,8 +1789,17 @@ spirv::Deserializer::processConstantNull(ArrayRef<uint32_t> operands) {
}
auto resultID = operands[1];
+ Attribute attr;
if (resultType.isIntOrFloat() || isa<VectorType>(resultType)) {
- auto attr = opBuilder.getZeroAttr(resultType);
+ attr = opBuilder.getZeroAttr(resultType);
+ } else if (isa<TensorArmType>(resultType)) {
+ auto shapedType = cast<ShapedType>(resultType);
+ auto element = opBuilder.getZeroAttr(shapedType.getElementType());
+ if (element)
----------------
mahabadm wrote:
Done.
https://github.com/llvm/llvm-project/pull/151485
More information about the Mlir-commits
mailing list