Validates correctness of tensor instructions.
| 231 | |
| 232 | // Validates correctness of tensor instructions. |
| 233 | spv_result_t TensorPass(ValidationState_t& _, const Instruction* inst) { |
| 234 | (void)_; |
| 235 | const spv::Op opcode = inst->opcode(); |
| 236 | switch (opcode) { |
| 237 | case spv::Op::OpTensorReadARM: |
| 238 | return ValidateTensorRead(_, inst); |
| 239 | case spv::Op::OpTensorWriteARM: |
| 240 | return ValidateTensorWrite(_, inst); |
| 241 | case spv::Op::OpTensorQuerySizeARM: |
| 242 | return ValidateTensorQuerySize(_, inst); |
| 243 | default: |
| 244 | break; |
| 245 | } |
| 246 | return SPV_SUCCESS; |
| 247 | } |
| 248 | |
| 249 | } // namespace val |
| 250 | } // namespace spvtools |
no test coverage detected