MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / create_module

Method create_module

src/program.cpp:1201–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1199const module* program::get_module(const std::string& name) const { return &impl->modules.at(name); }
1200
1201module* program::create_module(const std::string& name)
1202{
1203
1204 assert(not contains(impl->modules, name));
1205 auto r = impl->modules.emplace(name, name);
1206 return &(r.first->second);
1207}
1208
1209module* program::create_module(const std::string& name, module m)
1210{

Callers 15

programMethod · 0.95
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45

Calls 3

containsFunction · 0.85
emplaceMethod · 0.80
set_nameMethod · 0.80

Tested by 15

TEST_CASEFunction · 0.36
TEST_CASEFunction · 0.36
TEST_CASEFunction · 0.36
TEST_CASEFunction · 0.36
TEST_CASEFunction · 0.36
TEST_CASEFunction · 0.36
TEST_CASEFunction · 0.36
TEST_CASEFunction · 0.36
TEST_CASEFunction · 0.36
create_programFunction · 0.36
TEST_CASEFunction · 0.36
TEST_CASEFunction · 0.36