[all-commits] [llvm/llvm-project] a2e820: [NFC][LLVMContext] Clean up DenseMapInfo classes u...

Paul Walker via All-commits all-commits at lists.llvm.org
Fri Dec 1 04:04:14 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2e8207178432f0af30e8c9e3b905a3fd770d500
      https://github.com/llvm/llvm-project/commit/a2e8207178432f0af30e8c9e3b905a3fd770d500
  Author: Paul Walker <paul.walker at arm.com>
  Date:   2023-12-01 (Fri, 01 Dec 2023)

  Changed paths:
    M llvm/lib/IR/LLVMContextImpl.h

  Log Message:
  -----------
  [NFC][LLVMContext] Clean up DenseMapInfo classes used for APInt & APFloat.

DenseMapAPIntKeyInfo looks like a redundant definition because it
mirrors the default used by DenseMap when not specified.

Replacing DenseMapAPFloatKeyInfo with a specialisation of
DenseMapInfo allows DenseMap<T> to be more easily used when T is
an aggregate type containing an APFloat.




More information about the All-commits mailing list