aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorMike Urbach <mikeurbach@gmail.com>2022-12-07 13:03:24 -0700
committerMike Urbach <mikeurbach@gmail.com>2022-12-13 12:03:00 -0700
commitfa45b2fb2aefb5b942f022bc5a10ec97676a7868 (patch)
treeb9c19285f1a1cfce38b054d75f385bd9cd5170de /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentcaee219320b8b128947fa74d7e1aae81e44ddbee (diff)
downloadllvm-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/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions