libm doesn't have overloads for the small types, so promote them to a
bigger type and use the f32 function.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D125093
[mlir][math] Promote (b)f16 to f32 when lowering to libm calls ClosedPublic Authored by bkramer on May 6 2022, 6:45 AM.
Details Summary libm doesn't have overloads for the small types, so promote them to a
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 9 2022, 1:19 AM Closed by commit rGa48adc565864: [mlir][math] Promote (b)f16 to f32 when lowering to libm calls (authored by bkramer). · Explain WhyMay 9 2022, 3:03 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 427619 mlir/lib/Conversion/MathToLibm/MathToLibm.cpp
mlir/test/Conversion/MathToLibm/convert-to-libm.mlir
|