[Mlir-commits] [mlir] [MLIR][Python] Expose the insertion point of pattern rewriter (PR #161001)
Maksim Levental
llvmlistbot at llvm.org
Fri Oct 3 14:09:59 PDT 2025
================
@@ -841,6 +841,8 @@ class PyInsertionPoint {
PyInsertionPoint(const PyBlock &block);
/// Creates an insertion point positioned before a reference operation.
PyInsertionPoint(PyOperationBase &beforeOperationBase);
+ /// Creates an insertion point positioned before a reference operation.
+ PyInsertionPoint(PyOperationRef beforeOperationRef);
----------------
makslevental wrote:
do you really need this? can't you just do `PyOperation::forOperation(ctx, op)->getOperation()` and use the above one?
https://github.com/llvm/llvm-project/pull/161001
More information about the Mlir-commits
mailing list