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

Method add_return

src/module.cpp:574–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574instruction_ref module::add_return(std::vector<instruction_ref> args)
575{
576 shape instr_shape = compute_shape(builtin::returns{}, args);
577 impl->push_back({builtin::returns{}, instr_shape, std::move(args)});
578 auto result = std::prev(impl->instructions.end());
579 instruction::backreference(result);
580 assert(result->valid(begin()));
581 return result;
582}
583
584instruction_ref module::insert_literal(instruction_ref ins, literal l)
585{

Callers 15

replace_returnMethod · 0.95
mod_from_valFunction · 0.45
create_pointwise_modulesFunction · 0.45
applyMethod · 0.45
applyMethod · 0.45
generic_splitFunction · 0.45
create_reduce_modulesFunction · 0.45
applyMethod · 0.45
insertMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45

Calls 5

beginFunction · 0.85
compute_shapeFunction · 0.70
push_backMethod · 0.45
endMethod · 0.45
validMethod · 0.45

Tested by

no test coverage detected