[all-commits] [llvm/llvm-project] 17d056: [libc++] Instantiate hash function externally (#12...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Thu Mar 27 05:20:21 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 17d05695388128353662fbb80bbb7a13d172b41d
      https://github.com/llvm/llvm-project/commit/17d05695388128353662fbb80bbb7a13d172b41d
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2025-03-27 (Thu, 27 Mar 2025)

  Changed paths:
    M libcxx/include/__configuration/availability.h
    M libcxx/include/__functional/hash.h
    M libcxx/include/__string/char_traits.h
    M libcxx/lib/abi/CHANGELOG.TXT
    M libcxx/lib/abi/arm64-apple-darwin.libcxxabi.v1.stable.exceptions.nonew.abilist
    M libcxx/lib/abi/i686-linux-android21.libcxxabi.v1.stable.exceptions.nonew.abilist
    M libcxx/lib/abi/powerpc-ibm-aix.libcxxabi.v1.stable.exceptions.nonew.abilist
    M libcxx/lib/abi/powerpc64-ibm-aix.libcxxabi.v1.stable.exceptions.nonew.abilist
    M libcxx/lib/abi/x86_64-apple-darwin.libcxxabi.v1.stable.exceptions.nonew.abilist
    M libcxx/lib/abi/x86_64-linux-android21.libcxxabi.v1.stable.exceptions.nonew.abilist
    M libcxx/lib/abi/x86_64-unknown-freebsd.libcxxabi.v1.stable.exceptions.nonew.abilist
    M libcxx/lib/abi/x86_64-unknown-linux-gnu.libcxxabi.v1.stable.exceptions.nonew.abilist
    M libcxx/lib/abi/x86_64-unknown-linux-gnu.libcxxabi.v1.stable.noexceptions.nonew.abilist
    M libcxx/src/functional.cpp

  Log Message:
  -----------
  [libc++] Instantiate hash function externally (#127040)

This has multiple benefits:
- There is a single instance of our hash function, reducing object file
size
- The hash implementation isn't instantiated in every TU anymore,
reducing compile times
- Behind an ABI configuration macro it would be possible to salt the
hash



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list