| 715 | instruction_ref module::begin() const { return impl->instructions.begin(); } |
| 716 | instruction_ref module::end() const { return impl->instructions.end(); } |
| 717 | instruction_ref module::insert_end() const |
| 718 | { |
| 719 | auto e = impl->instructions.end(); |
| 720 | if(impl->instructions.empty()) |
| 721 | return e; |
| 722 | auto last_ins = std::prev(e); |
| 723 | if(last_ins->name() == "@return") |
| 724 | return last_ins; |
| 725 | return e; |
| 726 | } |
| 727 | |
| 728 | std::vector<shape> module::get_output_shapes() const |
| 729 | { |
no test coverage detected