[mlir][python] Update `PyOpResult.owner` to get the parent object.
authorMike Urbach <mikeurbach@gmail.com>
Sat, 24 Apr 2021 02:32:54 +0000 (20:32 -0600)
committerMike Urbach <mikeurbach@gmail.com>
Wed, 28 Apr 2021 20:39:59 +0000 (14:39 -0600)
commit6ff74f96fd9ecdd903f66613c2e1422cb686b58e
treecee85a319a21303808ccf88e3499c4949caca8c8
parent9131a078901b00e68248a27a4f8c4b11bb1db1ae
[mlir][python] Update `PyOpResult.owner` to get the parent object.

Previously, this API would return the PyObjectRef, rather than the
underlying PyOperation.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D101416
mlir/lib/Bindings/Python/IRCore.cpp
mlir/test/Bindings/Python/ir_value.py