[mlir][Python] Add an Operation.result property.
authorStella Laurenzo <stellaraccident@gmail.com>
Sun, 29 Nov 2020 21:52:11 +0000 (13:52 -0800)
committerStella Laurenzo <stellaraccident@gmail.com>
Mon, 30 Nov 2020 02:09:07 +0000 (18:09 -0800)
commitba0fe76b7eb87f91499931e76317ddd1cb493aa1
tree53e82e3c81ba6ea184440268da896aa13d859a48
parentbd2083c2fa7bb8769ca997a0303da54432e08519
[mlir][Python] Add an Operation.result property.

* If ODS redefines this, it is fine, but I have found this accessor to be universally useful in the old npcomp bindings and I'm closing gaps that will let me switch.

Differential Revision: https://reviews.llvm.org/D92287
mlir/lib/Bindings/Python/IRModules.cpp
mlir/lib/Bindings/Python/IRModules.h
mlir/test/Bindings/Python/ir_operation.py