[clang] [Clang] Add `__CLANG_GPU_DISABLE_MATH_WRAPPERS` macro for offloading math (PR #98234)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 13 09:58:02 PDT 2024
================
@@ -12,6 +12,10 @@
#error "This file is for CUDA compilation only."
#endif
+// The __CLANG_GPU_DISABLE_MATH_WRAPPERS macro provides a way to let standard
+// libcalls reach the link step instead of being eagerly replaced.
+#ifndef __CLANG_GPU_DISABLE_MATH_WRAPPERS
----------------
arsenm wrote:
Is this basically equivalent to not including the file at all?
Can you add a Headers test for this
https://github.com/llvm/llvm-project/pull/98234
More information about the cfe-commits
mailing list