[all-commits] [llvm/llvm-project] c2ce8f: [libc][NFC] Allow memcpy to be inlined

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Thu Nov 4 06:47:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2ce8f02ed948195d0275c3e34e7a6f4a40901e6
      https://github.com/llvm/llvm-project/commit/c2ce8f02ed948195d0275c3e34e7a6f4a40901e6
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2021-11-04 (Thu, 04 Nov 2021)

  Changed paths:
    M libc/src/string/CMakeLists.txt
    R libc/src/string/aarch64/memcpy.cpp
    M libc/src/string/memcpy.cpp
    A libc/src/string/memory_utils/memcpy_implementations.h
    R libc/src/string/x86_64/memcpy.cpp

  Log Message:
  -----------
  [libc][NFC] Allow memcpy to be inlined

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

Differential Revision: https://reviews.llvm.org/D113097




More information about the All-commits mailing list