* Added documentation in the file header
authorMisha Brukman <brukman+llvm@gmail.com>
Wed, 4 Aug 2004 22:07:54 +0000 (22:07 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Wed, 4 Aug 2004 22:07:54 +0000 (22:07 +0000)
* Shorten assert() text to make it fit within 80 cols

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15508 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeEmitterGen.cpp

index 6cf18c2ded9e37b091ce2338616d047dd95ba645..29234ad21dbe43513cb469ec5e44e215dcc1deb7 100644 (file)
@@ -7,7 +7,9 @@
 // 
 //===----------------------------------------------------------------------===//
 //
-// FIXME: Document.
+// CodeEmitterGen uses the descriptions of instructions and their fields to
+// construct an automated code emitter: a function that, given a MachineInstr,
+// returns the (currently, 32-bit unsigned) value of the instruction.
 //
 //===----------------------------------------------------------------------===//
 
@@ -152,7 +154,7 @@ void CodeEmitterGen::run(std::ostream &o) {
               << " &= (1<<" << beginBitInVar+1 << ") - 1;\n";
             
             // Shift the value to the correct place (according to place in inst)
-            assert(endBitInInst >= 0 && "Negative shift amount in inst position!");
+            assert(endBitInInst >= 0 && "Negative shift amount!");
             if (endBitInInst != 0)
               o << "      op" << OpOrder[Vals[i].getName()]
               << " <<= " << endBitInInst << ";\n";