diff --git a/llvm/utils/TableGen/DecoderEmitter.cpp b/llvm/utils/TableGen/DecoderEmitter.cpp index af25975f7c7ec..57d3d99c2d932 100644 --- a/llvm/utils/TableGen/DecoderEmitter.cpp +++ b/llvm/utils/TableGen/DecoderEmitter.cpp @@ -83,7 +83,7 @@ static cl::opt LargeTable( "in the table instead of the default 16 bits."), cl::init(false), cl::cat(DisassemblerEmitterCat)); -static cl::opt UseFnTableInDecodetoMCInst( +static cl::opt UseFnTableInDecodeToMCInst( "use-fn-table-in-decode-to-mcinst", cl::desc( "Use a table of function pointers instead of a switch case in the\n" @@ -1087,7 +1087,7 @@ void DecoderEmitter::emitDecoderFunction(formatted_raw_ostream &OS, "DecodeStatus S, InsnType insn, MCInst &MI, uint64_t Address, const " "MCDisassembler *Decoder, bool &DecodeComplete"; - if (UseFnTableInDecodetoMCInst) { + if (UseFnTableInDecodeToMCInst) { // Emit a function for each case first. for (const auto &[Index, Decoder] : enumerate(Decoders)) { OS << Indent << "template \n"; @@ -1110,7 +1110,7 @@ void DecoderEmitter::emitDecoderFunction(formatted_raw_ostream &OS, Indent += 2; OS << Indent << "DecodeComplete = true;\n"; - if (UseFnTableInDecodetoMCInst) { + if (UseFnTableInDecodeToMCInst) { // Build a table of function pointers. OS << Indent << "using DecodeFnTy = DecodeStatus (*)(" << DecodeParams << ");\n"; @@ -1311,7 +1311,7 @@ std::pair FilterChooser::getDecoderIndex(DecoderSet &Decoders, // FIXME: emitDecoder() function can take a buffer directly rather than // a stream. raw_svector_ostream S(Decoder); - indent Indent(UseFnTableInDecodetoMCInst ? 2 : 4); + indent Indent(UseFnTableInDecodeToMCInst ? 2 : 4); bool HasCompleteDecoder = emitDecoder(S, Indent, Opc); // Using the full decoder string as the key value here is a bit