[Mlir-commits] [mlir] [MLIR][Python] remove `liveOperations` (PR #155114)
Maksim Levental
llvmlistbot at llvm.org
Mon Sep 1 19:30:40 PDT 2025
================
@@ -121,27 +121,17 @@ def testRoundtripBinary():
def testModuleOperation():
ctx = Context()
module = Module.parse(r"""module @successfulParse {}""", ctx)
- assert ctx._get_live_module_count() == 1
op1 = module.operation
- assert ctx._get_live_operation_count() == 1
- live_ops = ctx._get_live_operation_objects()
- assert len(live_ops) == 1
- assert live_ops[0] is op1
- live_ops = None
# CHECK: module @successfulParse
print(op1)
# Ensure that operations are the same on multiple calls.
op2 = module.operation
- assert ctx._get_live_operation_count() == 1
- assert op1 is op2
+ assert not op1 is op2
----------------
makslevental wrote:
done
https://github.com/llvm/llvm-project/pull/155114
More information about the Mlir-commits
mailing list