[all-commits] [llvm/llvm-project] da5d00: [libc] Fix builtin definition for memory functions
michaelrj-google via All-commits
all-commits at lists.llvm.org
Wed Nov 16 13:03:52 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: da5d00ad0cf4d45e38287280c670b08e84e27411
https://github.com/llvm/llvm-project/commit/da5d00ad0cf4d45e38287280c670b08e84e27411
Author: Michael Jones <michaelrj at google.com>
Date: 2022-11-16 (Wed, 16 Nov 2022)
Changed paths:
M libc/cmake/modules/LLVMLibCCheckCpuFeatures.cmake
M libc/src/string/CMakeLists.txt
M libc/src/string/memory_utils/op_x86.h
Log Message:
-----------
[libc] Fix builtin definition for memory functions
The memory functions are highly performance sensitive and use builtins
where possible, but also need to define those functions names when they
don't exist to avoid compilation errors. Previously all those
redefinitions were behind the SSE2 flag for x86, which caused errors on
CPUs that supported SSE2 but not AVX512. This patch splits the various
CPU extensions out to avoid errors on such CPUs.
Reviewed By: gchatelet
Differential Revision: https://reviews.llvm.org/D137868
More information about the All-commits
mailing list