• Home
  • Raw
  • Download

Lines Matching refs:inst_offset

101   spv_result_t parseOperand(size_t inst_offset, spv_parsed_instruction_t* inst,
118 void recordNumberType(size_t inst_offset,
139 spv_result_t exhaustedInputDiagnostic(size_t inst_offset, SpvOp opcode, in exhaustedInputDiagnostic() argument
143 << inst_offset in exhaustedInputDiagnostic()
147 << _.word_index - inst_offset << "."; in exhaustedInputDiagnostic()
306 const size_t inst_offset = _.word_index; in parseInstruction() local
321 while (_.word_index < inst_offset + inst_word_count) { in parseInstruction()
322 const uint16_t inst_word_index = uint16_t(_.word_index - inst_offset); in parseInstruction()
325 << " starting at word " << inst_offset in parseInstruction()
336 parseOperand(inst_offset, &inst, type, &_.endian_converted_words, in parseInstruction()
346 << inst_offset << ": expected more operands after " in parseInstruction()
350 if ((inst_offset + inst_word_count) != _.word_index) { in parseInstruction()
352 << " starting at word " << inst_offset in parseInstruction()
354 << " words, but found " << _.word_index - inst_offset in parseInstruction()
368 recordNumberType(inst_offset, &inst); in parseInstruction()
377 inst.words = _.words + inst_offset; in parseInstruction()
395 spv_result_t Parser::parseOperand(size_t inst_offset, in parseOperand() argument
404 parsed_operand.offset = uint16_t(_.word_index - inst_offset); in parseOperand()
419 return exhaustedInputDiagnostic(inst_offset, opcode, type); in parseOperand()
521 const uint32_t selector_id = peekAt(inst_offset + 1); in parseOperand()
568 return exhaustedInputDiagnostic(inst_offset, opcode, type); in parseOperand()
703 return exhaustedInputDiagnostic(inst_offset, opcode, type); in parseOperand()
747 void Parser::recordNumberType(size_t inst_offset, in recordNumberType() argument
753 const bool is_signed = peekAt(inst_offset + 3) != 0; in recordNumberType()
755 info.bit_width = peekAt(inst_offset + 2); in recordNumberType()
758 info.bit_width = peekAt(inst_offset + 2); in recordNumberType()