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

Method rename_module

src/pass_manager.cpp:119–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 }
118
119 virtual void rename_module(const std::string& old_name, const std::string& new_name) override
120 {
121 assert(prog);
122 assert(mod);
123 assert(
124 any_of(mod->get_sub_modules(), [&](module_ref sm) { return sm->name() == old_name; }));
125 prog->rename_module(old_name, new_name);
126 }
127
128 virtual module* get_common_parent() override { return common_parent; }
129

Callers

nothing calls this directly

Calls 3

get_sub_modulesMethod · 0.80
any_ofFunction · 0.50
nameMethod · 0.45

Tested by

no test coverage detected