• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/llvmCore-3425.0.34/utils/TableGen/

Lines Matching defs:OS

103   void emitPredicateFunction(formatted_raw_ostream &OS,
106 void emitDecoderFunction(formatted_raw_ostream &OS,
460 void emitDecoder(raw_ostream &OS, unsigned Indentation, unsigned Opc) const;
721 void FixedLenDecoderEmitter::emitTable(formatted_raw_ostream &OS,
726 OS.indent(Indentation) << "static const uint8_t DecoderTable" << Namespace
739 OS << "/* " << Pos << " */";
740 OS.PadToColumn(12);
749 OS.indent(Indentation) << "MCD::OPC_ExtractField, " << Start << ", "
752 OS << (Start + Len - 1) << "-";
753 OS << Start << "} ...\n";
758 OS.indent(Indentation) << "MCD::OPC_FilterValue, ";
761 OS << utostr(*I++) << ", ";
762 OS << utostr(*I++) << ", ";
767 OS << utostr(Byte) << ", ";
769 OS << utostr(Byte) << ", ";
771 OS << "// Skip to: " << ((I - Table.begin()) + NumToSkip) << "\n";
778 OS.indent(Indentation) << "MCD::OPC_CheckField, " << Start << ", "
782 OS << utostr(*I) << ", ";
783 OS << utostr(*I++) << ", ";
787 OS << utostr(Byte) << ", ";
789 OS << utostr(Byte) << ", ";
791 OS << "// Skip to: " << ((I - Table.begin()) + NumToSkip) << "\n";
796 OS.indent(Indentation) << "MCD::OPC_CheckPredicate, ";
798 OS << utostr(*I) << ", ";
799 OS << utostr(*I++) << ", ";
804 OS << utostr(Byte) << ", ";
806 OS << utostr(Byte) << ", ";
808 OS << "// Skip to: " << ((I - Table.begin()) + NumToSkip) << "\n";
820 OS.indent(Indentation) << "MCD::OPC_Decode, ";
822 OS << utostr(*p) << ", ";
823 OS << utostr(*p) << ", ";
827 OS << utostr(*I) << ", ";
828 OS << utostr(*I++) << ", ";
830 OS << "// Opcode: "
836 OS.indent(Indentation) << "MCD::OPC_SoftFail";
841 OS << ", " << utostr(*I);
846 OS << " /* 0x" << utohexstr(Value) << " */";
851 OS << ", " << utostr(*I);
856 OS << " /* 0x" << utohexstr(Value) << " */";
857 OS << ",\n";
862 OS.indent(Indentation) << "MCD::OPC_Fail,\n";
867 OS.indent(Indentation) << "0\n";
871 OS.indent(Indentation) << "};\n\n";
875 emitPredicateFunction(formatted_raw_ostream &OS, PredicateSet &Predicates,
879 OS.indent(Indentation) << "static bool checkDecoderPredicate(unsigned Idx, "
882 OS.indent(Indentation) << "switch (Idx) {\n";
883 OS.indent(Indentation) << "default: llvm_unreachable(\"Invalid index!\");\n";
887 OS.indent(Indentation) << "case " << Index << ":\n";
888 OS.indent(Indentation+2) << "return (" << *I << ");\n";
890 OS.indent(Indentation) << "}\n";
892 OS.indent(Indentation) << "}\n\n";
896 emitDecoderFunction(formatted_raw_ostream &OS, DecoderSet &Decoders,
900 OS.indent(Indentation) << "template<typename InsnType>\n";
901 OS.indent(Indentation) << "static DecodeStatus decodeToMCInst(DecodeStatus S,"
903 OS.indent(Indentation) << " uint64_t "
906 OS.indent(Indentation) << "InsnType tmp;\n";
907 OS.indent(Indentation) << "switch (Idx) {\n";
908 OS.indent(Indentation) << "default: llvm_unreachable(\"Invalid index!\");\n";
912 OS.indent(Indentation) << "case " << Index << ":\n";
913 OS << *I;
914 OS.indent(Indentation+2) << "return S;\n";
916 OS.indent(Indentation) << "}\n";
918 OS.indent(Indentation) << "}\n\n";
1089 void FilterChooser::emitDecoder(raw_ostream &OS, unsigned Indentation,
1098 OS.indent(Indentation) << Emitter->GuardPrefix << I->Decoder
1104 emitBinaryParser(OS, Indentation, *I);
1858 static void emitFieldFromInstruction(formatted_raw_ostream &OS) {
1859 OS << "// Helper function for extracting fields from encoded instructions.\n"
1876 static void emitDecodeInstruction(formatted_raw_ostream &OS) {
1877 OS << "template<typename InsnType>\n"
1998 formatted_raw_ostream OS(o);
1999 OS << "#include \"llvm/MC/MCInst.h\"\n";
2000 OS << "#include \"llvm/Support/Debug.h\"\n";
2001 OS << "#include \"llvm/Support/DataTypes.h\"\n";
2002 OS << "#include \"llvm/Support/LEB128.h\"\n";
2003 OS << "#include \"llvm/Support/raw_ostream.h\"\n";
2004 OS << "#include <assert.h>\n";
2005 OS << '\n';
2006 OS << "namespace llvm {\n\n";
2008 emitFieldFromInstruction(OS);
2063 emitTable(OS, TableInfo.Table, 0, FC.getBitWidth(), I->first.first);
2064 OS.flush();
2068 emitPredicateFunction(OS, TableInfo.Predicates, 0);
2071 emitDecoderFunction(OS, TableInfo.Decoders, 0);
2074 emitDecodeInstruction(OS);
2076 OS << "\n} // End llvm namespace\n";
2081 void EmitFixedLenDecoder(RecordKeeper &RK, raw_ostream &OS,
2089 ROK, RFail, L).run(OS);