[Mlir-commits] [mlir] [MLIR] Improve Remark documentation to include mlir-opt usage (PR #159284)
    Guray Ozen 
    llvmlistbot at llvm.org
       
    Wed Sep 17 04:05:46 PDT 2025
    
    
  
================
@@ -145,6 +154,19 @@ LogicalResult MyPass::runOnOperation() {
 }
 ```
 
+#### Example: Postpone remarks emitting
+
+`RemarkOpts` has `postpone` option. When it is set, the remark emission will be
+postponed until the end of the compilation.
----------------
grypp wrote:
Postponing will be more useful with my new PR.
The new PR allows dropping or replacing earlier remarks when using postponing.
Here’s an example:
```
pass-early : remark(failed to unroll the loop)
pass-later : drop early remark, add remark(loop is unrolled)
```
https://github.com/llvm/llvm-project/pull/159284
    
    
More information about the Mlir-commits
mailing list