[Mlir-commits] [mlir] [MLIR][Python] bind InsertionPointAfter (PR #157156)
Maksim Levental
llvmlistbot at llvm.org
Fri Sep 5 14:07:43 PDT 2025
makslevental wrote:
> Flyby comment: does `InsertionPoint.after(op)` also work as a context manager?
Yea it returns an `PyInsertionPoint` object right and those things are [`contextmanager`s](https://github.com/llvm/llvm-project/blob/b2a7369631d70df8bcd0c4ee304afa30a0657ba7/mlir/lib/Bindings/Python/IRModule.h#L838).
https://github.com/llvm/llvm-project/pull/157156
More information about the Mlir-commits
mailing list