| 588 | } |
| 589 | |
| 590 | instruction_ref module::insert_parameter(instruction_ref ins, std::string name, shape s) |
| 591 | { |
| 592 | assert(get_parameter_shape(name) == shape{}); |
| 593 | impl->insert(ins, {builtin::param{std::move(name), impl->nparams}, std::move(s), {}}); |
| 594 | impl->nparams++; |
| 595 | return std::prev(ins); |
| 596 | } |
| 597 | |
| 598 | instruction_ref module::replace_return(std::vector<instruction_ref> args) |
| 599 | { |