| 203 | } |
| 204 | |
| 205 | spv_result_t ValidateGraph(ValidationState_t& _, const Instruction* inst) { |
| 206 | // Result Type must be an OpTypeGraphARM |
| 207 | if (!IsGraphType(_, inst->type_id())) { |
| 208 | return _.diag(SPV_ERROR_INVALID_DATA, inst) |
| 209 | << spvOpcodeString(inst->opcode()) |
| 210 | << " Result Type must be an OpTypeGraphARM."; |
| 211 | } |
| 212 | |
| 213 | return SPV_SUCCESS; |
| 214 | } |
| 215 | |
| 216 | spv_result_t ValidateGraphInput(ValidationState_t& _, const Instruction* inst) { |
| 217 | // Check type of InputIndex |
no test coverage detected