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

Method insert

src/targets/gpu/mlir.cpp:601–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599 }
600
601 std::vector<MlirValue> insert(MlirBlock body, mlir_operation_state ops)
602 {
603 std::vector<MlirValue> result;
604 mlir_operation op = ops.create_operation();
605 auto weak_op = op.get();
606 mlirBlockAppendOwnedOperation(body, op.release());
607
608 auto n = mlirOperationGetNumResults(weak_op);
609 result.reserve(n);
610 transform(range(n), std::back_inserter(result), [&](auto i) {
611 return mlirOperationGetResult(weak_op, i);
612 });
613 return result;
614 }
615
616 MlirBlock
617 insert(MlirBlock body, const module& m, std::unordered_map<instruction_ref, MlirValue>& ins_map)

Callers 2

compute_dump_nameFunction · 0.45
dump_mlir_to_mxrFunction · 0.45

Calls 15

insertFunction · 0.85
create_operationMethod · 0.80
releaseMethod · 0.80
transformFunction · 0.50
rangeFunction · 0.50
sortFunction · 0.50
enabledFunction · 0.50
getMethod · 0.45
get_parameter_namesMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
get_parameterMethod · 0.45

Tested by

no test coverage detected