Lines Matching refs:num_words
84 spv_result_t parse(const uint32_t* words, size_t num_words,
154 << ((_.word_index < _.num_words) ? ": truncated " in exhaustedInputDiagnostic()
165 assert(index < _.num_words); in peekAt()
189 num_words(num_words_arg), in State()
203 size_t num_words; // Number of words in the module. member
229 spv_result_t Parser::parse(const uint32_t* words, size_t num_words, in parse() argument
231 _ = State(words, num_words, diagnostic_arg); in parse()
244 if (_.num_words < SPV_INDEX_INSTRUCTION) in parseModule()
245 return diagnostic() << "Module has incomplete header: only " << _.num_words in parseModule()
249 spv_const_binary_t binary{_.words, _.num_words}; in parseModule()
274 while (_.word_index < _.num_words) in parseModule()
278 assert(_.word_index == _.num_words); in parseModule()
302 assert(_.word_index < _.num_words); in parseInstruction()
389 inst.num_words = inst_word_count; in parseInstruction()
416 parsed_operand.num_words = 1; in parseOperand()
428 if (_.word_index >= _.num_words) in parseOperand()
585 sizeof(uint32_t) * (_.num_words - _.word_index); in parseOperand()
605 parsed_operand.num_words = uint16_t(string_num_words); in parseOperand()
731 const size_t index_after_operand = _.word_index + parsed_operand.num_words; in parseOperand()
737 if (_.num_words < index_after_operand) in parseOperand()
778 parsed_operand->num_words = static_cast<uint16_t>((info.bit_width + 31) / 32); in setNumericTypeInfoForType()
803 const uint32_t* code, const size_t num_words, in spvBinaryParse() argument
813 return parser.parse(code, num_words, diagnostic); in spvBinaryParse()