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

Method get_returns

src/module.cpp:816–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814}
815
816std::vector<instruction_ref> module::get_returns() const
817{
818 auto last = std::prev(this->end());
819 if(last->name() == "@return")
820 return last->inputs();
821 return {last};
822}
823
824instruction_ref module::validate() const
825{

Callers 9

TEST_CASEFunction · 0.80
append_pointwise_moduleFunction · 0.80
create_output_namesFunction · 0.80
insert_copyFunction · 0.80
applyMethod · 0.80
applyMethod · 0.80
parseMethod · 0.80
modify_bodyMethod · 0.80
make_standard_returnMethod · 0.80

Calls 3

endMethod · 0.95
nameMethod · 0.45
inputsMethod · 0.45

Tested by

no test coverage detected