[all-commits] [llvm/llvm-project] 67fe3b: [libc][mem*] Introduce Sized/Backends for new mem ...

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Wed Jun 22 04:21:27 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67fe3bd33ce7698e35a98f165ec6ba6090aeff85
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2022-06-22 (Wed, 22 Jun 2022)

  Changed paths:
    A libc/src/string/memory_utils/backend_aarch64.h
    A libc/src/string/memory_utils/backend_scalar.h
    A libc/src/string/memory_utils/backend_x86.h
    A libc/src/string/memory_utils/backends.h
    A libc/src/string/memory_utils/sized_op.h
    M libc/test/src/string/memory_utils/CMakeLists.txt
    A libc/test/src/string/memory_utils/backend_test.cpp

  Log Message:
  [libc][mem*] Introduce Sized/Backends for new mem framework

This patch is a subpart of D125768 intented to make the review easier.

The `SizedOp` struct represents operations to be performed on a certain number of bytes.
It is responsible for breaking them down into platform types and forwarded to the `Backend`.

The `Backend` struct represents a lower level abstraction that works only on types (`uint8_t`, `__m128i`, ...).
It is similar to instruction selection.

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

More information about the All-commits mailing list