[Mlir-commits] [mlir] [MLIR] Implement remark emitting policies in MLIR (PR #161202)
Guray Ozen
llvmlistbot at llvm.org
Tue Sep 30 06:20:18 PDT 2025
================
@@ -593,6 +616,10 @@ performActions(raw_ostream &os,
AsmState asmState(op.get(), OpPrintingFlags(), /*locationMap=*/nullptr,
&fallbackResourceMap);
os << OpWithState(op.get(), asmState) << '\n';
+
+ if (remark::detail::RemarkEngine *engine = ctx.getRemarkEngine())
+ engine->getRemarkEmittingPolicy()->finalize();
+
----------------
grypp wrote:
@joker-eph
I removed `shutdown()` from `RemarkEngine`. Now we need to call `finalize()` manually to ensure that `MLIRContext` is still alive when emitting remarks for the final policy.
https://github.com/llvm/llvm-project/pull/161202
More information about the Mlir-commits
mailing list