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

Method remove_unused_modules

src/program.cpp:1346–1353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1344}
1345
1346void program::remove_unused_modules()
1347{
1348 std::vector<module*> unused;
1349 generic_get_unused_modules(
1350 impl->modules, generic_get_modules(this->get_main_module()), std::back_inserter(unused));
1351 for(const auto* m : unused)
1352 this->remove_module(m->name());
1353}
1354
1355program& program::sort()
1356{

Callers 1

applyMethod · 0.80

Calls 5

get_main_moduleMethod · 0.95
remove_moduleMethod · 0.95
generic_get_modulesFunction · 0.85
nameMethod · 0.45

Tested by

no test coverage detected