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

Method validate

src/module.cpp:824–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824instruction_ref module::validate() const
825{
826 return std::find_if(
827 impl->instructions.begin(), impl->instructions.end(), [&](const instruction& i) {
828 auto inputs = i.inputs();
829 bool check_order = std::all_of(
830 inputs.begin(), inputs.end(), [&](auto in) { return has_instruction(in); });
831 return not i.valid(impl->instructions.begin(), check_order);
832 });
833}
834
835static bool is_borrowed(instruction_ref ins)
836{

Callers 4

hoist_external_inputsMethod · 0.95
validate_passFunction · 0.45
run_passMethod · 0.45
module.cppFile · 0.45

Calls 6

find_ifFunction · 0.50
all_ofFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
inputsMethod · 0.45
validMethod · 0.45

Tested by

no test coverage detected