[all-commits] [llvm/llvm-project] 199af4: Add hashing support for std::tuple

Michael Forster via All-commits all-commits at lists.llvm.org
Thu Jul 16 10:04:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 199af46e50aa3576657bff58769571b0a5dc92df
      https://github.com/llvm/llvm-project/commit/199af46e50aa3576657bff58769571b0a5dc92df
  Author: Michael Forster <forster at google.com>
  Date:   2020-07-16 (Thu, 16 Jul 2020)

  Changed paths:
    M llvm/include/llvm/ADT/Hashing.h
    M llvm/unittests/ADT/HashingTest.cpp

  Log Message:
  -----------
  Add hashing support for std::tuple

Summary:
All tuple values are passed directly to hash_combine. This is inspired by the implementation used for Swift:

https://github.com/llvm/llvm-project-staging/commit/4a1b4edbe1d1969284c1528e2950ac81b25edc8f
https://github.com/llvm/llvm-project-staging/commit/845f3829b91522920a59c351b9011af01c5c7f87

Reviewers: gribozavr2

Reviewed By: gribozavr2

Subscribers: dexonsmith, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list