[PATCH] D109024: [Support] Automatically support `hash_value` when `HashBuilder` support is available.

Alexandre Rames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 3 11:44:23 PDT 2021


arames added inline comments.


================
Comment at: llvm/include/llvm/Support/HashBuilder.h:30-37
+namespace hashbuilder_detail {
+/// Trait to indicate whether a type's bits can be hashed directly (after
+/// endianness correction).
+template <typename U>
+struct IsHashableData
+    : std::integral_constant<bool, is_integral_or_enum<U>::value> {};
+
----------------
dexonsmith wrote:
> This change should be a separate NFC commit, since it touches a lot of lines (and isn't directly related)
https://reviews.llvm.org/D109205


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109024/new/

https://reviews.llvm.org/D109024



More information about the llvm-commits mailing list