| 1317 | } |
| 1318 | |
| 1319 | instruction_ref insert_mlir(module& m, |
| 1320 | instruction_ref ins, |
| 1321 | code_object_op co, |
| 1322 | const std::vector<instruction_ref>& inputs) |
| 1323 | { |
| 1324 | |
| 1325 | std::vector<instruction_ref> refs; |
| 1326 | std::size_t last = 0; |
| 1327 | refs.reserve(inputs.size()); |
| 1328 | std::copy(inputs.begin(), inputs.end(), std::back_inserter(refs)); |
| 1329 | last = refs.size() - 1; |
| 1330 | co.expected_inputs = to_shapes(refs); |
| 1331 | co.output_arg = last; |
| 1332 | return m.insert_instruction(ins, co, refs); |
| 1333 | } |
| 1334 | |
| 1335 | tuning_config get_tuning_config_mlir(const context& migraphx_ctx, |
| 1336 | module m, |