[all-commits] [llvm/llvm-project] 1f6707: [ViewOpGraph] Improve GraphViz output (#125509)

Eric Hein via All-commits all-commits at lists.llvm.org
Fri Feb 7 07:46:09 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f67070a3f6ca8d0bf5fdca90ceb6b607422c899
      https://github.com/llvm/llvm-project/commit/1f67070a3f6ca8d0bf5fdca90ceb6b607422c899
  Author: Eric Hein <ehein6 at gatech.edu>
  Date:   2025-02-07 (Fri, 07 Feb 2025)

  Changed paths:
    M mlir/lib/Transforms/ViewOpGraph.cpp
    M mlir/test/Transforms/print-op-graph-back-edges.mlir
    M mlir/test/Transforms/print-op-graph-cycles.mlir
    M mlir/test/Transforms/print-op-graph.mlir

  Log Message:
  -----------
  [ViewOpGraph] Improve GraphViz output (#125509)

This patch improves the GraphViz output of ViewOpGraph
(--view-op-graph).

- Switch to rectangular record-based nodes, inspired by a similar
visualization in [Glow](https://github.com/pytorch/glow). Rectangles
make more efficient use of space when printing text.
- Add input and output ports for each operand and result, and remove
edge labels.
- Switch to a muted color palette to reduce eye strain.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list