[MLIR] [Python] Add `owner` to PyValue and fix its parent reference
authorJohn Demme <john.demme@microsoft.com>
Thu, 15 Jul 2021 03:19:27 +0000 (20:19 -0700)
committerJohn Demme <john.demme@microsoft.com>
Thu, 15 Jul 2021 03:32:43 +0000 (20:32 -0700)
commit5664c5e24ed42f58175428c5aeb53418b4ff76b0
tree8a26fc6d5d11ed2e2b3f1d71b171d48d4e3e3421
parent3e25ea709cf59bdd7f277501ab6737bac5b394f1
[MLIR] [Python] Add `owner` to PyValue and fix its parent reference

Adds `owner` python call to `mlir.ir.Value`.

Assuming that `PyValue.parentOperation` is intended to be the value's owner, this fixes the construction of it from `PyOpOperandList`.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D103853
mlir/lib/Bindings/Python/IRCore.cpp