[all-commits] [llvm/llvm-project] 8d3555: [ADT] Simplify hashing for tuples

Joe Loser via All-commits all-commits at lists.llvm.org
Thu Oct 27 12:46:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d35558527ba9faa8a2a17201a2b3a3d9053e2f9
      https://github.com/llvm/llvm-project/commit/8d35558527ba9faa8a2a17201a2b3a3d9053e2f9
  Author: Joe Loser <joeloser at fastmail.com>
  Date:   2022-10-27 (Thu, 27 Oct 2022)

  Changed paths:
    M llvm/include/llvm/ADT/Hashing.h

  Log Message:
  -----------
  [ADT] Simplify hashing for tuples

Instead of using `std::index_sequence` with a helper function template to access
each element in the tuple, leverage `std::apply` from C++17 to do the heavy
lifting for us.

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




More information about the All-commits mailing list