diff options
author | Mike Urbach <mikeurbach@gmail.com> | 2022-12-07 13:03:24 -0700 |
---|---|---|
committer | Mike Urbach <mikeurbach@gmail.com> | 2022-12-13 12:03:00 -0700 |
commit | fa45b2fb2aefb5b942f022bc5a10ec97676a7868 (patch) | |
tree | b9c19285f1a1cfce38b054d75f385bd9cd5170de /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | caee219320b8b128947fa74d7e1aae81e44ddbee (diff) | |
download | llvm-fa45b2fb2aefb5b942f022bc5a10ec97676a7868.zip llvm-fa45b2fb2aefb5b942f022bc5a10ec97676a7868.tar.gz llvm-fa45b2fb2aefb5b942f022bc5a10ec97676a7868.tar.bz2 |
[mlir][Python] Add `__hash__` implementation for Block.
This allows us to hash Blocks and use them in sets or parts of larger
hashable objects. The implementation is the same as other core IR
constructs: the C API object's pointer is hashed.
Differential Revision: https://reviews.llvm.org/D139599
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions