Returns the number of instruction words taken up by a tensor addressing operands argument and its implied operands.
| 2754 | // Returns the number of instruction words taken up by a tensor addressing |
| 2755 | // operands argument and its implied operands. |
| 2756 | int TensorAddressingOperandsNumWords(spv::TensorAddressingOperandsMask mask) { |
| 2757 | int result = 1; // Count the mask |
| 2758 | if ((mask & spv::TensorAddressingOperandsMask::TensorView) != |
| 2759 | spv::TensorAddressingOperandsMask::MaskNone) |
| 2760 | ++result; |
| 2761 | if ((mask & spv::TensorAddressingOperandsMask::DecodeFunc) != |
| 2762 | spv::TensorAddressingOperandsMask::MaskNone) |
| 2763 | ++result; |
| 2764 | return result; |
| 2765 | } |
| 2766 | |
| 2767 | spv_result_t ValidateCooperativeMatrixLoadStoreTensorNV( |
| 2768 | ValidationState_t& _, const Instruction* inst) { |
no outgoing calls
no test coverage detected