[Mlir-commits] [mlir] [mlir][python] Add `walk` method to PyOperationBase (PR #87962)
Hideto Ueno
llvmlistbot at llvm.org
Thu Apr 11 05:53:57 PDT 2024
================
@@ -1249,6 +1249,19 @@ void PyOperationBase::writeBytecode(const py::object &fileObject,
.str());
}
+void PyOperationBase::walk(py::object callback, bool usePreOrder) {
----------------
uenoku wrote:
Thank you for suggestion! I changed callback type to `std::function<MlirWalkResult (MlirOperation)>` as well as adding `MlirWalkResult` CAPI and python enums for `MlirWalkResult/MlirWalkOrder`.
https://github.com/llvm/llvm-project/pull/87962
More information about the Mlir-commits
mailing list