[libc-commits] [libc] Implement vector version of memchr, and dispatch to same (PR #177711)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Tue Feb 3 05:45:28 PST 2026


jhuber6 wrote:

Is the concern with `static` in headers code bloat? In cases where you're using vector functions it's not a good idea to expose these functions outside of the TU, this will be extremely important when we start multi-versioning things like math. With only `sse` a size 8 vector implies double-pumping, with avx2 it will use the AVX2 ABI. These will have the same symbol and conflict if we start distributing ifuncs. I think most all SIMD functions should remain static, see https://godbolt.org/z/d134eMPPx.

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


More information about the libc-commits mailing list