HomePhabricator

[MLIR] [Python] Add capsule methods for pybind11 to PyOperation

Authored by jdd on Apr 6 2021, 2:15 PM.

Description

[MLIR] [Python] Add capsule methods for pybind11 to PyOperation

Add the getCapsule() and createFromCapsule() methods to the PyOperation class.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D99927