[PATCH] D85879: [OpenMP] Overload `std::isnan` and friends multiple times for the GPU
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 13 20:25:38 PDT 2020
JonChesterfield added a comment.
I think this is reasonable. It's unfortunate to have isnan return bool or int depending on the system headers, but considering we have that in a language that doesn't mangle the return type into the name the workaround seems OK.
I think `#define isnan()` in a system header will clobber the text inside the variant region. Perhaps we want some #ifdef isnan #undef isnan logic, or at least #ifdef isnan #warning?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85879/new/
https://reviews.llvm.org/D85879
More information about the cfe-commits
mailing list