Skip to content

Commit 1ab3042

Browse files
committed
[TableGen][DecoderEmitter] Fix indentation in generated code (NFC)
`MCD::OPC_SoftFail` case in the generated `decodeInstruction()` was overindented, except for the closing brace, which was underindented.
1 parent 58d16db commit 1ab3042

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/utils/TableGen/DecoderEmitter.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2308,16 +2308,16 @@ static DecodeStatus decodeInstruction(const uint8_t DecodeTable[], MCInst &MI,
23082308
}
23092309
if (HasSoftFail) {
23102310
OS << R"(
2311-
case MCD::OPC_SoftFail: {
2312-
// Decode the mask values.
2313-
uint64_t PositiveMask = decodeULEB128AndIncUnsafe(Ptr);
2314-
uint64_t NegativeMask = decodeULEB128AndIncUnsafe(Ptr);
2315-
bool Failed = (insn & PositiveMask) != 0 || (~insn & NegativeMask) != 0;
2316-
if (Failed)
2317-
S = MCDisassembler::SoftFail;
2318-
LLVM_DEBUG(dbgs() << Loc << ": OPC_SoftFail: " << (Failed ? "FAIL\n" : "PASS\n"));
2319-
break;
2320-
})";
2311+
case MCD::OPC_SoftFail: {
2312+
// Decode the mask values.
2313+
uint64_t PositiveMask = decodeULEB128AndIncUnsafe(Ptr);
2314+
uint64_t NegativeMask = decodeULEB128AndIncUnsafe(Ptr);
2315+
bool Failed = (insn & PositiveMask) != 0 || (~insn & NegativeMask) != 0;
2316+
if (Failed)
2317+
S = MCDisassembler::SoftFail;
2318+
LLVM_DEBUG(dbgs() << Loc << ": OPC_SoftFail: " << (Failed ? "FAIL\n" : "PASS\n"));
2319+
break;
2320+
})";
23212321
}
23222322
OS << R"(
23232323
case MCD::OPC_Fail: {

0 commit comments

Comments
 (0)