The main entry point for the TableGen backend.
| 706 | |
| 707 | /// The main entry point for the TableGen backend. |
| 708 | static bool generateBytecodeReader(const RecordKeeper &records, |
| 709 | raw_ostream &os) { |
| 710 | os << "//===-- Begin Reader Implementations --===//\n" |
| 711 | << "#ifdef GEN_OP_READERS\n\n"; |
| 712 | generateOpReaderImplementations(records, os); |
| 713 | os << "#undef GEN_OP_READERS\n" |
| 714 | << "#endif // GEN_OP_READERS\n" |
| 715 | << "//===-- End Reader Implementations --===//\n\n"; |
| 716 | |
| 717 | os << "//===-- Begin Opcode Dispatcher --===//\n" |
| 718 | << "#ifdef GEN_OP_READER_DISPATCH\n\n"; |
| 719 | generateOpReaderDispatch(records, os); |
| 720 | os << "#undef GEN_OP_READER_DISPATCH\n" |
| 721 | << "#endif // GEN_OP_READER_DISPATCH\n" |
| 722 | << "//===-- End Opcode Dispatcher --===//\n\n"; |
| 723 | |
| 724 | return false; |
| 725 | } |
| 726 | |
| 727 | /// Generate type reader bytecode functions. |
| 728 | static bool generateTypeReaderBytecode(const RecordKeeper &records, |
no test coverage detected