[Mlir-commits] [mlir] [mlir][python] Make the Context/Operation capsule creation methods work as documented. (PR #76010)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Thu Dec 21 02:11:17 PST 2023


ftynse wrote:

Reverting for now. 

I think it's either a matter of (a) updating the caster in PybindAdaptors.h so that it can interpret `MlirOperation` as reference when the corresponding operation itself (and maybe one of its ancestors) is already owned by python or (b) somehow providing a mechanism for downstream binding implementers to indicate whether they intend to transfer ownership. But I'm rusty on this whole ownership business. 

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


More information about the Mlir-commits mailing list