[Mlir-commits] [mlir] Support nice logging for `ProgramPoint*` in dataflow log (PR #154839)

Peng Chen llvmlistbot at llvm.org
Thu Aug 21 13:55:42 PDT 2025


https://github.com/pchen7e2 updated https://github.com/llvm/llvm-project/pull/154839

>From bcd8a7188a369aefba3e916116a749efdecfcede Mon Sep 17 00:00:00 2001
From: Peng Chen <pchen7e2 at gmail.com>
Date: Thu, 21 Aug 2025 13:26:50 -0700
Subject: [PATCH] Support print ProgramPoint*

---
 mlir/include/mlir/Analysis/DataFlowFramework.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/mlir/include/mlir/Analysis/DataFlowFramework.h b/mlir/include/mlir/Analysis/DataFlowFramework.h
index e364570c8b531..c911f263541da 100644
--- a/mlir/include/mlir/Analysis/DataFlowFramework.h
+++ b/mlir/include/mlir/Analysis/DataFlowFramework.h
@@ -152,6 +152,11 @@ inline raw_ostream &operator<<(raw_ostream &os, const ProgramPoint &point) {
   return os;
 }
 
+inline raw_ostream &operator<<(raw_ostream &os, const ProgramPoint *point) {
+  point->print(os);
+  return os;
+}
+
 //===----------------------------------------------------------------------===//
 // GenericLatticeAnchor
 //===----------------------------------------------------------------------===//



More information about the Mlir-commits mailing list