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

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Thu Oct 13 07:44:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d55f2d8ab076298cfd745c05c1b4dfd5583f8b9e
      https://github.com/llvm/llvm-project/commit/d55f2d8ab076298cfd745c05c1b4dfd5583f8b9e
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2022-10-13 (Thu, 13 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