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

Function references_instruction

src/program.cpp:1292–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1290
1291template <class Map>
1292MIGRAPHX_DEBUG_USED static bool
1293references_instruction(Map& m, const instruction& ins, const std::string& name)
1294{
1295 return std::any_of(m.begin(), m.end(), [&](auto&& p) {
1296 if(p.first == name)
1297 return false;
1298 return std::any_of(p.second.begin(), p.second.end(), [&](auto&& i) {
1299 return std::any_of(i.inputs().begin(), i.inputs().end(), [&](auto&& j) {
1300 return std::addressof(*j) == std::addressof(ins);
1301 });
1302 });
1303 });
1304}
1305
1306void program::remove_module(const std::string& name)
1307{

Callers 1

remove_moduleMethod · 0.85

Calls 4

any_ofFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
inputsMethod · 0.45

Tested by

no test coverage detected