| 674 | } |
| 675 | |
| 676 | std::vector<instruction_ref> module::get_parameters() const |
| 677 | { |
| 678 | std::vector<instruction_ref> result; |
| 679 | auto refs = iterator_for(*this); |
| 680 | std::copy_if(refs.begin(), refs.end(), std::back_inserter(result), [&](instruction_ref ins) { |
| 681 | return ins->name() == "@param"; |
| 682 | }); |
| 683 | return result; |
| 684 | } |
| 685 | |
| 686 | void module::rename_parameter(instruction_ref ins, const std::string& name) |
| 687 | { |