aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/DAGISelMatcherEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-17 06:47:35 +0000
committerChris Lattner <sabre@nondot.org>2010-02-17 06:47:35 +0000
commit781f359c1a7f590c4f8828ad9d542606c3a0ee12 (patch)
treefad3734f670e263d14c541f8e79fcc77cbd912c1 /utils/TableGen/DAGISelMatcherEmitter.cpp
parent11979aa23ec7b5efbb97f74d89c9a599586e1b6e (diff)
downloadexternal_llvm-781f359c1a7f590c4f8828ad9d542606c3a0ee12.zip
external_llvm-781f359c1a7f590c4f8828ad9d542606c3a0ee12.tar.gz
external_llvm-781f359c1a7f590c4f8828ad9d542606c3a0ee12.tar.bz2
improve comments, the matcher is now feature complete, on to codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcherEmitter.cpp')
-rw-r--r--utils/TableGen/DAGISelMatcherEmitter.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/TableGen/DAGISelMatcherEmitter.cpp b/utils/TableGen/DAGISelMatcherEmitter.cpp
index 8e29c47..c284761 100644
--- a/utils/TableGen/DAGISelMatcherEmitter.cpp
+++ b/utils/TableGen/DAGISelMatcherEmitter.cpp
@@ -186,7 +186,11 @@ EmitMatcher(const MatcherNode *N, unsigned Indent) {
const ComplexPattern &Pattern =
cast<CheckComplexPatMatcherNode>(N)->getPattern();
OS << "OPC_CheckComplexPat, " << getComplexPat(Pattern) << ',';
- OS.PadToColumn(CommentIndent) << "// " << Pattern.getSelectFunc() << '\n';
+ OS.PadToColumn(CommentIndent) << "// " << Pattern.getSelectFunc();
+ OS << ": " << Pattern.getNumOperands() << " operands";
+ if (Pattern.hasProperty(SDNPHasChain))
+ OS << " + chain result and input";
+ OS << '\n';
return 2;
}