[Mlir-commits] [mlir] [MLIR] Add option to postpone remark emission (PR #157434)

Mehdi Amini llvmlistbot at llvm.org
Wed Sep 17 04:38:33 PDT 2025


================
@@ -235,7 +242,19 @@ void RemarkEngine::report(const Remark &&remark) {
     emitRemark(remark.getLocation(), remark.getMsg());
 }
 
+void RemarkEngine::report(const Remark &remark) {
+  report(remark, /*forcePrintPostponedRemarks=*/false);
----------------
joker-eph wrote:

```suggestion
  // Postponed remarks are deferred to the end of pipeline.
  if (remark.isPostponed()) {
    postponedRemarks.push_back(remark);
    return;
  }

  reportImpl(remark);
```

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


More information about the Mlir-commits mailing list