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

Stella Laurenzo llvmlistbot at llvm.org
Mon May 27 10:23:58 PDT 2024


stellaraccident wrote:

We could store the hasWeakRef bit in the operation and just have it always call a context level facility to invalidate on destruct if the bit is set. There is space to stash a bit in the operation, just not a pointer. 

Advantage to that would be that it wouldn't require atomics or other things that interact badly with threading.

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


More information about the Mlir-commits mailing list