Lines Matching defs:words
826 /// generated code reads the `words` of the serialized instruction at
831 StringRef words, StringRef wordIndex,
840 baseEnum.getEnumClassName(), words, wordIndex);
849 baseEnum.getEnumClassName(), words, wordIndex);
852 os << tabs << formatv("while ({0} < {1}.size()) {{\n", wordIndex, words);
858 words, wordIndex);
868 attrList, attrName, words, wordIndex);
873 attrList, attrName, words, wordIndex);
884 /// `words`[`wordIndex`], the SSA ID for the result at position `wordIndex` + 1
888 StringRef tabs, StringRef words,
895 os << tabs << formatv(" if ({0} >= {1}.size()) {{\n", wordIndex, words);
902 os << tabs << formatv(" auto ty = getType({0}[{1}]);\n", words, wordIndex);
908 words, wordIndex);
912 os << tabs << formatv(" if ({0} >= {1}.size()) {{\n", wordIndex, words);
920 os << tabs << formatv("{0} = {1}[{2}++];\n", valueID, words, wordIndex);
927 /// `os`. The generated code reads the `words` of the binary instruction, from
932 StringRef tabs, StringRef words,
946 << formatv("for (; {0} < {1}.size(); ++{0})", wordIndex, words);
948 os << tabs << formatv("if ({0} < {1}.size())", wordIndex, words);
952 << formatv(" auto arg = getValue({0}[{1}]);\n", words, wordIndex);
958 words, wordIndex);
966 os << tabs << formatv("if ({0} < {1}.size()) {{\n", wordIndex, words);
971 loc, newtabs, attributes, attr->name, words, wordIndex, os);
976 os << tabs << formatv("if ({0} != {1}.size()) {{\n", wordIndex, words);
982 op.getQualCppClassName(), wordIndex, words);
1012 StringRef resultTypes("resultTypes"), valueID("valueID"), words("words"),
1020 op.getQualCppClassName(), words);
1026 words, op.getOperationName(),
1036 emitResultDeserialization(op, record->getLoc(), " ", words, wordIndex,
1042 emitOperandDeserialization(op, record->getLoc(), " ", words, wordIndex,
1069 static void initDispatchDeserializationFn(StringRef opcode, StringRef words,
1074 opcode, words);
1081 StringRef tabs, StringRef words,
1088 words);
1115 StringRef words,
1120 extensionSetName, instructionID, words);
1126 instructionID("instructionID"), words("words");
1138 initExtendedSetDeserializationDispatch(extensionSetName, instructionID, words,
1158 op.getQualCppClassName(), words);
1193 StringRef opcode("opcode"), words("words");
1197 initDispatchDeserializationFn(opcode, words, dDesFn);
1208 emitDeserializationDispatch(op, def, " ", words, dDesFn);