[llvm] [DenseMap] Share rehash and grow for relocatable bucket types. NFC (PR #225018)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 00:17:52 PDT 2026
================
@@ -56,6 +56,9 @@ template <typename T, typename Enable = void> struct DenseMapInfo {
// Provide DenseMapInfo for all pointers. Avoid requiring T to be complete so
// clients can instantiate DenseMap<T*, ...> with forward declared key types.
template <typename T> struct DenseMapInfo<T *> {
+ // Select InlinePtrHash in DenseMap.cpp.
+ using PointerValueHash = DenseMapInfo;
----------------
aengelke wrote:
Just use a static constexpr bool?
https://github.com/llvm/llvm-project/pull/225018
More information about the llvm-commits
mailing list