| 382 | } // namespace |
| 383 | |
| 384 | spv_result_t FunctionPass(ValidationState_t& _, const Instruction* inst) { |
| 385 | switch (inst->opcode()) { |
| 386 | case spv::Op::OpFunction: |
| 387 | if (auto error = ValidateFunction(_, inst)) return error; |
| 388 | break; |
| 389 | case spv::Op::OpFunctionParameter: |
| 390 | if (auto error = ValidateFunctionParameter(_, inst)) return error; |
| 391 | break; |
| 392 | case spv::Op::OpFunctionCall: |
| 393 | if (auto error = ValidateFunctionCall(_, inst)) return error; |
| 394 | break; |
| 395 | case spv::Op::OpCooperativeMatrixPerElementOpNV: |
| 396 | if (auto error = ValidateCooperativeMatrixPerElementOp(_, inst)) |
| 397 | return error; |
| 398 | break; |
| 399 | default: |
| 400 | break; |
| 401 | } |
| 402 | |
| 403 | return SPV_SUCCESS; |
| 404 | } |
| 405 | |
| 406 | } // namespace val |
| 407 | } // namespace spvtools |
no test coverage detected