[mlir][python] Add `destroy` method to PyOperation.
authorMike Urbach <mikeurbach@gmail.com>
Sat, 24 Apr 2021 02:54:04 +0000 (20:54 -0600)
committerMike Urbach <mikeurbach@gmail.com>
Thu, 29 Apr 2021 01:30:05 +0000 (19:30 -0600)
commit49745f87e61014ac2a9e93bcad1225c55695b9b7
treeacf30b059f4134380c32c7bddb1537ed217a7a12
parent3341324d82f1278f91b8704048aff414abeaacdb
[mlir][python] Add `destroy` method to PyOperation.

This adds a method to directly invoke `mlirOperationDestroy` on the
MlirOperation wrapped by a PyOperation.

Reviewed By: stellaraccident, mehdi_amini

Differential Revision: https://reviews.llvm.org/D101422
mlir/lib/Bindings/Python/IRCore.cpp
mlir/lib/Bindings/Python/IRModule.h
mlir/test/Bindings/Python/ir_operation.py