[llvm-commits] [llvm] r97219 - /llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp

Chris Lattner sabre at nondot.org
Fri Feb 26 00:15:02 PST 2010


Author: lattner
Date: Fri Feb 26 02:15:02 2010
New Revision: 97219

URL: http://llvm.org/viewvc/llvm-project?rev=97219&view=rev
Log:
add some helpful comments to the emitter


Modified:
    llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp

Modified: llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp?rev=97219&r1=97218&r2=97219&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp Fri Feb 26 02:15:02 2010
@@ -204,6 +204,12 @@
       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;
     }





More information about the llvm-commits mailing list