[clang] 0f723eb - [Clang] Add locale variants to libc offload wrappers
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 16 07:58:10 PDT 2024
Author: Joseph Huber
Date: 2024-09-16T09:57:47-05:00
New Revision: 0f723eb67197421caf6504a7e4594751040b1924
URL: https://github.com/llvm/llvm-project/commit/0f723eb67197421caf6504a7e4594751040b1924
DIFF: https://github.com/llvm/llvm-project/commit/0f723eb67197421caf6504a7e4594751040b1924.diff
LOG: [Clang] Add locale variants to libc offload wrappers
Summary:
These need to be present now that the GPU "supports" them (only for the
default POSIX locale).
Added:
Modified:
clang/lib/Headers/llvm_libc_wrappers/ctype.h
Removed:
################################################################################
diff --git a/clang/lib/Headers/llvm_libc_wrappers/ctype.h b/clang/lib/Headers/llvm_libc_wrappers/ctype.h
index 49c2af93471b0e..960cf43302c4c9 100644
--- a/clang/lib/Headers/llvm_libc_wrappers/ctype.h
+++ b/clang/lib/Headers/llvm_libc_wrappers/ctype.h
@@ -51,6 +51,19 @@
#pragma push_macro("toascii")
#pragma push_macro("tolower")
#pragma push_macro("toupper")
+#pragma push_macro("isalnum_l")
+#pragma push_macro("isalpha_l")
+#pragma push_macro("isascii_l")
+#pragma push_macro("isblank_l")
+#pragma push_macro("iscntrl_l")
+#pragma push_macro("isdigit_l")
+#pragma push_macro("isgraph_l")
+#pragma push_macro("islower_l")
+#pragma push_macro("isprint_l")
+#pragma push_macro("ispunct_l")
+#pragma push_macro("isspace_l")
+#pragma push_macro("isupper_l")
+#pragma push_macro("isxdigit_l")
#undef isalnum
#undef isalpha
@@ -68,6 +81,18 @@
#undef toascii
#undef tolower
#undef toupper
+#undef isalnum_l
+#undef isalpha_l
+#undef iscntrl_l
+#undef isdigit_l
+#undef islower_l
+#undef isgraph_l
+#undef isprint_l
+#undef ispunct_l
+#undef isspace_l
+#undef isupper_l
+#undef isblank_l
+#undef isxdigit_l
#pragma omp begin declare target
@@ -93,6 +118,19 @@
#pragma pop_macro("toascii")
#pragma pop_macro("tolower")
#pragma pop_macro("toupper")
+#pragma pop_macro("isalnum_l")
+#pragma pop_macro("isalpha_l")
+#pragma pop_macro("isascii_l")
+#pragma pop_macro("isblank_l")
+#pragma pop_macro("iscntrl_l")
+#pragma pop_macro("isdigit_l")
+#pragma pop_macro("isgraph_l")
+#pragma pop_macro("islower_l")
+#pragma pop_macro("isprint_l")
+#pragma pop_macro("ispunct_l")
+#pragma pop_macro("isspace_l")
+#pragma pop_macro("isupper_l")
+#pragma pop_macro("isxdigit_l")
#endif
#undef __LIBC_ATTRS
More information about the cfe-commits
mailing list