| 1290 | |
| 1291 | template <class Map> |
| 1292 | MIGRAPHX_DEBUG_USED static bool |
| 1293 | references_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 | |
| 1306 | void program::remove_module(const std::string& name) |
| 1307 | { |
no test coverage detected