[PATCH] D40152: [CUDA] Remove implementations of nexttoward.

2017-11-16 Thread Justin Lebar via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318494: [CUDA] Remove implementations of nexttoward. (authored by jlebar). Changed prior to commit: https://reviews.llvm.org/D40152?vs=123257&id=123275#toc Repository: rL LLVM https://reviews.llvm.o

[PATCH] D40152: [CUDA] Remove implementations of nexttoward.

2017-11-16 Thread Justin Lebar via Phabricator via cfe-commits
jlebar created this revision. __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, beca