Adrian Kuegel
fb978f092c
[mlir][Complex]: Add lowerings for AddOp and SubOp from Complex dialect to
...
Standard.
Differential Revision: https://reviews.llvm.org/D106429
2021-07-23 12:43:45 +02:00
Alex Zinenko
26e59cc19f
[mlir] factor math-to-llvm out of standard-to-llvm
...
After the Math has been split out of the Standard dialect, the
conversion to the LLVM dialect remained as a huge monolithic pass.
This is undesirable for the same complexity management reasons as having
a huge Standard dialect itself, and is even more confusing given the
existence of a separate dialect. Extract the conversion of the Math
dialect operations to LLVM into a separate library and a separate
conversion pass.
Reviewed By: silvas
Differential Revision: https://reviews.llvm.org/D105702
2021-07-12 11:09:42 +02:00
Adrian Kuegel
6e80e3bd1b
Add Log1pOp to complex dialect.
...
Also add a lowering pattern from Complex to Standard/Math dialect.
Differential Revision: https://reviews.llvm.org/D105538
2021-07-07 11:33:54 +02:00
Adrian Kuegel
bf17ee1950
Add MulOp lowering from Complex dialect to Standard/Math dialect.
...
The lowering handles special cases with NaN or infinity like C++.
Differential Revision: https://reviews.llvm.org/D105270
2021-07-05 12:51:51 +02:00
Adrian Kuegel
380fa71fb0
[mlir] Add LogOp lowering from Complex dialect to Standard/Math dialect.
...
Differential Revision: https://reviews.llvm.org/D105342
2021-07-05 09:33:45 +02:00
Adrian Kuegel
f112bd61eb
[mlir] Add SignOp to complex dialect.
...
Also add a conversion pattern from Complex Dialect to Standard/Math Dialect.
Differential Revision: https://reviews.llvm.org/D104292
2021-06-15 15:22:31 +02:00
Adrian Kuegel
662e074d90
[mlir] Add NegOp to complex dialect.
...
Also add a lowering pattern from complex dialect to standard dialect.
Differential Revision: https://reviews.llvm.org/D104284
2021-06-15 12:16:22 +02:00
Adrian Kuegel
73cbc91c93
[mlir] Add ExpOp to Complex dialect.
...
Also add a conversion pattern from Complex to Standard/Math dialect.
Differential Revision: https://reviews.llvm.org/D104108
2021-06-14 08:08:53 +02:00
Adrian Kuegel
942be7cb4d
[mlir] Add DivOp lowering from Complex dialect to Standard/Math dialect.
...
Differential Revision: https://reviews.llvm.org/D103507
2021-06-02 11:16:00 +02:00
Adrian Kuegel
fb8b2b86d3
[mlir] Add conversion from Complex to Standard dialect for NotEqualOp.
...
Differential Revision: https://reviews.llvm.org/D102902
2021-05-21 10:46:50 +02:00
Adrian Kuegel
ac00cb0d2a
[mlir] Add conversion from complex to standard dialect for EqualOp.
...
This adds the straightforward conversion for EqualOp
(two complex numbers are equal if both the real and the imaginary part are equal).
Differential Revision: https://reviews.llvm.org/D102840
2021-05-20 14:25:56 +02:00
Adrian Kuegel
2ea7fb7b1c
[MLIR] Add ComplexToStandard conversion pass.
...
So far, only a conversion for complex::AbsOp is done, but more will be added.
Differential Revision: https://reviews.llvm.org/D101442
2021-04-28 14:17:46 +02:00