Searched refs:wordCount (Results 1 – 6 of 6) sorted by relevance
60 uint32_t spirv::getPrefixedOpcode(uint32_t wordCount, spirv::Opcode opcode) { in getPrefixedOpcode() argument61 assert(((wordCount >> 16) == 0) && "word count out of range!"); in getPrefixedOpcode()62 return (wordCount << 16) | static_cast<uint32_t>(opcode); in getPrefixedOpcode()
91 auto wordCount = binary[currOffset] >> 16; in scanInstruction() local92 if (!wordCount || (currOffset + wordCount > binarySize)) in scanInstruction()98 begin + currOffset + wordCount); in scanInstruction()102 currOffset += wordCount; in scanInstruction()
70 uint32_t wordCount = 1 + operands.size(); in addInstruction() local71 binary.push_back(spirv::getPrefixedOpcode(wordCount, op)); in addInstruction()
39 uint32_t getPrefixedOpcode(uint32_t wordCount, spirv::Opcode opcode);
90 uint32_t wordCount = binary[curOffset] >> 16; in sliceInstruction() local92 if (wordCount == 0) in sliceInstruction()95 uint32_t nextOffset = curOffset + wordCount; in sliceInstruction()100 operands = binary.slice(curOffset + 1, wordCount - 1); in sliceInstruction()
77 uint32_t wordCount = 1 + operands.size(); in encodeInstructionInto() local78 binary.push_back(spirv::getPrefixedOpcode(wordCount, op)); in encodeInstructionInto()1201 uint32_t wordCount = 3 + params.size(); in emitDecoration() local1203 spirv::getPrefixedOpcode(wordCount, spirv::Opcode::OpDecorate)); in emitDecoration()