Lines Matching refs:operands
77 ArrayRef<uint32_t> &operands, in sliceInstruction() argument
100 operands = binary.slice(curOffset + 1, wordCount - 1); in sliceInstruction()
106 spirv::Opcode opcode, ArrayRef<uint32_t> operands, bool deferInstructions) { in processInstruction() argument
114 return processCapability(operands); in processInstruction()
116 return processExtension(operands); in processInstruction()
118 return processExtInst(operands); in processInstruction()
120 return processExtInstImport(operands); in processInstruction()
122 return processMemberName(operands); in processInstruction()
124 return processMemoryModel(operands); in processInstruction()
128 deferredInstructions.emplace_back(opcode, operands); in processInstruction()
134 return processGlobalVariable(operands); in processInstruction()
138 return processDebugLine(operands); in processInstruction()
143 return processName(operands); in processInstruction()
145 return processDebugString(operands); in processInstruction()
167 return processType(opcode, operands); in processInstruction()
169 return processTypeForwardPointer(operands); in processInstruction()
171 return processConstant(operands, /*isSpec=*/false); in processInstruction()
173 return processConstant(operands, /*isSpec=*/true); in processInstruction()
175 return processConstantComposite(operands); in processInstruction()
177 return processSpecConstantComposite(operands); in processInstruction()
179 return processSpecConstantOperation(operands); in processInstruction()
181 return processConstantBool(/*isTrue=*/true, operands, /*isSpec=*/false); in processInstruction()
183 return processConstantBool(/*isTrue=*/true, operands, /*isSpec=*/true); in processInstruction()
185 return processConstantBool(/*isTrue=*/false, operands, /*isSpec=*/false); in processInstruction()
187 return processConstantBool(/*isTrue=*/false, operands, /*isSpec=*/true); in processInstruction()
189 return processConstantNull(operands); in processInstruction()
191 return processDecoration(operands); in processInstruction()
193 return processMemberDecoration(operands); in processInstruction()
195 return processFunction(operands); in processInstruction()
197 return processLabel(operands); in processInstruction()
199 return processBranch(operands); in processInstruction()
201 return processBranchConditional(operands); in processInstruction()
203 return processSelectionMerge(operands); in processInstruction()
205 return processLoopMerge(operands); in processInstruction()
207 return processPhi(operands); in processInstruction()
209 return processUndef(operands); in processInstruction()
213 return dispatchToAutogenDeserialization(opcode, operands); in processInstruction()
246 SmallVector<Value, 4> operands; in processOpWithoutGrammarAttr() local
256 operands.push_back(arg); in processOpWithoutGrammarAttr()
282 opState.addOperands(operands); in processOpWithoutGrammarAttr()
296 LogicalResult spirv::Deserializer::processUndef(ArrayRef<uint32_t> operands) { in processUndef() argument
297 if (operands.size() != 2) { in processUndef()
300 auto type = getType(operands[0]); in processUndef()
304 undefMap[operands[1]] = type; in processUndef()
308 LogicalResult spirv::Deserializer::processExtInst(ArrayRef<uint32_t> operands) { in processExtInst() argument
309 if (operands.size() < 4) { in processExtInst()
314 if (!extendedInstSets.count(operands[2])) { in processExtInst()
318 slicedOperands.append(operands.begin(), std::next(operands.begin(), 2)); in processExtInst()
319 slicedOperands.append(std::next(operands.begin(), 4), operands.end()); in processExtInst()
321 extendedInstSets[operands[2]], operands[3], slicedOperands); in processExtInst()
411 Deserializer::processOp<spirv::ControlBarrierOp>(ArrayRef<uint32_t> operands) { in processOp() argument
412 if (operands.size() != 3) { in processOp()
420 for (auto operand : operands) { in processOp()
440 Deserializer::processOp<spirv::FunctionCallOp>(ArrayRef<uint32_t> operands) { in processOp() argument
441 if (operands.size() < 3) { in processOp()
446 Type resultType = getType(operands[0]); in processOp()
449 << operands[0]; in processOp()
456 auto resultID = operands[1]; in processOp()
457 auto functionID = operands[2]; in processOp()
462 for (auto operand : llvm::drop_begin(operands, 3)) { in processOp()
482 Deserializer::processOp<spirv::MemoryBarrierOp>(ArrayRef<uint32_t> operands) { in processOp() argument
483 if (operands.size() != 2) { in processOp()
489 for (auto operand : operands) { in processOp()
510 SmallVector<Value, 4> operands; in processOp() local
521 operands.push_back(arg); in processOp()
533 operands.push_back(arg); in processOp()
570 opBuilder.create<spirv::CopyMemoryOp>(loc, resultTypes, operands, attributes); in processOp()