projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0646b8
)
Add a marker for the graph root.
author
Chris Lattner
<sabre@nondot.org>
Mon, 10 Jan 2005 23:52:04 +0000
(23:52 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 10 Jan 2005 23:52:04 +0000
(23:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19445
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index db094a0a1201097faf595352b39620ee22991a03..4a70642c4b56b39ea77953ce66d324bdf420ed90 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@
-32,6
+32,12
@@
namespace llvm {
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, "");
+ }
};
}