[PATCH] D85879: [OpenMP] Overload `std::isnan` and friends multiple times for the GPU
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 13 09:31:45 PDT 2020
tra added inline comments.
================
Comment at: clang/lib/Headers/__clang_cuda_cmath.h:85
+// (note that we do not create implicit base functions here). To avoid
+// this clash we add a new trait to some of them that is always true
+// (this is LLVM after all ;)). It will only influence the mangled name
----------------
If you just want to disable some existing declarations that get in the way, one way to do it would be to redeclare them with an `__arrtibute__((enable_if(false)))`
Having overloads with different return types will be observable.
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