[Mlir-commits] [mlir] [mlir][py] invalidate nested operations when parent is deleted (PR #93339)

Stella Laurenzo llvmlistbot at llvm.org
Mon May 27 10:18:33 PDT 2024


stellaraccident wrote:

Maybe we should land this patch to stem your issue and aim at fixing this once and for all at the MLIR c++ level. 

The issue with a single callback in the context is that there is only one and contexts can come from elsewhere.

However that could work if you built the weak reference accounting into the context. Could probably finagle it to only start doing the destructor callback if there were live references... But would need to think carefully about the threading.

https://github.com/llvm/llvm-project/pull/93339


More information about the Mlir-commits mailing list