[mlir] Add `ComplexType` conversion support for `convertScalarToDtype`
authorRob Suderman <suderman@google.com>
Mon, 17 Jul 2023 20:32:49 +0000 (13:32 -0700)
committerRob Suderman <suderman@google.com>
Mon, 17 Jul 2023 21:00:58 +0000 (14:00 -0700)
commitf513b70d43c39e830888c9aa5a4765b449e8c4ad
tree2a9b5baaa58e717176485db92149ae43b7268358
parent6c30b7886919eb19289f5ed9216e72de9700c9fb
[mlir] Add `ComplexType` conversion support for `convertScalarToDtype`

Linalg operations can include `complex` types in the src/target types.
This should include conversion between `arith` and `complex` types when
constructing `linalg` operations.

Reviewed By: kuhar

Differential Revision: https://reviews.llvm.org/D154740
mlir/lib/Dialect/Arith/Utils/CMakeLists.txt
mlir/lib/Dialect/Arith/Utils/Utils.cpp
mlir/lib/Dialect/Linalg/Transforms/ConvertConv2DToImg2Col.cpp
mlir/test/Dialect/Linalg/convert-conv2d-to-img2col.mlir