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

Method insert_instruction

src/module.cpp:295–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293 return insert_instruction(this->insert_end(), op, std::move(args));
294}
295instruction_ref module::insert_instruction(instruction_ref ins,
296 const operation& op,
297 std::vector<instruction_ref> args)
298{
299 assert(has_instruction(ins) or is_end(ins, this->end()));
300 assert(not starts_with(op.name(), "@"));
301 shape r = compute_shape(op, args);
302 auto result = impl->insert(ins, {op, r, std::move(args)});
303 instruction::backreference(result);
304 assert(result->valid(begin()));
305 return result;
306}
307
308instruction_ref module::add_instruction(const operation& op,
309 std::vector<instruction_ref> args,

Callers 15

TEST_CASEFunction · 0.80
waitMethod · 0.80
TEST_CASEFunction · 0.80
propagate_quantized_insFunction · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
propagate_broadcastsMethod · 0.80

Calls 8

endMethod · 0.95
is_endFunction · 0.85
starts_withFunction · 0.85
beginFunction · 0.85
compute_shapeFunction · 0.70
nameMethod · 0.45
insertMethod · 0.45
validMethod · 0.45

Tested by 3

TEST_CASEFunction · 0.64
waitMethod · 0.64
TEST_CASEFunction · 0.64