This is an archive of the discontinued LLVM Phabricator instance.

[mlir][math] Expand math.ceilf to truncate, compares and increments
ClosedPublic

Authored by bviyer on Apr 10 2023, 3:10 PM.

Details

Summary

Ceilf are pushed directly to libm. This is problematic for
situations where libm is not available. This patch will break down
a ceilf function to truncate followed by an increment if the
truncated value is smaller than the input value.

Diff Detail

Event Timeline

bviyer created this revision.Apr 10 2023, 3:10 PM
bviyer requested review of this revision.Apr 10 2023, 3:10 PM
rsuderman accepted this revision.Apr 10 2023, 3:16 PM
This revision is now accepted and ready to land.Apr 10 2023, 3:16 PM