Home | History | Annotate | Download | only in SPIRV

Lines Matching defs:opCode

116     void disassembleInstruction(Id resultId, Id typeId, Op opCode, int numOperands);
177 // Instruction wordCount and opcode
180 Op opCode = (Op)(firstWord & OpCodeMask);
193 if (InstructionDesc[opCode].hasType()) {
200 if (InstructionDesc[opCode].hasResult()) {
213 disassembleInstruction(resultId, typeId, opCode, numOperands);
332 void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode, int numOperands)
334 // Process the opcode
336 out << (OpcodeString(opCode) + 2); // leave out the "Op"
338 if (opCode == OpLoopMerge || opCode == OpSelectionMerge)
340 else if (opCode == OpBranchConditional || opCode == OpSwitch) {
345 } else if (opCode == OpExtInstImport) {
350 switch (opCode) {
390 if (opCode == OpTypeImage) {
411 for (int op = 0; op < InstructionDesc[opCode].operands.getNum() && numOperands > 0; ++op) {
413 OperandClass operandClass = InstructionDesc[opCode].operands.getClass(op);
421 if (opCode == OpName)
434 if ((opCode == OpDecorate && stream[word - 1] == DecorationBuiltIn) ||
435 (opCode == OpMemberDecorate && stream[word - 1] == DecorationBuiltIn)) {
471 if (opCode == OpExtInst) {