[llvm-commits] CVS: llvm/utils/TableGen/CodeEmitterGen.cpp
Misha Brukman
brukman at cs.uiuc.edu
Wed Aug 4 15:08:04 PDT 2004
Changes in directory llvm/utils/TableGen:
CodeEmitterGen.cpp updated: 1.30 -> 1.31
---
Log message:
* Added documentation in the file header
* Shorten assert() text to make it fit within 80 cols
---
Diffs of the changes: (+4 -2)
Index: llvm/utils/TableGen/CodeEmitterGen.cpp
diff -u llvm/utils/TableGen/CodeEmitterGen.cpp:1.30 llvm/utils/TableGen/CodeEmitterGen.cpp:1.31
--- llvm/utils/TableGen/CodeEmitterGen.cpp:1.30 Sat Jul 31 22:55:38 2004
+++ llvm/utils/TableGen/CodeEmitterGen.cpp Wed Aug 4 17:07:54 2004
@@ -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 @@
<< " &= (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";
More information about the llvm-commits
mailing list