[PATCH] D12565: SelectionDAGDumper: print datatypes behind node names
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 2 10:54:21 PDT 2015
MatzeB created this revision.
MatzeB added a reviewer: resistor.
MatzeB added a subscriber: llvm-commits.
MatzeB set the repository for this revision to rL LLVM.
Before:
t2: i32,ch = load t0, t0, t1<LD4[FixedStack-1]> [ORD=1]
t7: i32 = Constant<0>
Now:
t2 = load:i32,ch t0, t0, t1 <LD4[FixedStack-1]> [ORD=1]
t7 = Constant:i32 <0>
Repository:
rL LLVM
http://reviews.llvm.org/D12565
Files:
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
Index: lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
===================================================================
--- lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
+++ lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
@@ -389,16 +389,16 @@
}
void SDNode::print_types(raw_ostream &OS, const SelectionDAG *G) const {
- OS << PrintNodeId(*this) << ": ";
+ OS << PrintNodeId(*this) << " = ";
+ OS << getOperationName(G) << ':';
for (unsigned i = 0, e = getNumValues(); i != e; ++i) {
if (i) OS << ",";
if (getValueType(i) == MVT::Other)
OS << "ch";
else
OS << getValueType(i).getEVTString();
}
- OS << " = " << getOperationName(G);
}
void SDNode::print_details(raw_ostream &OS, const SelectionDAG *G) const {
@@ -604,6 +604,7 @@
void SDNode::printr(raw_ostream &OS, const SelectionDAG *G) const {
print_types(OS, G);
+ OS << ' ';
print_details(OS, G);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12565.33829.patch
Type: text/x-patch
Size: 921 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150902/303add89/attachment.bin>
More information about the llvm-commits
mailing list