Lines Matching refs:Indentation
100 unsigned Indentation, unsigned BitWidth,
104 unsigned Indentation) const;
107 unsigned Indentation) const;
428 bool emitPredicateMatch(raw_ostream &o, unsigned &Indentation,
447 void emitBinaryParser(raw_ostream &o, unsigned &Indentation,
451 void emitDecoder(raw_ostream &OS, unsigned Indentation, unsigned Opc,
693 unsigned Indentation, in emitTable() argument
696 OS.indent(Indentation) << "static const uint8_t DecoderTable" << Namespace in emitTable()
699 Indentation += 2; in emitTable()
719 OS.indent(Indentation) << "MCD::OPC_ExtractField, " << Start << ", " in emitTable()
728 OS.indent(Indentation) << "MCD::OPC_FilterValue, "; in emitTable()
748 OS.indent(Indentation) << "MCD::OPC_CheckField, " << Start << ", " in emitTable()
766 OS.indent(Indentation) << "MCD::OPC_CheckPredicate, "; in emitTable()
792 OS.indent(Indentation) << "MCD::OPC_" << (IsTry ? "Try" : "") in emitTable()
826 OS.indent(Indentation) << "MCD::OPC_SoftFail"; in emitTable()
858 OS.indent(Indentation) << "MCD::OPC_Fail,\n"; in emitTable()
863 OS.indent(Indentation) << "0\n"; in emitTable()
865 Indentation -= 2; in emitTable()
867 OS.indent(Indentation) << "};\n\n"; in emitTable()
872 unsigned Indentation) const { in emitPredicateFunction()
875 OS.indent(Indentation) << "static bool checkDecoderPredicate(unsigned Idx, " in emitPredicateFunction()
877 Indentation += 2; in emitPredicateFunction()
879 OS.indent(Indentation) << "switch (Idx) {\n"; in emitPredicateFunction()
880 OS.indent(Indentation) << "default: llvm_unreachable(\"Invalid index!\");\n"; in emitPredicateFunction()
883 OS.indent(Indentation) << "case " << Index++ << ":\n"; in emitPredicateFunction()
884 OS.indent(Indentation+2) << "return (" << Predicate << ");\n"; in emitPredicateFunction()
886 OS.indent(Indentation) << "}\n"; in emitPredicateFunction()
889 OS.indent(Indentation) << "llvm_unreachable(\"Invalid index!\");\n"; in emitPredicateFunction()
891 Indentation -= 2; in emitPredicateFunction()
892 OS.indent(Indentation) << "}\n\n"; in emitPredicateFunction()
897 unsigned Indentation) const { in emitDecoderFunction()
900 OS.indent(Indentation) << "template<typename InsnType>\n"; in emitDecoderFunction()
901 OS.indent(Indentation) << "static DecodeStatus decodeToMCInst(DecodeStatus S," in emitDecoderFunction()
903 OS.indent(Indentation) << " uint64_t " in emitDecoderFunction()
905 Indentation += 2; in emitDecoderFunction()
906 OS.indent(Indentation) << "DecodeComplete = true;\n"; in emitDecoderFunction()
907 OS.indent(Indentation) << "InsnType tmp;\n"; in emitDecoderFunction()
908 OS.indent(Indentation) << "switch (Idx) {\n"; in emitDecoderFunction()
909 OS.indent(Indentation) << "default: llvm_unreachable(\"Invalid index!\");\n"; in emitDecoderFunction()
912 OS.indent(Indentation) << "case " << Index++ << ":\n"; in emitDecoderFunction()
914 OS.indent(Indentation+2) << "return S;\n"; in emitDecoderFunction()
916 OS.indent(Indentation) << "}\n"; in emitDecoderFunction()
917 Indentation -= 2; in emitDecoderFunction()
918 OS.indent(Indentation) << "}\n\n"; in emitDecoderFunction()
1037 void FilterChooser::emitBinaryParser(raw_ostream &o, unsigned &Indentation, in emitBinaryParser() argument
1043 o.indent(Indentation) << "tmp = 0;\n"; in emitBinaryParser()
1046 o.indent(Indentation) << "tmp "; in emitBinaryParser()
1057 o.indent(Indentation) << Emitter->GuardPrefix << Decoder in emitBinaryParser()
1064 o.indent(Indentation) << "MI.addOperand(MCOperand::createImm(tmp));\n"; in emitBinaryParser()
1068 void FilterChooser::emitDecoder(raw_ostream &OS, unsigned Indentation, in emitDecoder() argument
1076 OS.indent(Indentation) << Emitter->GuardPrefix << Op.Decoder in emitDecoder()
1085 emitBinaryParser(OS, Indentation, Op, OpHasCompleteDecoder); in emitDecoder()
1126 bool FilterChooser::emitPredicateMatch(raw_ostream &o, unsigned &Indentation, in emitPredicateMatch() argument