| 80 | } |
| 81 | |
| 82 | std::vector<instruction_ref> |
| 83 | find_inputs(const std::unordered_map<instruction_ref, instruction_ref>& map_ins, |
| 84 | const_module_ref parent, |
| 85 | const_module_ref sub) |
| 86 | { |
| 87 | return find_inputs_impl(map_ins, sub, [&](instruction_ref ins) { |
| 88 | if(parent == nullptr) |
| 89 | return false; |
| 90 | return parent->has_instruction(ins); |
| 91 | }); |
| 92 | } |
| 93 | |
| 94 | std::vector<instruction_ref> |
| 95 | find_inputs(const std::unordered_map<instruction_ref, instruction_ref>& map_ins, |