• Home
  • Raw
  • Download

Lines Matching refs:OC

67 bool isSpecConstantOpAllowedOp(Op OC);
206 SPIRVInstTemplateBase(Op OC = OpNop)
207 :SPIRVInstruction(OC), HasVariWC(false){ in SPIRVInstruction() argument
225 virtual void initImpl(Op OC, bool HasId = true, SPIRVWord WC = 0,
228 OpCode = OC;
392 Op OC = OpNop,
407 this->initImpl(OC, HasId, WC, HasVariableWC, Literal1, Literal2, Literal3); in init()
655 template<Op OC>
656 class SPIRVBinaryInst:public SPIRVInstTemplate<SPIRVBinary, OC, true, 5, false> {
711 static const Op OC = OpReturnValue;
714 :SPIRVInstruction(2, OC, TheBB), ReturnValueId(TheReturnValue->getId()){
720 SPIRVReturnValue():SPIRVInstruction(OC), ReturnValueId(SPIRVID_INVALID) {
741 static const Op OC = OpBranch;
744 :SPIRVInstruction(2, OC, TheBB), TargetLabelId(TheTargetLabel->getId()) {
749 SPIRVBranch():SPIRVInstruction(OC), TargetLabelId(SPIRVID_INVALID) {
761 assert(OpCode == OC);
769 static const Op OC = OpBranchConditional;
773 :SPIRVInstruction(4, OC, TheBB), ConditionId(TheCondition->getId()),
780 :SPIRVInstruction(6, OC, TheBB), ConditionId(TheCondition->getId()),
788 SPIRVBranchConditional():SPIRVInstruction(OC), ConditionId(SPIRVID_INVALID),
812 assert(OpCode == OC);
826 static const Op OC = OpPhi;
830 :SPIRVInstruction(ThePairs.size() + FixedWordCount, OC, TheType, TheId, BB){
835 SPIRVPhi():SPIRVInstruction(OC) {}
878 assert(OpCode == OC);
920 template<Op OC>
921 class SPIRVCmpInst:public SPIRVInstTemplate<SPIRVCompare, OC, true, 5, false> {
992 static const Op OC = OpSwitch;
997 :SPIRVInstruction(ThePairs.size() * 2 + FixedWordCount, OC, BB),
1006 SPIRVSwitch():SPIRVInstruction(OC), Select(SPIRVWORD_MAX),
1035 assert(OpCode == OC);
1076 template<Op OC>
1077 class SPIRVUnaryInst:public SPIRVInstTemplate<SPIRVUnary, OC, true, 4, false> {
1125 template<Op OC, unsigned FixedWC>
1127 :public SPIRVInstTemplate<SPIRVAccessChainBase, OC, true, FixedWC, true> {
1137 template<Op OC, SPIRVWord FixedWordCount>
1142 :SPIRVInstruction(TheArgs.size() + FixedWordCount, OC, TheType, TheId, BB),
1149 :SPIRVInstruction(TheArgs.size() + FixedWordCount, OC, TheType, TheId, BB) {
1154 SPIRVFunctionCallGeneric():SPIRVInstruction(OC) {}
1287 const static Op OC = OpCompositeExtract;
1291 SPIRVInstruction(TheIndices.size() + 4, OC, TheType, TheId, TheBB),
1297 SPIRVCompositeExtract():SPIRVInstruction(OC), Composite(SPIRVID_INVALID){}
1321 const static Op OC = OpCompositeInsert;
1327 SPIRVInstruction(TheIndices.size() + FixedWordCount, OC,
1335 SPIRVCompositeInsert():SPIRVInstruction(OC), Object(SPIRVID_INVALID),
1351 assert(OpCode == OC);
1365 const static Op OC = OpCopyObject;
1370 SPIRVInstruction(4, OC, TheType, TheId, TheBB),
1376 SPIRVCopyObject() :SPIRVInstruction(OC), Operand(SPIRVID_INVALID) {}
1392 const static Op OC = OpCopyMemory;
1398 SPIRVInstruction(FixedWords + TheMemoryAccess.size(), OC, TheBB),
1408 SPIRVCopyMemory() :SPIRVInstruction(OC), SPIRVMemoryAccess(),
1448 const static Op OC = OpCopyMemorySized;
1454 SPIRVInstruction(FixedWords + TheMemoryAccess.size(), OC, TheBB),
1464 SPIRVCopyMemorySized() :SPIRVInstruction(OC), SPIRVMemoryAccess(),
1501 const static Op OC = OpVectorExtractDynamic;
1505 :SPIRVInstruction(5, OC, TheVector->getType()->getVectorComponentType(),
1512 SPIRVVectorExtractDynamic():SPIRVInstruction(OC), VectorId(SPIRVID_INVALID),
1531 const static Op OC = OpVectorInsertDynamic;
1535 :SPIRVInstruction(6, OC, TheVector->getType()->getVectorComponentType(),
1542 SPIRVVectorInsertDynamic() :SPIRVInstruction(OC), VectorId(SPIRVID_INVALID),
1563 const static Op OC = OpVectorShuffle;
1569 SPIRVInstruction(TheComponents.size() + FixedWordCount, OC, TheType,
1577 SPIRVVectorShuffle():SPIRVInstruction(OC), Vector1(SPIRVID_INVALID),
1591 assert(OpCode == OC);
1612 static const Op OC = OpControlBarrier;
1617 :SPIRVInstruction(4, OC, TheBB), ExecScope(TheScope->getId()),
1623 SPIRVControlBarrier():SPIRVInstruction(OC), ExecScope(ScopeInvocation) {
1643 assert(OpCode == OC);
1654 static const Op OC = OpGroupAsyncCopy;
1660 :SPIRVInstruction(WC, OC, TheEvent->getType(), TheId, TheBB),
1668 SPIRVGroupAsyncCopy():SPIRVInstruction(OC), ExecScope(SPIRVID_INVALID),
1693 assert(OpCode == OC);