improve comments, the matcher is now feature complete, on to codegen.
authorChris Lattner <sabre@nondot.org>
Wed, 17 Feb 2010 06:47:35 +0000 (06:47 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 17 Feb 2010 06:47:35 +0000 (06:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96464 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelMatcherEmitter.cpp

index 8e29c4717232383cb42edc6882e13db5a4bca385..c284761de8e11a8f39430d25d009ba94131c3fac 100644 (file)
@@ -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;
   }