| 1148 | } |
| 1149 | |
| 1150 | std::vector<instruction_ref> |
| 1151 | module::insert_inline(instruction_ref ins, |
| 1152 | const module& m, |
| 1153 | const std::vector<instruction_ref>& inputs, |
| 1154 | std::unordered_map<instruction_ref, instruction_ref>* map_ins, |
| 1155 | module::inserter insert) |
| 1156 | { |
| 1157 | std::unordered_map<instruction_ref, instruction_ref> default_map_ins; |
| 1158 | if(map_ins == nullptr) |
| 1159 | map_ins = &default_map_ins; |
| 1160 | auto param_map = m.get_ins_param_map(inputs, true); |
| 1161 | map_ins->insert(param_map.begin(), param_map.end()); |
| 1162 | return this->insert_instructions(ins, &m, map_ins, std::move(insert)); |
| 1163 | } |
| 1164 | |
| 1165 | void module_with_inputs::replace(instruction_ref ins, instruction_ref rep) |
| 1166 | { |
no test coverage detected