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

Mehdi Amini llvmlistbot at llvm.org
Wed Sep 17 04:38:52 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);
+}
+
+void RemarkEngine::emitPostponedRemarks() {
+  for (auto &remark : postponedRemarks)
+    report(remark, /*forcePrintPostponedRemarks=*/true);
----------------
joker-eph wrote:

```suggestion
    reportImpl(remark);
```

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


More information about the Mlir-commits mailing list