Lines Matching defs:resultID

256 LogicalResult Serializer::processDecorationAttr(Location loc, uint32_t resultID,
336 resultID, decoration,
346 resultID, decoration,
353 return emitDecoration(resultID, decoration, args);
356 LogicalResult Serializer::processDecoration(Location loc, uint32_t resultID,
368 return processDecorationAttr(loc, resultID, *decoration, attr.getValue());
371 LogicalResult Serializer::processName(uint32_t resultID, StringRef name) {
377 nameOperands.push_back(resultID);
385 Location loc, spirv::ArrayType type, uint32_t resultID) {
388 return emitDecoration(resultID, spirv::Decoration::ArrayStride, {stride});
395 Location loc, spirv::RuntimeArrayType type, uint32_t resultID) {
398 return emitDecoration(resultID, spirv::Decoration::ArrayStride, {stride});
497 Location loc, Type type, uint32_t resultID, spirv::Opcode &typeEnum,
569 return processTypeDecoration(loc, arrayType, resultID);
581 // 1. Prepare an OpTypeForwardPointer with resultID and the ptr storage
584 forwardPtrOperands.push_back(resultID);
606 {resultID, ptrType.getStorageClass()});
635 return processTypeDecoration(loc, runtimeArrayType, resultID);
651 if (failed(processName(resultID, structType.getIdentifier())))
670 if (failed(processMemberDecoration(resultID, offsetDecoration))) {
681 if (failed(processMemberDecoration(resultID, memberDecoration))) {
740 uint32_t resultID = 0;
743 resultID))) {
746 operands.push_back(resultID);
779 uint32_t resultID = 0;
783 resultID = prepareDenseElementsConstant(loc, constType, attr,
786 resultID = prepareArrayConstant(loc, constType, arrayAttr);
789 if (resultID == 0) {
794 constIDMap[valueAttr] = resultID;
795 return resultID;
805 uint32_t resultID = getNextID();
806 SmallVector<uint32_t, 4> operands = {typeID, resultID};
819 return resultID;
848 uint32_t resultID = getNextID();
849 SmallVector<uint32_t, 4> operands = {typeID, resultID};
864 return resultID;
897 auto resultID = getNextID();
903 encodeInstructionInto(typesGlobalValues, opcode, {typeID, resultID});
906 constIDMap[boolAttr] = resultID;
908 return resultID;
926 auto resultID = getNextID();
948 encodeInstructionInto(typesGlobalValues, opcode, {typeID, resultID, word});
963 {typeID, resultID, words.word1, words.word2});
977 constIDMap[intAttr] = resultID;
979 return resultID;
997 auto resultID = getNextID();
1006 encodeInstructionInto(typesGlobalValues, opcode, {typeID, resultID, word});
1013 {typeID, resultID, words.word1, words.word2});
1017 encodeInstructionInto(typesGlobalValues, opcode, {typeID, resultID, word});
1029 constIDMap[floatAttr] = resultID;
1031 return resultID;
1282 uint32_t resultID = 0;
1289 resultID = getNextID();
1290 operands.push_back(resultID);
1291 valueIDMap[op->getResult(0)] = resultID;
1310 if (failed(processDecoration(loc, resultID, attr)))