[mlir] Add folder for complex.ReOp and complex.ImOp.
authorAdrian Kuegel <akuegel@google.com>
Mon, 17 May 2021 11:21:24 +0000 (13:21 +0200)
committerAdrian Kuegel <akuegel@google.com>
Mon, 17 May 2021 11:35:51 +0000 (13:35 +0200)
commit6b49834d652ba70fc24eaea1c37330639d697de5
tree388f325f438a30388ee8f0683424e4fe15650240
parentccd485e55424b78c07c2f9520faf00b805f78c9b
[mlir] Add folder for complex.ReOp and complex.ImOp.

Now that complex constants are supported, we can also fold.

Differential Revision: https://reviews.llvm.org/D102609
mlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
mlir/test/Dialect/Complex/canonicalize.mlir [new file with mode: 0644]