Lines Matching refs:opCode
121 void disassembleInstruction(Id resultId, Id typeId, Op opCode, int numOperands);
185 Op opCode = (Op)(firstWord & OpCodeMask); in processInstructions() local
198 if (InstructionDesc[opCode].hasType()) { in processInstructions()
205 if (InstructionDesc[opCode].hasResult()) { in processInstructions()
218 disassembleInstruction(resultId, typeId, opCode, numOperands); in processInstructions()
337 void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode, int numOperands) in disassembleInstruction() argument
341 out << (OpcodeString(opCode) + 2); // leave out the "Op" in disassembleInstruction()
343 if (opCode == OpLoopMerge || opCode == OpSelectionMerge) in disassembleInstruction()
345 else if (opCode == OpBranchConditional || opCode == OpSwitch) { in disassembleInstruction()
350 } else if (opCode == OpExtInstImport) { in disassembleInstruction()
355 switch (opCode) { in disassembleInstruction()
416 if (opCode == OpTypeImage) { in disassembleInstruction()
437 for (int op = 0; op < InstructionDesc[opCode].operands.getNum() && numOperands > 0; ++op) { in disassembleInstruction()
439 OperandClass operandClass = InstructionDesc[opCode].operands.getClass(op); in disassembleInstruction()
447 if (opCode == OpName) in disassembleInstruction()
460 if ((opCode == OpDecorate && stream[word - 1] == DecorationBuiltIn) || in disassembleInstruction()
461 (opCode == OpMemberDecorate && stream[word - 1] == DecorationBuiltIn)) { in disassembleInstruction()
497 if (opCode == OpExtInst) { in disassembleInstruction()