Validates correctness of graph instructions.
| 522 | |
| 523 | // Validates correctness of graph instructions. |
| 524 | spv_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 |
no test coverage detected