[Mlir-commits] [mlir] [mlir-c] Add RewriterBase insertion point save/restore (PR #206531)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jul 30 20:47:09 PDT 2026


================
@@ -133,6 +133,25 @@ mlirRewriterBaseGetBlock(MlirRewriterBase rewriter);
 MLIR_CAPI_EXPORTED MlirOperation
 mlirRewriterBaseGetOperationAfterInsertion(MlirRewriterBase rewriter);
 
+/// A saved insertion point: a (block, operationAfter) pair. `operationAfter` is
+/// the operation that subsequent insertions go before. If `operationAfter` is
+/// null, the insertion point is at the end of `block`. If `block` is null, the
+/// insertion point is not set (cleared).
+typedef struct MlirRewriterBaseInsertPoint {
----------------
PragmaTwice wrote:

I thought that it should be `InsertionPoint` but it's also `InsertPoint` in C++. 🤷 

https://github.com/llvm/llvm-project/pull/206531


More information about the Mlir-commits mailing list