diff options
author | Jay Foad <jay.foad@amd.com> | 2020-11-06 14:19:59 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2020-11-06 16:10:57 +0000 |
commit | d0b8810fe4ece12213936605b336777ed5fd06cc (patch) | |
tree | 50b2646445f1dd3f5777652cd9cf6b1a6dcc9b0e /llvm/utils/TableGen/CodeEmitterGen.cpp | |
parent | d61f2cfb9fc3286e615d8473452981efa6bfcbd9 (diff) | |
download | llvm-d0b8810fe4ece12213936605b336777ed5fd06cc.zip llvm-d0b8810fe4ece12213936605b336777ed5fd06cc.tar.gz llvm-d0b8810fe4ece12213936605b336777ed5fd06cc.tar.bz2 |
[TableGen] Indentation and whitespace fixes in generated code. NFC.
Some of these were found by running clang-format over the generated
code, although that complains about far more issues than I have fixed
here.
Differential Revision: https://reviews.llvm.org/D90937
Diffstat (limited to 'llvm/utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeEmitterGen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp index 6338d44..2433420 100644 --- a/llvm/utils/TableGen/CodeEmitterGen.cpp +++ b/llvm/utils/TableGen/CodeEmitterGen.cpp @@ -483,7 +483,7 @@ void CodeEmitterGen::run(raw_ostream &o) { << " Inst = Inst.zext(" << BitWidth << ");\n" << " if (Scratch.getBitWidth() != " << BitWidth << ")\n" << " Scratch = Scratch.zext(" << BitWidth << ");\n" - << " LoadIntFromMemory(Inst, (uint8_t*)&InstBits[opcode * " << NumWords + << " LoadIntFromMemory(Inst, (uint8_t *)&InstBits[opcode * " << NumWords << "], " << NumBytes << ");\n" << " APInt &Value = Inst;\n" << " APInt &op = Scratch;\n" @@ -643,9 +643,9 @@ void CodeEmitterGen::run(raw_ostream &o) { << " report_fatal_error(Msg.str());\n" << " }\n" << "#else\n" - << "// Silence unused variable warning on targets that don't use MCII for " + << " // Silence unused variable warning on targets that don't use MCII for " "other purposes (e.g. BPF).\n" - << "(void)MCII;\n" + << " (void)MCII;\n" << "#endif // NDEBUG\n"; o << "}\n"; o << "#endif\n"; |