MCPcopy Create free account
hub / github.com/MegEngine/MegCC / GenCode

Method GenCode

compiler/lib/CodeGen/CodeGen.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23} // namespace
24
25codegen::AutoKernelFunc* codegen::GenCode(KernelPack::KernType kern_type) {
26 static AllMLIRKernel all_kernel;
27 if (all_kernel.inner_map.find(kern_type) != all_kernel.inner_map.end()) {
28 return all_kernel.inner_map[kern_type].get();
29 } else {
30 return nullptr;
31 }
32}

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected