Lines Matching refs:inst_offset
111 spv_result_t parseOperand(size_t inst_offset, spv_parsed_instruction_t* inst,
128 void recordNumberType(size_t inst_offset,
149 spv_result_t exhaustedInputDiagnostic(size_t inst_offset, SpvOp opcode, in exhaustedInputDiagnostic() argument
153 << inst_offset in exhaustedInputDiagnostic()
157 << _.word_index - inst_offset << "."; in exhaustedInputDiagnostic()
316 const size_t inst_offset = _.word_index; in parseInstruction() local
331 while (_.word_index < inst_offset + inst_word_count) { in parseInstruction()
332 const uint16_t inst_word_index = uint16_t(_.word_index - inst_offset); in parseInstruction()
335 << " starting at word " << inst_offset in parseInstruction()
346 parseOperand(inst_offset, &inst, type, &_.endian_converted_words, in parseInstruction()
356 << inst_offset << ": expected more operands after " in parseInstruction()
360 if ((inst_offset + inst_word_count) != _.word_index) { in parseInstruction()
362 << " starting at word " << inst_offset in parseInstruction()
364 << " words, but found " << _.word_index - inst_offset in parseInstruction()
378 recordNumberType(inst_offset, &inst); in parseInstruction()
387 inst.words = _.words + inst_offset; in parseInstruction()
405 spv_result_t Parser::parseOperand(size_t inst_offset, in parseOperand() argument
414 parsed_operand.offset = uint16_t(_.word_index - inst_offset); in parseOperand()
429 return exhaustedInputDiagnostic(inst_offset, opcode, type); in parseOperand()
544 const uint32_t selector_id = peekAt(inst_offset + 1); in parseOperand()
591 return exhaustedInputDiagnostic(inst_offset, opcode, type); in parseOperand()
738 return exhaustedInputDiagnostic(inst_offset, opcode, type); in parseOperand()
782 void Parser::recordNumberType(size_t inst_offset, in recordNumberType() argument
788 const bool is_signed = peekAt(inst_offset + 3) != 0; in recordNumberType()
790 info.bit_width = peekAt(inst_offset + 2); in recordNumberType()
793 info.bit_width = peekAt(inst_offset + 2); in recordNumberType()