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

Method add_cv

compiler/test/kernel/common/src/target_module.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void TargetModule::add_cv(
78 const std::string& sym, const std::string& sig, const std::string& body) {
79 if (m_cv_kern_map.count(sym) == 0) {
80 m_cv_kern_map[sym] = body;
81 m_cv_sig_map[sym] = sig;
82 }
83}
84
85bool TargetModule::exist_internal_function(const std::string& sig) const {
86 return m_internal_kern_map.count(sig) != 0;

Callers 1

gen_kernel_cvFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected