Lines Matching defs:opcode
535 Id Builder::makeGenericType(spv::Op opcode, std::vector<spv::IdImmediate>& operands)
539 for (int t = 0; t < (int)groupedTypes[opcode].size(); ++t) {
540 type = groupedTypes[opcode][t];
553 type = new Instruction(getUniqueId(), NoType, opcode);
560 groupedTypes[opcode].push_back(type);
1451 Id Builder::findScalarConstant(Op typeClass, Op opcode, Id typeId, unsigned value)
1456 if (constant->getOpCode() == opcode &&
1466 Id Builder::findScalarConstant(Op typeClass, Op opcode, Id typeId, unsigned v1, unsigned v2)
1471 if (constant->getOpCode() == opcode &&
1481 // Return true if consuming 'opcode' means consuming a constant.
1484 bool Builder::isConstantOpCode(Op opcode) const
1486 switch (opcode) {
1505 // Return true if consuming 'opcode' means consuming a specialization constant.
1506 bool Builder::isSpecConstantOpCode(Op opcode) const
1508 switch (opcode) {
1520 bool Builder::isRayTracingOpCode(Op opcode) const
1522 switch (opcode) {
1559 Op opcode = specConstant ? (b ? OpSpecConstantTrue : OpSpecConstantFalse) : (b ? OpConstantTrue : OpConstantFalse);
1567 if (constant->getTypeId() == typeId && constant->getOpCode() == opcode)
1576 Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
1586 Op opcode = specConstant ? OpSpecConstant : OpConstant;
1591 Id existing = findScalarConstant(OpTypeInt, opcode, typeId, value);
1596 Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
1607 Op opcode = specConstant ? OpSpecConstant : OpConstant;
1615 Id existing = findScalarConstant(OpTypeInt, opcode, typeId, op1, op2);
1620 Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
1632 Op opcode = specConstant ? OpSpecConstant : OpConstant;
1641 Id existing = findScalarConstant(OpTypeFloat, opcode, typeId, value);
1646 Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
1657 Op opcode = specConstant ? OpSpecConstant : OpConstant;
1668 Id existing = findScalarConstant(OpTypeFloat, opcode, typeId, op1, op2);
1673 Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
1685 Op opcode = specConstant ? OpSpecConstant : OpConstant;
1697 Id existing = findScalarConstant(OpTypeFloat, opcode, typeId, value);
1702 Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
1799 Op opcode = specConstant ? OpSpecConstantComposite : OpConstantComposite;
1827 Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
2326 void Builder::makeStatementTerminator(spv::Op opcode, const char *name)
2328 buildPoint->addInstruction(std::unique_ptr<Instruction>(new Instruction(opcode)));
2333 void Builder::makeStatementTerminator(spv::Op opcode, const std::vector<Id>& operands, const char* name)
2338 createNoResultOp(opcode, operands);
2600 // An opcode that has no operands, no result id, and no type
2607 // An opcode that has one id operand, no result id, and no type
2615 // An opcode that has one or more operands, no result id, and no type
2625 // An opcode that has multiple operands, no result id, and no type
2655 // An opcode that has one operands, a result id, and a type