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:
d6f0602
)
add some helpful comments to the emitter
author
Chris Lattner
<sabre@nondot.org>
Fri, 26 Feb 2010 08:15:02 +0000
(08:15 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 26 Feb 2010 08:15:02 +0000
(08:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97219
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/DAGISelMatcherEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/DAGISelMatcherEmitter.cpp
b/utils/TableGen/DAGISelMatcherEmitter.cpp
index d2eab2741cbc31f78bb90d2473abb4b3306469a1..7c0846a9df983829933f8d5d282409103886c04b 100644
(file)
--- a/
utils/TableGen/DAGISelMatcherEmitter.cpp
+++ b/
utils/TableGen/DAGISelMatcherEmitter.cpp
@@
-204,6
+204,12
@@
EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx,
assert(ChildSize != 0 && "Should not have a zero-sized child!");
CurrentIdx += EmitVBRValue(ChildSize, OS);
+ OS << "/*->" << CurrentIdx+ChildSize << "*/";
+
+ if (i == 0)
+ OS.PadToColumn(CommentIndent) << "// " << SM->getNumChildren()
+ << " children in Scope";
+
OS << '\n' << TmpBuf.str();
CurrentIdx += ChildSize;
}