Lines Matching defs:word

58     std::uint32_t spirvbin_t::asOpCodeHash(unsigned word)
60 const spv::Op opCode = asOpCode(word);
66 offset += asId(word + 4); break;
307 std::string spirvbin_t::literalString(unsigned word) const
310 const spirword_t * pos = spv.data() + word;
315 spirword_t word = *pos;
317 char c = word & 0xff;
321 word >>= 8;
440 unsigned word = start+1;
444 typeId = asId(word++);
448 const spv::Id resultId = asId(word++);
531 int spirvbin_t::processInstruction(unsigned word, instfn_t instFn, idfn_t idFn)
533 const auto instructionStart = word;
535 const int nextInst = word++ + wordCount;
551 idFn(asId(word++));
556 idFn(asId(word++));
564 idFn(asId(word)); // Instruction set is an ID that also needs to be mapped
566 word += 2; // instruction set, and instruction from set
570 idFn(asId(word++)); // ID
583 // given as a literal in the 3rd word. We will switch over to pretending that the
589 opCode = asOpCode(word++); // this is the opcode embedded in the SpecConstantOp.
598 idBuffer[idBufferPos] = asId(word);
600 idFn(asId(word++));
605 idFn(asId(word++));
610 // if (opCode == spv::OpDecorate && asDecoration(word - 1) == spv::DecorationBuiltIn) {
611 // ++word;
614 // word += numOperands;
619 // word-2 is the position of the selector ID. OpSwitch Literals match its type.
620 // In case the IDs are currently being remapped, we get the word[-2] ID from
624 const unsigned numLiteralIdPairs = (nextInst-word) / (1+literalSize);
630 word += literalSize; // literal
631 idFn(asId(word++)); // label
641 const int stringWordCount = literalStringWords(literalString(word));
642 word += stringWordCount;
654 // Single word operands we simply ignore, as they hold no IDs
684 ++word;
709 for (unsigned word = begin; word < end; word = nextInst) {
710 nextInst = processInstruction(word, instFn, idFn);
778 const unsigned word = start + (spv::InstructionDesc[opCode].hasType() ? 2 : 1);
779 const spv::Id resId = asId(word);
1433 for (unsigned word = 0; word < unsigned(spv.size()); ++word) {
1434 while (strip_it != stripRange.end() && word >= strip_it->second)
1437 if (strip_it == stripRange.end() || word < strip_it->first || word >= strip_it->second)
1438 spv[strippedPos++] = spv[word];