[all-commits] [llvm/llvm-project] 4c484f: [llvm] Add a SFINAE template parameter to DenseMap...

River Riddle via All-commits all-commits at lists.llvm.org
Tue Nov 16 10:55:01 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c484f11d355e4293f7b245a9330f0a1e89630ac
      https://github.com/llvm/llvm-project/commit/4c484f11d355e4293f7b245a9330f0a1e89630ac
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2021-11-16 (Tue, 16 Nov 2021)

  Changed paths:
    M clang/include/clang/AST/TypeOrdering.h
    M clang/include/clang/Basic/SourceLocation.h
    M clang/include/clang/Sema/Sema.h
    M lldb/include/lldb/Utility/ConstString.h
    M llvm/include/llvm/ADT/APInt.h
    M llvm/include/llvm/ADT/APSInt.h
    M llvm/include/llvm/ADT/ArrayRef.h
    M llvm/include/llvm/ADT/DenseMapInfo.h
    M llvm/include/llvm/ADT/Hashing.h
    M llvm/include/llvm/ADT/ImmutableList.h
    M llvm/include/llvm/ADT/PointerIntPair.h
    M llvm/include/llvm/ADT/StringRef.h
    M llvm/include/llvm/BinaryFormat/WasmTraits.h
    M llvm/include/llvm/CodeGen/SelectionDAGNodes.h
    M llvm/include/llvm/IR/Attributes.h
    M llvm/include/llvm/Support/TypeSize.h
    M llvm/lib/Support/APInt.cpp
    M llvm/unittests/ADT/DenseMapTest.cpp
    M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVOps.h
    M mlir/include/mlir/IR/Attributes.h
    M mlir/include/mlir/IR/BuiltinOps.h
    M mlir/include/mlir/IR/OpDefinition.h
    M mlir/include/mlir/IR/Types.h
    M mlir/include/mlir/Support/LLVM.h

  Log Message:
  -----------
  [llvm] Add a SFINAE template parameter to DenseMapInfo

This allows for using SFINAE partial specialization for DenseMapInfo.
In MLIR, this is particularly useful as it will allow for defining partial
specializations that support all Attribute, Op, and Type classes without
needing to specialize DenseMapInfo for each individual class.

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




More information about the All-commits mailing list