aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/DAGISelMatcherEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-01 02:24:17 +0000
committerChris Lattner <sabre@nondot.org>2010-03-01 02:24:17 +0000
commit0cebe6181af8a2cf5e6cf9497cda4c47b426a0f8 (patch)
tree21096e8e26a8f9b7dd68b95baba5fd9c683a60b2 /utils/TableGen/DAGISelMatcherEmitter.cpp
parente9eeda878beb8d36507a69a2be2fe08fcc968fef (diff)
downloadexternal_llvm-0cebe6181af8a2cf5e6cf9497cda4c47b426a0f8.zip
external_llvm-0cebe6181af8a2cf5e6cf9497cda4c47b426a0f8.tar.gz
external_llvm-0cebe6181af8a2cf5e6cf9497cda4c47b426a0f8.tar.bz2
enhance RecordNode and RecordChild comments to indicate what
slot they're recording into, no functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcherEmitter.cpp')
-rw-r--r--utils/TableGen/DAGISelMatcherEmitter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/TableGen/DAGISelMatcherEmitter.cpp b/utils/TableGen/DAGISelMatcherEmitter.cpp
index 133157f..5b435fe 100644
--- a/utils/TableGen/DAGISelMatcherEmitter.cpp
+++ b/utils/TableGen/DAGISelMatcherEmitter.cpp
@@ -183,14 +183,16 @@ EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx,
case Matcher::RecordNode:
OS << "OPC_RecordNode,";
- OS.PadToColumn(CommentIndent) << "// "
+ OS.PadToColumn(CommentIndent) << "// #"
+ << cast<RecordMatcher>(N)->getResultNo() << " = "
<< cast<RecordMatcher>(N)->getWhatFor() << '\n';
return 1;
case Matcher::RecordChild:
OS << "OPC_RecordChild" << cast<RecordChildMatcher>(N)->getChildNo()
<< ',';
- OS.PadToColumn(CommentIndent) << "// "
+ OS.PadToColumn(CommentIndent) << "// #"
+ << cast<RecordChildMatcher>(N)->getResultNo() << " = "
<< cast<RecordChildMatcher>(N)->getWhatFor() << '\n';
return 1;