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

Method remove_instructions

src/module.cpp:405–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405instruction_ref module::remove_instructions(instruction_ref first, instruction_ref last)
406{
407 if(first == last)
408 return first;
409 // TODO: Check every element
410 assert(has_instruction(first));
411 std::for_each(first, last, [&](instruction& ins) { ins.clear_arguments(); });
412 assert(std::all_of(first, last, [&](const instruction& ins) { return ins.outputs().empty(); }));
413 return impl->erase(first, last);
414}
415
416instruction_ref module::move_instruction(instruction_ref src, instruction_ref dst)
417{

Callers 5

applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
verify_reducedFunction · 0.80
trim_moduleFunction · 0.80

Calls 6

clear_argumentsMethod · 0.80
outputsMethod · 0.80
eraseMethod · 0.80
for_eachFunction · 0.50
all_ofFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected