[llvm] r200459 - Couple minor formatting fixes to the XXXGenDAGISel.inc files.

Craig Topper craig.topper at gmail.com
Wed Jan 29 22:42:52 PST 2014


Author: ctopper
Date: Thu Jan 30 00:42:52 2014
New Revision: 200459

URL: http://llvm.org/viewvc/llvm-project?rev=200459&view=rev
Log:
Couple minor formatting fixes to the XXXGenDAGISel.inc files.

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=200459&r1=200458&r2=200459&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp Thu Jan 30 00:42:52 2014
@@ -332,7 +332,6 @@ EmitMatcher(const Matcher *N, unsigned I
       // Emit the VBR.
       CurrentIdx += EmitVBRValue(ChildSize, OS);
 
-      OS << ' ';
       if (const SwitchOpcodeMatcher *SOM = dyn_cast<SwitchOpcodeMatcher>(N))
         OS << "TARGET_VAL(" << SOM->getCaseOpcode(i).getEnumName() << "),";
       else
@@ -809,7 +808,7 @@ void llvm::EmitMatcherTable(const Matche
   OS << "  // this.\n";
   OS << "  #define TARGET_VAL(X) X & 255, unsigned(X) >> 8\n";
   OS << "  static const unsigned char MatcherTable[] = {\n";
-  unsigned TotalSize = MatcherEmitter.EmitMatcherList(TheMatcher, 5, 0, OS);
+  unsigned TotalSize = MatcherEmitter.EmitMatcherList(TheMatcher, 6, 0, OS);
   OS << "    0\n  }; // Total Array size is " << (TotalSize+1) << " bytes\n\n";
 
   MatcherEmitter.EmitHistogram(TheMatcher, OS);





More information about the llvm-commits mailing list