MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / insert_mlir

Function insert_mlir

src/targets/gpu/mlir.cpp:1319–1333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1317}
1318
1319instruction_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
1335tuning_config get_tuning_config_mlir(const context& migraphx_ctx,
1336 module m,

Callers 2

create_program_from_mlirFunction · 0.85
insertMethod · 0.85

Calls 7

useFunction · 0.85
insert_instructionMethod · 0.80
copyFunction · 0.50
to_shapesFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected