[libc-commits] [libc] [libc][wctype] Add perfect hash map for conversion functions (PR #187670)
Muhammad Bassiouni via libc-commits
libc-commits at lists.llvm.org
Sun Mar 29 05:43:17 PDT 2026
================
@@ -1,13 +1,26 @@
add_custom_target(libc-support-wctype-tests)
+add_libc_test(
+ wctype_perfect_hash_test
+ SUITE
+ libc-support-wctype-tests
+ SRCS
+ wctype_perfect_hash_test.cpp
+ COMPILE_OPTIONS
+ $<$<CXX_COMPILER_ID:Clang>:-Xclang -fconstexpr-steps=10000000>
+ $<$<CXX_COMPILER_ID:GNU>:-fconstexpr-ops-limit=10000000>
----------------
bassiounix wrote:
I experimented with this idea and it's not viable because of the time it takes to compile.
https://github.com/llvm/llvm-project/pull/187670
More information about the libc-commits
mailing list