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

Class AllMLIRKernel

compiler/lib/CodeGen/CodeGen.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace KernelGen;
11namespace {
12struct AllMLIRKernel {
13 AllMLIRKernel() {
14 inner_map[KernelPack::KernType::ElemwiseKernel] =
15 std::make_shared<codegen::ElemwiseKernel>();
16 inner_map[KernelPack::KernType::MatrixMulKernel] =
17 std::make_shared<codegen::MatmulKernel>();
18 }
19
20 std::unordered_map<KernelPack::KernType, std::shared_ptr<codegen::AutoKernelFunc>>
21 inner_map;
22};
23} // namespace
24
25codegen::AutoKernelFunc* codegen::GenCode(KernelPack::KernType kern_type) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected