diff options
author | Ingo Müller <ingomueller@google.com> | 2023-10-25 07:17:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 07:17:56 +0200 |
commit | fa19ef7a10869bf0f8325681be111f7d97b2544e (patch) | |
tree | b2e1f0d8eac90e78bcaaa111357904202e0cc4e4 /llvm/lib/CodeGen/MachineBlockPlacement.cpp | |
parent | 9abf3df111793831dd2fb6dce4cf34c84a5277dc (diff) | |
download | llvm-fa19ef7a10869bf0f8325681be111f7d97b2544e.zip llvm-fa19ef7a10869bf0f8325681be111f7d97b2544e.tar.gz llvm-fa19ef7a10869bf0f8325681be111f7d97b2544e.tar.bz2 |
[mlir][python] Clear PyOperations instead of invalidating them. (#70044)
`PyOperations` are Python-level handles to `Operation *` instances. When
the latter are modified by C++, the former need to be invalidated.
#69746 implements such invalidation mechanism by setting all
`PyReferences` to `invalid`. However, that is not enough: they also need
to be removed from the `liveOperations` map since other parts of the
code (such as `PyOperation::createDetached`) assume that that map only
contains valid refs.
This is required to actually solve the issue in #69730.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
0 files changed, 0 insertions, 0 deletions