MCPcopy Create free account
hub / github.com/NVIDIA/cuda-tile / generateBytecodeReader

Function generateBytecodeReader

tools/cuda-tile-tblgen/BytecodeReaderGen.cpp:708–725  ·  view source on GitHub ↗

The main entry point for the TableGen backend.

Source from the content-addressed store, hash-verified

706
707/// The main entry point for the TableGen backend.
708static 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.
728static bool generateTypeReaderBytecode(const RecordKeeper &records,

Callers 1

Calls 2

generateOpReaderDispatchFunction · 0.85

Tested by

no test coverage detected