This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add SignOp to complex dialect.
ClosedPublic

Authored by akuegel on Jun 15 2021, 5:16 AM.

Details

Summary

Also add a conversion pattern from Complex Dialect to Standard/Math Dialect.

Diff Detail

Event Timeline

akuegel created this revision.Jun 15 2021, 5:16 AM
akuegel requested review of this revision.Jun 15 2021, 5:16 AM
ftynse accepted this revision.Jun 15 2021, 5:25 AM
ftynse added inline comments.
mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
346

Nit: have you considered ImplicitLocOpBuilder?

377

Nit: I'd suggest wrapping this in // clang-format off and //clang-format on and maintaining a list with one pattern per string to avoid churn.

This revision is now accepted and ready to land.Jun 15 2021, 5:25 AM
akuegel updated this revision to Diff 352107.Jun 15 2021, 5:47 AM

Address review comments.

akuegel marked 2 inline comments as done.Jun 15 2021, 5:48 AM
This revision was automatically updated to reflect the committed changes.