Lines Matching refs:Decoder
1 //===------------ FixedLenDecoderEmitter.cpp - Decoder Generator ----------===//
10 // It contains the tablegen backend that emits the decoder functions for
36 #define DEBUG_TYPE "decoder-emitter"
47 std::string Decoder;
51 : Decoder(std::move(D)), HasCompleteDecoder(HCD) {}
98 // Emit the decoder state machine table.
214 /// which could have been used by the decoder to resolve the conflict. The
215 /// decoder could try to decode the even/odd register numbering and assign to
216 /// VST4q8a or VST4q8b, but for the time being, the decoder chooses the "a"
690 // Emit the decoder state machine table.
798 // Decoder index.
898 // The decoder function is just a big switch statement based on the
899 // input decoder index.
904 << "Address, const void *Decoder, bool &DecodeComplete) {\n";
911 for (const auto &Decoder : Decoders) {
913 OS << Decoder;
1040 const std::string &Decoder = OpInfo.Decoder;
1055 if (Decoder != "") {
1057 o.indent(Indentation) << Emitter->GuardPrefix << Decoder
1058 << "(MI, tmp, Address, Decoder)"
1073 // If a custom instruction decoder was specified, use that.
1074 if (Op.numFields() == 0 && Op.Decoder.size()) {
1076 OS.indent(Indentation) << Emitter->GuardPrefix << Op.Decoder
1077 << "(MI, insn, Address, Decoder)"
1095 SmallString<256> Decoder;
1098 raw_svector_ostream S(Decoder);
1102 // Using the full decoder string as the key value here is a bit
1109 Decoders.insert(StringRef(Decoder));
1113 Decoder.str());
1326 // whether the instruction decoder is complete or not. If it is complete
1331 // decoder method indicates that additional processing should be done to see
1346 // Decoder index
1709 // of trying to auto-generate the decoder.
1831 std::string Decoder = "";
1838 Decoder = String->getValue();
1840 if (Decoder == "" &&
1855 Decoder = "Decode" + TypeRecord->getName() + "RegisterClass";
1858 Decoder = "DecodePointerLikeRegClass" +
1867 Decoder = String->getValue();
1876 OperandInfo OpInfo(Decoder, HasCompleteDecoder);
1920 std::string Decoder = "";
1926 // decoder methods, and operands with (simple) MIOperandInfo's.
1934 Decoder = "Decode" + TypeRecord->getName() + "RegisterClass";
1937 Decoder = "DecodePointerLikeRegClass" +
1946 Decoder = String->getValue();
1955 OperandInfo OpInfo(Decoder, HasCompleteDecoder);
2152 << " << \", using decoder \" << DecodeIdx << \": \"\n"
2173 << " << \", using decoder \" << DecodeIdx << \": \");\n"
2257 // Emit the decoder for this namespace+width combination.
2261 // The decode table is cleared for each top level decoder function. The
2287 // Emit the decoder function.
2290 // Emit the main entry point for the decoder, decodeInstruction().