[mlir] add complex type to getZeroAttr
authorAart Bik <ajcbik@google.com>
Thu, 7 Jul 2022 20:16:49 +0000 (13:16 -0700)
committerAart Bik <ajcbik@google.com>
Thu, 7 Jul 2022 23:58:59 +0000 (16:58 -0700)
commitd926b3307e2f90d8b7f770e6f40fbbe5dcc1f887
tree8733bfc8e9625cc6a0fc0bab7d7dc9e023616732
parentafdedd405e493dc80bd5ceb9133b9d3a8bc69f2c
[mlir] add complex type to getZeroAttr

Fixes issue encountered with <sparse> complex constant
https://github.com/llvm/llvm-project/issues/56428

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D129325
mlir/lib/IR/BuiltinAttributes.cpp
mlir/test/Integration/Dialect/LLVMIR/CPU/test-complex-sparse-constant.mlir [new file with mode: 0644]