[libc][NFC] Split memcpy implementations per platform
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 12 Jul 2023 16:40:46 +0000 (16:40 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Thu, 13 Jul 2023 10:30:38 +0000 (10:30 +0000)
commit8cc440b3e7bfc248a31ffad0a7b32dceb6c24470
tree28525eac14f5ba7f2fc709a696c236e238dfb19b
parent451af635519113bc8fe94852d7489f26485f6689
[libc][NFC] Split memcpy implementations per platform

This is a follow up on D154800 and D154770 to make the code structure more principled and avoid too many nested #ifdef/#endif.

Reviewed By: courbet

Differential Revision: https://reviews.llvm.org/D155099
libc/src/__support/CPP/string.h
libc/src/string/memory_utils/CMakeLists.txt
libc/src/string/memory_utils/memcpy_implementations.h
libc/src/string/memory_utils/riscv/memcpy_implementations.h [new file with mode: 0644]
utils/bazel/llvm-project-overlay/libc/BUILD.bazel