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

Mehdi Amini llvmlistbot at llvm.org
Fri Aug 22 03:03:17 PDT 2025


================
@@ -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;
+}
+
----------------
joker-eph wrote:

This is non-idiomatic IMO: we should instead fix the case where we log a pointer and use a `*` in front of it (this would be aligned with the other similar entities in MLIR, like `Operation *` for example).


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


More information about the Mlir-commits mailing list