Lines Matching defs:words
98 return emitError(unknownLoc, "insufficient words for the last instruction");
218 ArrayRef<uint32_t> words, StringRef opName, bool hasResult,
225 if (wordIndex >= words.size())
231 auto type = getType(words[wordIndex]);
234 << words[wordIndex];
239 if (wordIndex >= words.size())
243 valueID = words[wordIndex];
252 for (; operandIndex < numOperands && wordIndex < words.size();
254 auto arg = getValue(words[wordIndex]);
256 return emitError(unknownLoc, "unknown result <id>: ") << words[wordIndex];
266 if (wordIndex != words.size()) {
270 << opName << "; only " << wordIndex << " of " << words.size()
330 Deserializer::processOp<spirv::EntryPointOp>(ArrayRef<uint32_t> words) {
332 if (wordIndex >= words.size()) {
337 context, static_cast<spirv::ExecutionModel>(words[wordIndex++]));
338 if (wordIndex >= words.size()) {
342 auto fnID = words[wordIndex++];
344 auto fnName = decodeStringLiteral(words, wordIndex);
362 while (wordIndex < words.size()) {
363 auto arg = getGlobalVariable(words[wordIndex]);
366 << words[wordIndex] << " while decoding OpEntryPoint";
379 Deserializer::processOp<spirv::ExecutionModeOp>(ArrayRef<uint32_t> words) {
381 if (wordIndex >= words.size()) {
386 auto fnID = words[wordIndex++];
392 if (wordIndex >= words.size()) {
396 context, static_cast<spirv::ExecutionMode>(words[wordIndex++]));
400 while (wordIndex < words.size()) {
401 attrListElems.push_back(opBuilder.getI32IntegerAttr(words[wordIndex++]));
454 Deserializer::processOp<spirv::CopyMemoryOp>(ArrayRef<uint32_t> words) {
460 if (wordIndex < words.size()) {
461 auto arg = getValue(words[wordIndex]);
465 << words[wordIndex];
472 if (wordIndex < words.size()) {
473 auto arg = getValue(words[wordIndex]);
477 << words[wordIndex];
486 if (wordIndex < words.size()) {
487 auto attrValue = words[wordIndex++];
495 if (isAlignedAttr && wordIndex < words.size()) {
497 "alignment", opBuilder.getI32IntegerAttr(words[wordIndex++])));
500 if (wordIndex < words.size()) {
501 auto attrValue = words[wordIndex++];
507 if (wordIndex < words.size()) {
509 "source_alignment", opBuilder.getI32IntegerAttr(words[wordIndex++])));
512 if (wordIndex != words.size()) {
516 << wordIndex << " of " << words.size() << " processed";
527 ArrayRef<uint32_t> words) {
528 if (words.size() != 4) {
530 "expected 4 words in GenericCastToPtrExplicitOp"
532 << words.size();
537 auto type = getType(words[0]);
540 return emitError(unknownLoc, "unknown type result <id> : ") << words[0];
543 valueID = words[1];
545 auto arg = getValue(words[2]);
547 return emitError(unknownLoc, "unknown result <id> : ") << words[2];