This is an archive of the discontinued LLVM Phabricator instance.

[mlir][complex] Lower complex.sin/cos to libm
ClosedPublic

Authored by Lewuathe on May 31 2022, 11:11 PM.

Details

Summary

Lower sin/cos operation in complex dialect to libm as a baseline. This follows up to https://reviews.llvm.org/D125550.

Diff Detail

Event Timeline

Lewuathe created this revision.May 31 2022, 11:11 PM
Lewuathe requested review of this revision.May 31 2022, 11:11 PM
Lewuathe edited the summary of this revision. (Show Details)
pifon2a accepted this revision.Jun 1 2022, 12:23 AM
pifon2a added inline comments.
mlir/test/Conversion/ComplexToLibm/convert-to-libm.mlir
64

nit: you probably do not need -DAG here and below.

66

nit: try to make tests fit 80 chars, for example, by removing obvious things, like : (complex<f64>) -> complex<f64>

This revision is now accepted and ready to land.Jun 1 2022, 12:23 AM
Lewuathe updated this revision to Diff 433669.EditedJun 2 2022, 12:22 AM

Update the patch according to the review.

pifon2a accepted this revision.Jun 2 2022, 1:37 AM
This revision was automatically updated to reflect the committed changes.