This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Lower complex.sqrt and complex.atan2 to Arithmetic dialect.
ClosedPublic

Authored by pifon2a on May 27 2022, 6:59 AM.

Details

Summary

I don't see a point here in the lit tests here since sqrt, mul and other ops
expand as well. I just added "smoke" tests to verify that the conversion works
and does not create any illegal ops.

I will create a patch that adds a simple integration test to
mlir/test/Integration/Dialect/ComplexOps/ that will compare the values.

Diff Detail

Event Timeline

pifon2a created this revision.May 27 2022, 6:59 AM
pifon2a requested review of this revision.May 27 2022, 6:59 AM
bkramer accepted this revision.May 27 2022, 8:48 AM

thanks

This revision is now accepted and ready to land.May 27 2022, 8:48 AM

This broke the sparse_complex_ops.mlir , can you have a look?