[libc-commits] [PATCH] D113097: [libc][NFC] Allow memcpy to be inlined

Guillaume Chatelet via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Nov 3 05:35:02 PDT 2021


gchatelet created this revision.
gchatelet added reviewers: sivachandra, michaelrj.
Herald added subscribers: libc-commits, ecnelises, tschuett, pengfei, mgorny.
Herald added a project: libc-project.
gchatelet requested review of this revision.

This allows shipping individual functions without also having to provide
`memcpy` at the expense of bigger functions.
Next is to use this `inlined_memcpy` in:

- loader/linux/x86_64/start.cpp
- src/string/memmove.cpp
- src/string/mempcpy.cpp
- src/string/strcpy.cpp
- src/string/strdup.cpp
- src/string/strndup.cpp


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113097

Files:
  libc/src/string/CMakeLists.txt
  libc/src/string/aarch64/memcpy.cpp
  libc/src/string/memcpy.cpp
  libc/src/string/memory_utils/memcpy_implementations.inl
  libc/src/string/x86_64/memcpy.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113097.384406.patch
Type: text/x-patch
Size: 16983 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20211103/d82a1c78/attachment.bin>


More information about the libc-commits mailing list