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

Method render

compiler/lib/KernelGen/Utils/StringTemplate.cpp:63–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61} // namespace
62
63std::string StringTemplate::render(
64 const std::string& template_str, const KvMap& kv_map, const FuncMap& func_map) {
65 //! template args used as ${args}
66 return render_with_cbk(
67 template_str, std::regex(R"(\$\{([^\{\}]+)\})"), kv_map, func_map);
68}
69
70void StringTemplate::StringTemplateArgs::init_builtin() {
71 //! for is builtin func impl, you can use

Callers 15

GetKernelBodyMethod · 0.45
GetKernelBodyMethod · 0.45
init_builtinMethod · 0.45
render_init_bodyMethod · 0.45
GenKernFunction · 0.45
gen_kernelFunction · 0.45
kern_4x12Function · 0.45
kern_4x4Function · 0.45
gen_kernelFunction · 0.45
GetKernelBodyMethod · 0.45
kern4x12Function · 0.45
kern4x4Function · 0.45

Calls 1

render_with_cbkFunction · 0.85

Tested by 6

gen_get_real_coordFunction · 0.36
gen_visitFunction · 0.36
gen_resize_optimizableFunction · 0.36
gen_naiveFunction · 0.36
GetKernelBodyMethod · 0.36
TESTFunction · 0.36