[libc-commits] [libc] [libc][c23] add memset_explicit (PR #83577)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Mon Mar 4 09:18:58 PST 2024


================
@@ -6,9 +6,11 @@
 set(ALL_CPU_FEATURES "")
 
 if(${LIBC_TARGET_ARCHITECTURE_IS_X86})
-  set(ALL_CPU_FEATURES SSE2 SSE4_2 AVX AVX2 AVX512F AVX512BW FMA)
+  set(ALL_CPU_FEATURES SSE2 SSE4_2 AVX AVX2 AVX512F AVX512BW FMA CLFLUSHOPT)
+  set(CPU_FEATURES_DETECT_REQUIRES_RUN "CLFLUSHOPT")
----------------
nickdesaulniers wrote:

This is checking that the CPU at time of building libc supports `clflushopt`.  How do we know the CPU libc.a will run on supports `clflushopt`?

https://github.com/llvm/llvm-project/pull/83577


More information about the libc-commits mailing list