[all-commits] [llvm/llvm-project] ffcbaa: [ADT] Refactor DenseMapInfo for integer types (NFC...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Wed Aug 27 17:07:12 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ffcbaa25d060769cd738d32df5e4af8bd1f89440
      https://github.com/llvm/llvm-project/commit/ffcbaa25d060769cd738d32df5e4af8bd1f89440
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-08-27 (Wed, 27 Aug 2025)

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

  Log Message:
  -----------
  [ADT] Refactor DenseMapInfo for integer types (NFC) (#155549)

This patch consolidates DenseMapInfo<T> for integer types T with a
common templated implementation.  DenseMapInfo<char> is excluded
because it uses ~0 for the empty key despite char being a signed type.
Also, we preserve the tombstone key value for long, which is:

  std::numeric_limits<long>::max() - 1



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