Lines Matching refs:inst_offset
112 // starting at inst_offset words into the SPIR-V binary.
121 spv_result_t parseOperand(size_t inst_offset, spv_parsed_instruction_t* inst,
138 void recordNumberType(size_t inst_offset,
159 spv_result_t exhaustedInputDiagnostic(size_t inst_offset, spv::Op opcode,
163 << inst_offset
167 << _.word_index - inst_offset << ".";
326 const size_t inst_offset = _.word_index;
341 while (_.word_index < inst_offset + inst_word_count) {
342 const uint16_t inst_word_index = uint16_t(_.word_index - inst_offset);
345 << " starting at word " << inst_offset
356 parseOperand(inst_offset, &inst, type, &_.endian_converted_words,
366 << inst_offset << ": expected more operands after "
370 if ((inst_offset + inst_word_count) != _.word_index) {
372 << " starting at word " << inst_offset
374 << " words, but found " << _.word_index - inst_offset
388 recordNumberType(inst_offset, &inst);
397 inst.words = _.words + inst_offset;
415 spv_result_t Parser::parseOperand(size_t inst_offset,
424 parsed_operand.offset = uint16_t(_.word_index - inst_offset);
439 return exhaustedInputDiagnostic(inst_offset, opcode, type);
562 const uint32_t selector_id = peekAt(inst_offset + 1);
603 return exhaustedInputDiagnostic(inst_offset, opcode, type);
772 return exhaustedInputDiagnostic(inst_offset, opcode, type);
816 void Parser::recordNumberType(size_t inst_offset,
822 const bool is_signed = peekAt(inst_offset + 3) != 0;
824 info.bit_width = peekAt(inst_offset + 2);
827 info.bit_width = peekAt(inst_offset + 2);