[libc] Simplifies multi implementations and benchmarks
authorGuillaume Chatelet <gchatelet@google.com>
Mon, 10 May 2021 08:23:30 +0000 (08:23 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Mon, 10 May 2021 08:23:30 +0000 (08:23 +0000)
commit541f107871bc9c020925a6e5342542a47c902d12
tree54c88a5cdb79279e5b28a4cc6db1692de37eff43
parentf6985a197ef9065a64d0bb819bfd90d1862da45b
[libc] Simplifies multi implementations and benchmarks

This is a follow up on D101524 which:
 - simplifies cpu features detection and usage,
 - flattens target dependent optimizations so it's obvious which implementations are generated,
 - provides an implementation targeting the host (march/mtune=native) for the mem* functions,
 - makes sure all implementations are unittested (provided the host can run them),
 - makes sure all implementations are benchmarkable (provided the host can run them).

Differential Revision: https://reviews.llvm.org/D101895
libc/cmake/modules/LLVMLibCCheckCpuFeatures.cmake
libc/src/string/CMakeLists.txt
libc/src/string/aarch64/CMakeLists.txt [deleted file]
libc/src/string/x86_64/CMakeLists.txt [deleted file]
libc/test/src/string/CMakeLists.txt