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

Method get_core_module_str

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

Source from the content-addressed store, hash-verified

93}
94
95std::string TargetModule::get_core_module_str() const {
96 std::stringstream ss;
97 ss << "//! generated file by megcc, do not modify\n";
98 ss << GenCommonInclude() << "\n";
99 ss << "#include <stdio.h>\n";
100 ss << "#include <math.h>\n";
101 for (auto& kv : m_kern_map) {
102 ss << kv.second << "\n";
103 }
104 for (auto& kv : m_kern_init_map) {
105 ss << kv.second << "\n";
106 }
107 return ss.str();
108}
109
110std::string TargetModule::get_helper_module_str() const {
111 std::stringstream ss;

Callers

nothing calls this directly

Calls 1

GenCommonIncludeFunction · 0.85

Tested by

no test coverage detected