| 403 | } |
| 404 | |
| 405 | instruction_ref module::remove_instructions(instruction_ref first, instruction_ref last) |
| 406 | { |
| 407 | if(first == last) |
| 408 | return first; |
| 409 | // TODO: Check every element |
| 410 | assert(has_instruction(first)); |
| 411 | std::for_each(first, last, [&](instruction& ins) { ins.clear_arguments(); }); |
| 412 | assert(std::all_of(first, last, [&](const instruction& ins) { return ins.outputs().empty(); })); |
| 413 | return impl->erase(first, last); |
| 414 | } |
| 415 | |
| 416 | instruction_ref module::move_instruction(instruction_ref src, instruction_ref dst) |
| 417 | { |
no test coverage detected