[all-commits] [llvm/llvm-project] 4cbfd2: [libc][mem*] Address facility + test enum support

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Wed Jun 1 02:10:20 PDT 2022


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

  Changed paths:
    M libc/src/__support/CPP/TypeTraits.h
    A libc/src/string/memory_utils/address.h
    M libc/test/src/string/memory_utils/CMakeLists.txt
    A libc/test/src/string/memory_utils/address_test.cpp

  Log Message:
  -----------
  [libc][mem*] Address facility + test enum support

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

The `Address` struct represents a pointer but also adds compile time knowledge
like alignment or temporal/non-temporal that helps with downstream instruction
selection.

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




More information about the All-commits mailing list