aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorJohn Demme <john.demme@microsoft.com>2024-02-08 11:39:06 -0800
committerGitHub <noreply@github.com>2024-02-08 11:39:06 -0800
commitd1fdb416299c0efa5979ed989f7c1f39973dcb73 (patch)
tree076a4c61a3f00f3e46df9088b635160f300db56d /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parente5924d64991abb4da111317ff5e8d9147265354a (diff)
downloadllvm-d1fdb416299c0efa5979ed989f7c1f39973dcb73.zip
llvm-d1fdb416299c0efa5979ed989f7c1f39973dcb73.tar.gz
llvm-d1fdb416299c0efa5979ed989f7c1f39973dcb73.tar.bz2
[MLIR][Python] Add method for getting the live operation objects (#78663)
Currently, a method exists to get the count of the operation objects which are still alive. This helps for sanity checking, but isn't terribly useful for debugging. This new method returns the actual operation objects which are still alive. This allows Python code like the following: ``` gc.collect() live_ops = ir.Context.current._get_live_operation_objects() for op in live_ops: print(f"Warning: {op} is still live. Referrers:") for referrer in gc.get_referrers(op)[0]: print(f" {referrer}") ```
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions