Fixes #60662 https://github.com/llvm/llvm-project/issues/60662
Allow ComplexType when create DenseElementsAttr.
Also allow build ConstantOp for integer complex.
Paths
| Differential D143848
[mlir] support complex type in DenseElementsAttr::get. ClosedPublic Authored by python3kgae on Feb 12 2023, 9:20 AM.
Details Summary Fixes #60662 https://github.com/llvm/llvm-project/issues/60662 Allow ComplexType when create DenseElementsAttr.
Diff Detail
Event Timelinepython3kgae marked an inline comment as done. Comment ActionsUpdate to fix issues mentioned in comments. This revision is now accepted and ready to land.Feb 12 2023, 10:48 PM This revision was landed with ongoing or failed builds.Feb 13 2023, 6:41 AM Closed by commit rGcc4fb5837647: [mlir] support complex type in DenseElementsAttr::get. (authored by python3kgae). · Explain Why This revision was automatically updated to reflect the committed changes. python3kgae marked an inline comment as done.
Revision Contents
Diff 496768 mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
mlir/lib/IR/BuiltinAttributes.cpp
mlir/test/Dialect/Tensor/canonicalize.mlir
|
Nit: testing for fre is redundant here.