[all-commits] [llvm/llvm-project] 47cc16: [MLIR] [Python] Make Attribute and Type hashable

John Demme via All-commits all-commits at lists.llvm.org
Wed Sep 22 20:00:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47cc166bc023b497bdffe0964d80f15eaee8b7da
      https://github.com/llvm/llvm-project/commit/47cc166bc023b497bdffe0964d80f15eaee8b7da
  Author: John Demme <john.demme at microsoft.com>
  Date:   2021-09-22 (Wed, 22 Sep 2021)

  Changed paths:
    M mlir/lib/Bindings/Python/IRCore.cpp
    M mlir/test/python/ir/attributes.py
    M mlir/test/python/ir/builtin_types.py

  Log Message:
  -----------
  [MLIR] [Python] Make Attribute and Type hashable

Enables putting types and attributes in sets and in dicts as keys.

Reviewed By: stellaraccident

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




More information about the All-commits mailing list