MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / gen_op_def_c_header

Function gen_op_def_c_header

imperative/tablegen/targets/cpp_class.cpp:275–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273} // namespace
274
275bool gen_op_def_c_header(raw_ostream& os, llvm::RecordKeeper& keeper) {
276 foreach_operator(keeper, [&](MgbOp& op) {
277 OpDefEmitter emitter(op, os);
278 emitter.emit_header();
279 emitter.emit_tpl_spl();
280 });
281 return false;
282}
283
284bool gen_op_def_c_body(raw_ostream& os, llvm::RecordKeeper& keeper) {
285 foreach_operator(keeper, [&](MgbOp& op) {

Callers

nothing calls this directly

Calls 3

foreach_operatorFunction · 0.85
emit_headerMethod · 0.80
emit_tpl_splMethod · 0.45

Tested by

no test coverage detected