[all-commits] [llvm/llvm-project] 98bf83: [libc] New version of the mem* framework

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Fri Oct 14 05:25:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98bf836f3127a346a81da5ae3e27246935298de4
      https://github.com/llvm/llvm-project/commit/98bf836f3127a346a81da5ae3e27246935298de4
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2022-10-14 (Fri, 14 Oct 2022)

  Changed paths:
    M libc/src/stdio/printf_core/string_writer.cpp
    M libc/src/string/bcmp.cpp
    M libc/src/string/memcmp.cpp
    M libc/src/string/memmove.cpp
    M libc/src/string/memory_utils/CMakeLists.txt
    A libc/src/string/memory_utils/README.md
    M libc/src/string/memory_utils/bcmp_implementations.h
    R libc/src/string/memory_utils/elements.h
    R libc/src/string/memory_utils/elements_aarch64.h
    R libc/src/string/memory_utils/elements_x86.h
    M libc/src/string/memory_utils/memcmp_implementations.h
    M libc/src/string/memory_utils/memcpy_implementations.h
    M libc/src/string/memory_utils/memset_implementations.h
    A libc/src/string/memory_utils/op_aarch64.h
    A libc/src/string/memory_utils/op_builtin.h
    A libc/src/string/memory_utils/op_generic.h
    A libc/src/string/memory_utils/op_x86.h
    M libc/src/string/memory_utils/utils.h
    M libc/src/string/memset.cpp
    M libc/test/src/string/bcmp_test.cpp
    M libc/test/src/string/memmove_test.cpp
    M libc/test/src/string/memory_utils/CMakeLists.txt
    R libc/test/src/string/memory_utils/elements_test.cpp
    R libc/test/src/string/memory_utils/memory_access_test.cpp
    M libc/test/src/string/memory_utils/utils_test.cpp
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel

  Log Message:
  -----------
  [libc] New version of the mem* framework

This version is more composable and also simpler at the expense of being more explicit and more verbose. It also provides minimal implementations for ARM platforms.

Codegen can be checked here https://godbolt.org/z/x19zvE59v

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




More information about the All-commits mailing list