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

Method rename_module

src/program.cpp:1335–1344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1333}
1334
1335void program::rename_module(const std::string& old_name, const std::string& new_name)
1336{
1337 assert(old_name != new_name);
1338 assert(contains(impl->modules, old_name));
1339 assert(not contains(impl->modules, new_name));
1340 auto node = impl->modules.extract(old_name);
1341 node.key() = new_name;
1342 node.mapped().set_name(new_name);
1343 impl->modules.insert(std::move(node));
1344}
1345
1346void program::remove_unused_modules()
1347{

Callers 1

merge_instructionFunction · 0.45

Calls 3

containsFunction · 0.85
set_nameMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected