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

Function generic_insert_module_tree

src/program.cpp:1263–1270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1261
1262template <class Module, class Map>
1263static void generic_insert_module_tree(Module* pm, Map& m)
1264{
1265 for(auto* sm : pm->get_sub_modules(true))
1266 {
1267 m.insert(std::make_pair(sm, pm));
1268 generic_insert_module_tree(sm, m);
1269 }
1270}
1271
1272std::unordered_multimap<module_ref, module_ref> program::get_module_tree()
1273{

Callers 1

get_module_treeMethod · 0.85

Calls 2

get_sub_modulesMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected