This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add polynomial approximation for atan and atan2
ClosedPublic

Authored by rsuderman on Dec 13 2021, 3:42 PM.

Details

Summary

Implement a taylor series approximation for atan and add an atan2 lowering
that uses atan's appromation. This includes tests for edge cases and tests
for each quadrant.

Diff Detail

Event Timeline

rsuderman created this revision.Dec 13 2021, 3:42 PM
rsuderman requested review of this revision.Dec 13 2021, 3:42 PM
NatashaKnk accepted this revision.Jan 21 2022, 11:05 AM
This revision is now accepted and ready to land.Jan 21 2022, 11:05 AM
This revision was automatically updated to reflect the committed changes.