1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

* Added documentation in the file header

* Shorten assert() text to make it fit within 80 cols

llvm-svn: 15508
This commit is contained in:
Misha Brukman 2004-08-04 22:07:54 +00:00
parent 7bb9aec25c
commit 3a15182b6c

View 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";