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

Function FunctionPass

source/val/validate_function.cpp:384–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382} // namespace
383
384spv_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

Calls 5

ValidateFunctionFunction · 0.85
ValidateFunctionCallFunction · 0.85
opcodeMethod · 0.45

Tested by

no test coverage detected