[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Jan 10 15:52:16 PST 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGPrinter.cpp updated: 1.2 -> 1.3
---
Log message:

Add a marker for the graph root.


---
Diffs of the changes:  (+6 -0)

Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.2 llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.3
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.2	Mon Jan 10 17:26:00 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp	Mon Jan 10 17:52:04 2005
@@ -32,6 +32,12 @@
     static std::string getNodeAttributes(const SDNode *N) {
       return "shape=Mrecord";
     }
+
+    static void addCustomGraphFeatures(SelectionDAG *G,
+                                       GraphWriter<SelectionDAG*> &GW) {
+      GW.emitSimpleNode(0, "plaintext=circle", "GraphRoot");
+      GW.emitEdge(0, -1, G->getRoot().Val, -1, "");
+    }
   };
 }
 






More information about the llvm-commits mailing list