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

Method insert_end

src/module.cpp:717–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715instruction_ref module::begin() const { return impl->instructions.begin(); }
716instruction_ref module::end() const { return impl->instructions.end(); }
717instruction_ref module::insert_end() const
718{
719 auto e = impl->instructions.end();
720 if(impl->instructions.empty())
721 return e;
722 auto last_ins = std::prev(e);
723 if(last_ins->name() == "@return")
724 return last_ins;
725 return e;
726}
727
728std::vector<shape> module::get_output_shapes() const
729{

Callers 2

add_instructionMethod · 0.95
add_instructionsMethod · 0.95

Calls 3

endMethod · 0.45
emptyMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected