[llvm-commits] [llvm] r55157 - /llvm/trunk/utils/TableGen/FastISelEmitter.cpp

Dan Gohman gohman at apple.com
Thu Aug 21 17:28:15 PDT 2008


Author: djg
Date: Thu Aug 21 19:28:15 2008
New Revision: 55157

URL: http://llvm.org/viewvc/llvm-project?rev=55157&view=rev
Log:
Add a few comments.

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

Modified: llvm/trunk/utils/TableGen/FastISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/FastISelEmitter.cpp?rev=55157&r1=55156&r2=55157&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/FastISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FastISelEmitter.cpp Thu Aug 21 19:28:15 2008
@@ -181,6 +181,7 @@
   typedef std::map<OperandsSignature, OpcodeTypePredMap> OperandsOpcodeTypePredMap;
   OperandsOpcodeTypePredMap SimplePatterns;
 
+  // Scan through all the patterns and record the simple ones.
   for (CodeGenDAGPatterns::ptm_iterator I = CGP.ptm_begin(),
        E = CGP.ptm_end(); I != E; ++I) {
     const PatternToMatch &Pattern = *I;
@@ -394,6 +395,9 @@
       OS << "\n";
     }
 
+    OS << "// Top-level FastEmit function.\n";
+    OS << "\n";
+
     // Emit one function for the operand signature that demultiplexes based
     // on opcode and type.
     OS << "unsigned FastISel::FastEmit_";





More information about the llvm-commits mailing list