Lines Matching refs:addInstruction
269 virtual SPIRVInstruction *addInstruction(SPIRVInstruction *Inst,
932 return BB->addInstruction(new SPIRVStore(Target->getId(), in addStoreInst()
940 return BB->addInstruction(new SPIRVSwitch(Select, Default, Pairs, BB)); in addSwitchInst()
954 SPIRVModuleImpl::addInstruction(SPIRVInstruction *Inst, SPIRVBasicBlock *BB) { in addInstruction() function in SPIRV::SPIRVModuleImpl
956 return BB->addInstruction(Inst); in addInstruction()
965 return addInstruction(new SPIRVLoad(getId(), Source->getId(), in addLoadInst()
972 return addInstruction(new SPIRVPhi(Type, getId(), IncomingPairs, BB), BB); in addPhiInst()
979 return addInstruction(new SPIRVExtInst(TheType, getId(), in addExtInst()
987 return addInstruction(new SPIRVExtInst(TheType, getId(), in addExtInst()
994 return addInstruction(new SPIRVFunctionCall(getId(), TheFunction, in addCallInst()
1001 return addInstruction(SPIRVInstTemplateBase::create(TheOpCode, Type, getId(), in addBinaryInst()
1007 return addInstruction(new SPIRVReturn(BB), BB); in addReturnInst()
1012 return addInstruction(new SPIRVReturnValue(ReturnValue, BB), BB); in addReturnValueInst()
1018 return addInstruction(SPIRVInstTemplateBase::create(TheOpCode, in addUnaryInst()
1025 return addInstruction(new SPIRVVectorExtractDynamic(getId(), TheVector, in addVectorExtractDynamicInst()
1032 return addInstruction(new SPIRVVectorInsertDynamic(getId(), TheVector, in addVectorInsertDynamicInst()
1040 return addInstruction(new SPIRVVectorShuffle(getId(), Type, Vec1, Vec2, in addVectorShuffleInst()
1046 return addInstruction(new SPIRVBranch(TargetLabel, BB), BB); in addBranchInst()
1052 return addInstruction(new SPIRVBranchConditional(Condition, TrueLabel, in addBranchConditionalInst()
1059 return addInstruction(SPIRVInstTemplateBase::create(TheOpCode, in addCmpInst()
1066 return addInstruction( in addControlBarrierInst()
1073 return addInstruction(SPIRVInstTemplateBase::create(OpMemoryBarrier, in addMemoryBarrierInst()
1081 return addInstruction(new SPIRVSelect(getId(), Condition->getId(), in addSelectInst()
1088 return addInstruction(SPIRVInstTemplateBase::create( in addPtrAccessChainInst()
1098 return addInstruction(new SPIRVGroupAsyncCopy(Scope, getId(), Dest, Src, in addAsyncGroupCopy()
1105 return addInstruction(new SPIRVCompositeExtract(Type, getId(), TheVector, in addCompositeExtractInst()
1113 return addInstruction(new SPIRVCompositeInsert(getId(), Object, Composite, in addCompositeInsertInst()
1120 return addInstruction(new SPIRVCopyObject(TheType, getId(), Operand, BB), BB); in addCopyObjectInst()
1127 return addInstruction(new SPIRVCopyMemory(TheTarget, TheSource, in addCopyMemoryInst()
1135 return addInstruction(new SPIRVCopyMemorySized(TheTarget, TheSource, TheSize, in addCopyMemorySizedInst()
1147 return addInstruction(Variable, BB); in addVariable()
1491 BB->addInstruction(Ins); in addInstTemplate()
1501 BB->addInstruction(Ins); in addInstTemplate()