MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / GraphPass

Function GraphPass

source/val/validate_graph.cpp:524–544  ·  view source on GitHub ↗

Validates correctness of graph instructions.

Source from the content-addressed store, hash-verified

522
523// Validates correctness of graph instructions.
524spv_result_t GraphPass(ValidationState_t& _, const Instruction* inst) {
525 switch (inst->opcode()) {
526 case spv::Op::OpTypeGraphARM:
527 return ValidateGraphType(_, inst);
528 case spv::Op::OpGraphConstantARM:
529 return ValidateGraphConstant(_, inst);
530 case spv::Op::OpGraphEntryPointARM:
531 return ValidateGraphEntryPoint(_, inst);
532 case spv::Op::OpGraphARM:
533 return ValidateGraph(_, inst);
534 case spv::Op::OpGraphInputARM:
535 return ValidateGraphInput(_, inst);
536 case spv::Op::OpGraphSetOutputARM:
537 return ValidateGraphSetOutput(_, inst);
538 case spv::Op::OpGraphEndARM:
539 return ValidateGraphEnd(_, inst);
540 default:
541 break;
542 }
543 return SPV_SUCCESS;
544}
545
546} // namespace val
547} // namespace spvtools

Calls 8

ValidateGraphTypeFunction · 0.85
ValidateGraphConstantFunction · 0.85
ValidateGraphEntryPointFunction · 0.85
ValidateGraphFunction · 0.85
ValidateGraphInputFunction · 0.85
ValidateGraphSetOutputFunction · 0.85
ValidateGraphEndFunction · 0.85
opcodeMethod · 0.45

Tested by

no test coverage detected