[llvm] [SelectionDAG] add cli option to write SelectionDAG graphviz to file (PR #161979)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 29 02:00:48 PST 2025


================
@@ -530,6 +530,9 @@ class SelectionDAG {
 
   /// Pop up a GraphViz/gv window with the DAG rendered using 'dot'.
   LLVM_ABI void viewGraph(const std::string &Title);
+  /// Pop up a GraphViz/gv window with the DAG rendered using 'dot', or write
+  /// the file out instead.
+  LLVM_ABI void viewGraph(const std::string &Title, const bool WriteFile);
----------------
arsenm wrote:

```suggestion
  LLVM_ABI void viewGraph(const std::string &Title, bool WriteFile);
```
const does nothing here

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


More information about the llvm-commits mailing list