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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D115682
[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
Diff Detail
Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 20 others. · View Herald TranscriptDec 13 2021, 3:42 PM This revision is now accepted and ready to land.Jan 21 2022, 11:05 AM Closed by commit rG2f9f9afa4e12: [mlir] Add polynomial approximation for atan and atan2 (authored by rsuderman). · Explain WhyJan 21 2022, 12:31 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 402072 mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp
mlir/test/Dialect/Math/polynomial-approximation.mlir
mlir/test/mlir-cpu-runner/math-polynomial-approx.mlir
|