This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] Remove implementations of nexttoward.
ClosedPublic

Authored by jlebar on Nov 16 2017, 3:30 PM.

Details

Summary

__builtin_nexttoward lowers to a libcall, e.g. nexttowardf(), that CUDA
does not have.

Rather than try to implement it, we simply remove these functions --
nvcc doesn't support them either, and nextafter, which does work, does
essentially the same thing on GPUs, because GPUs don't have long double.

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar created this revision.Nov 16 2017, 3:30 PM
tra accepted this revision.Nov 16 2017, 3:57 PM
This revision is now accepted and ready to land.Nov 16 2017, 3:57 PM
This revision was automatically updated to reflect the committed changes.