diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-08-04 22:07:54 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-08-04 22:07:54 +0000 |
commit | 8e5492e3508ef833f87e974abfe82a82140f7592 (patch) | |
tree | 75dc1745b152af671cac6a4718a9bfbea6be22df | |
parent | 95908889f493b477899be2019e9afce6ea83fce3 (diff) | |
download | llvm-8e5492e3508ef833f87e974abfe82a82140f7592.zip llvm-8e5492e3508ef833f87e974abfe82a82140f7592.tar.gz llvm-8e5492e3508ef833f87e974abfe82a82140f7592.tar.bz2 |
* Added documentation in the file header
* Shorten assert() text to make it fit within 80 cols
llvm-svn: 15508
-rw-r--r-- | llvm/utils/TableGen/CodeEmitterGen.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp index 6cf18c2..29234ad 100644 --- a/llvm/utils/TableGen/CodeEmitterGen.cpp +++ b/llvm/utils/TableGen/CodeEmitterGen.cpp @@ -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"; |