Home
last modified time | relevance | path

Searched refs:getArgOperand (Results 1 – 25 of 130) sorted by relevance

123456

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAutoUpgrade.cpp1099 Value *Args[] = { CI.getArgOperand(0) , CI.getArgOperand(1), in UpgradeX86VPERMT2Intrinsics()
1100 CI.getArgOperand(2) }; in UpgradeX86VPERMT2Intrinsics()
1109 : Builder.CreateBitCast(CI.getArgOperand(1), in UpgradeX86VPERMT2Intrinsics()
1111 return EmitX86Select(Builder, CI.getArgOperand(3), V, PassThru); in UpgradeX86VPERMT2Intrinsics()
1137 Value *Src = CI.getArgOperand(0); in upgradeX86Rotate()
1138 Value *Amt = CI.getArgOperand(1); in upgradeX86Rotate()
1164 Value *LHS = CI.getArgOperand(0); in upgradeX86vpcom()
1165 Value *RHS = CI.getArgOperand(1); in upgradeX86vpcom()
1203 Value *Op0 = CI.getArgOperand(0); in upgradeX86ConcatShift()
1204 Value *Op1 = CI.getArgOperand(1); in upgradeX86ConcatShift()
[all …]
DIntrinsicInst.cpp40 Value *Op = getArgOperand(0); in getVariableLocation()
98 return const_cast<Value *>(getArgOperand(4)); in getStep()
108 cast<MetadataAsValue>(getArgOperand(NumOperands - 2))->getMetadata(); in getRoundingMode()
118 cast<MetadataAsValue>(getArgOperand(NumOperands - 1))->getMetadata(); in getExceptionBehavior()
127 cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getPredicate()
DVerifier.cpp1980 cast<ConstantInt>(Call.getArgOperand(1))->getSExtValue(); in verifyStatepoint()
1987 const Value *Target = Call.getArgOperand(2); in verifyStatepoint()
1993 const int NumCallArgs = cast<ConstantInt>(Call.getArgOperand(3))->getZExtValue(); in verifyStatepoint()
2013 = cast<ConstantInt>(Call.getArgOperand(4))->getZExtValue(); in verifyStatepoint()
2022 Type *ArgType = Call.getArgOperand(5 + i)->getType(); in verifyStatepoint()
2038 const Value *NumTransitionArgsV = Call.getArgOperand(EndCallArgsInx + 1); in verifyStatepoint()
2049 const Value *NumDeoptArgsV = Call.getArgOperand(EndTransitionArgsInx + 1); in verifyStatepoint()
2078 Assert(UserCall->getArgOperand(0) == &Call, in verifyStatepoint()
2081 Assert(UserCall->getArgOperand(0) == &Call, in verifyStatepoint()
2871 Assert(Call.getArgOperand(i)->getType() == FTy->getParamType(i), in visitCallBase()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp198 unsigned AS = CI->getArgOperand(ArgNo)->getType()->getPointerAddressSpace(); in annotateDereferenceableBytes()
226 unsigned AS = CI->getArgOperand(ArgNo)->getType()->getPointerAddressSpace(); in annotateNonNullBasedOnAccess()
257 Value *Dst = CI->getArgOperand(0); in optimizeStrCat()
258 Value *Src = CI->getArgOperand(1); in optimizeStrCat()
299 Value *Dst = CI->getArgOperand(0); in optimizeStrNCat()
300 Value *Src = CI->getArgOperand(1); in optimizeStrNCat()
301 Value *Size = CI->getArgOperand(2); in optimizeStrNCat()
343 Value *SrcStr = CI->getArgOperand(0); in optimizeStrChr()
348 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrChr()
358 return emitMemChr(SrcStr, CI->getArgOperand(1), // include nul. in optimizeStrChr()
[all …]
DGlobalStatus.cpp158 if (MTI->getArgOperand(0) == V) in analyzeGlobalAux()
160 if (MTI->getArgOperand(1) == V) in analyzeGlobalAux()
163 assert(MSI->getArgOperand(0) == V && "Memset only takes one pointer!"); in analyzeGlobalAux()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroInstr.h48 Value *getFrame() const { return getArgOperand(FrameArg); } in getFrame()
57 return cast<ConstantInt>(getArgOperand(IndexArg)); in getRawIndex()
118 Value *Arg = getArgOperand(PromiseArg); in getPromise()
125 Value *Arg = getArgOperand(PromiseArg); in clearPromise()
177 return cast<Constant>(getArgOperand(InfoArg)->stripPointerCasts()); in getRawInfo()
183 return cast<Function>(getArgOperand(CoroutineArg)->stripPointerCasts()); in getCoroutine()
186 assert(isa<ConstantPointerNull>(getArgOperand(CoroutineArg)) && in setCoroutineSelf()
211 return cast<ConstantInt>(getArgOperand(SizeArg))->getZExtValue(); in getStorageSize()
215 return cast<ConstantInt>(getArgOperand(AlignArg))->getZExtValue(); in getStorageAlignment()
219 return getArgOperand(StorageArg); in getStorage()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp165 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace(); in SimplifyAnyMemTransfer()
167 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace(); in SimplifyAnyMemTransfer()
190 Value *Src = Builder.CreateBitCast(MI->getArgOperand(1), NewSrcPtrTy); in SimplifyAnyMemTransfer()
191 Value *Dest = Builder.CreateBitCast(MI->getArgOperand(0), NewDstPtrTy); in SimplifyAnyMemTransfer()
363 auto Arg1 = II.getArgOperand(1); in simplifyX86immShift()
390 auto Vec = II.getArgOperand(0); in simplifyX86immShift()
473 auto *CShift = dyn_cast<Constant>(II.getArgOperand(1)); in simplifyX86varShift()
477 auto Vec = II.getArgOperand(0); in simplifyX86varShift()
552 Value *Arg0 = II.getArgOperand(0); in simplifyX86pack()
553 Value *Arg1 = II.getArgOperand(1); in simplifyX86pack()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DIntrinsicLowering.cpp207 switch (CI->getArgOperand(0)->getType()->getTypeID()) { in ReplaceFPIntrinsicWithCall()
221 CI->getArgOperand(0)->getType()); in ReplaceFPIntrinsicWithCall()
244 Value *V = CI->getArgOperand(0); in LowerIntrinsicCall()
250 CI->replaceAllUsesWith(LowerCTPOP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall()
254 CI->replaceAllUsesWith(LowerBSWAP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall()
258 CI->replaceAllUsesWith(LowerCTLZ(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall()
263 Value *Src = CI->getArgOperand(0); in LowerIntrinsicCall()
340 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall()
343 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall()
344 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall()
[all …]
DScalarizeMaskedMemIntrin.cpp128 Value *Ptr = CI->getArgOperand(0); in scalarizeMaskedLoad()
129 Value *Alignment = CI->getArgOperand(1); in scalarizeMaskedLoad()
130 Value *Mask = CI->getArgOperand(2); in scalarizeMaskedLoad()
131 Value *Src0 = CI->getArgOperand(3); in scalarizeMaskedLoad()
266 Value *Src = CI->getArgOperand(0); in scalarizeMaskedStore()
267 Value *Ptr = CI->getArgOperand(1); in scalarizeMaskedStore()
268 Value *Alignment = CI->getArgOperand(2); in scalarizeMaskedStore()
269 Value *Mask = CI->getArgOperand(3); in scalarizeMaskedStore()
391 Value *Ptrs = CI->getArgOperand(0); in scalarizeMaskedGather()
392 Value *Alignment = CI->getArgOperand(1); in scalarizeMaskedGather()
[all …]
DExpandMemCmp.cpp287 getPtrToElementAtOffset(CI->getArgOperand(0), LoadSizeType, OffsetBytes); in emitLoadCompareByteBlock()
289 getPtrToElementAtOffset(CI->getArgOperand(1), LoadSizeType, OffsetBytes); in emitLoadCompareByteBlock()
347 Value *Source1 = getPtrToElementAtOffset(CI->getArgOperand(0), LoadSizeType, in getCompareLoadPairs()
349 Value *Source2 = getPtrToElementAtOffset(CI->getArgOperand(1), LoadSizeType, in getCompareLoadPairs()
454 Value *Source1 = getPtrToElementAtOffset(CI->getArgOperand(0), LoadSizeType, in emitLoadCompareBlock()
456 Value *Source2 = getPtrToElementAtOffset(CI->getArgOperand(1), LoadSizeType, in emitLoadCompareBlock()
571 Value *Source1 = CI->getArgOperand(0); in getMemCmpOneBlock()
572 Value *Source2 = CI->getArgOperand(1); in getMemCmpOneBlock()
736 ConstantInt *SizeCast = dyn_cast<ConstantInt>(CI->getArgOperand(2)); in expandMemCmp()
DGCRootLowering.cpp208 Value *St = new StoreInst(CI->getArgOperand(0), in DoLowering()
209 CI->getArgOperand(2), CI); in DoLowering()
217 Value *Ld = new LoadInst(CI->getType(), CI->getArgOperand(1), "", CI); in DoLowering()
228 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in DoLowering()
DExpandReductions.cpp123 Value *Acc = II->getArgOperand(0); in expandReductions()
124 Value *Vec = II->getArgOperand(1); in expandReductions()
148 Value *Vec = II->getArgOperand(0); in expandReductions()
DPreISelIntrinsicLowering.cpp47 B.CreateGEP(Int8Ty, CI->getArgOperand(0), CI->getArgOperand(1)); in lowerLoadRelative()
51 Value *ResultPtr = B.CreateGEP(Int8Ty, CI->getArgOperand(0), OffsetI32); in lowerLoadRelative()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DIntrinsicInst.h110 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable()
114 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression()
195 return cast<MetadataAsValue>(getArgOperand(0))->getMetadata(); in getRawLabel()
268 Value *getLHS() const { return const_cast<Value*>(getArgOperand(0)); } in getLHS()
269 Value *getRHS() const { return const_cast<Value*>(getArgOperand(1)); } in getRHS()
331 return const_cast<Value *>(getArgOperand(ARG_DEST)); in getRawDest()
337 return const_cast<Value *>(getArgOperand(ARG_LENGTH)); in getLength()
396 return const_cast<Value *>(BaseCL::getArgOperand(ARG_SOURCE)); in getRawSource()
454 return const_cast<Value *>(BaseCL::getArgOperand(ARG_VALUE)); in getValue()
476 return const_cast<Value *>(getArgOperand(ARG_ELEMENTSIZE)); in getRawElementSizeInBytes()
[all …]
DStatepoint.h113 return cast<ConstantInt>(getCall()->getArgOperand(FlagsPos)) in getFlags()
119 const Value *IDVal = getCall()->getArgOperand(IDPos); in getID()
125 const Value *NumPatchBytesVal = getCall()->getArgOperand(NumPatchBytesPos); in getNumPatchBytes()
134 return getCall()->getArgOperand(CalledFunctionPos); in getCalledValue()
165 const Value *NumCallArgsVal = getCall()->getArgOperand(NumCallArgsPos); in getNumCallArgs()
330 const Value *Token = getArgOperand(0); in isTiedToInvoke()
337 const Value *Token = getArgOperand(0); in getStatepoint()
374 return cast<ConstantInt>(getArgOperand(1))->getZExtValue(); in getBasePtrIndex()
380 return cast<ConstantInt>(getArgOperand(2))->getZExtValue(); in getDerivedPtrIndex()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMemoryLocation.cpp133 const Value *Arg = Call->getArgOperand(ArgIdx); in getForArgument()
147 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument()
159 cast<ConstantInt>(II->getArgOperand(0))->getZExtValue()), in getForArgument()
171 cast<ConstantInt>(II->getArgOperand(1))->getZExtValue()), in getForArgument()
186 II->getArgOperand(1)->getType())), in getForArgument()
204 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument()
210 return MemoryLocation(Call->getArgOperand(ArgIdx), LocationSize::unknown(), in getForArgument()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLowerMatrixIntrinsics.cpp582 Value *Ptr = Inst->getArgOperand(0); in LowerColumnwiseLoad()
583 Value *Stride = Inst->getArgOperand(1); in LowerColumnwiseLoad()
585 {Inst->getArgOperand(2), Inst->getArgOperand(3)}); in LowerColumnwiseLoad()
608 Value *Matrix = Inst->getArgOperand(0); in LowerColumnwiseStore()
609 Value *Ptr = Inst->getArgOperand(1); in LowerColumnwiseStore()
610 Value *Stride = Inst->getArgOperand(2); in LowerColumnwiseStore()
612 {Inst->getArgOperand(3), Inst->getArgOperand(4)}); in LowerColumnwiseStore()
706 ShapeInfo LShape(MatMul->getArgOperand(2), MatMul->getArgOperand(3)); in LowerMultiply()
707 ShapeInfo RShape(MatMul->getArgOperand(3), MatMul->getArgOperand(4)); in LowerMultiply()
710 getMatrix(MatMul->getArgOperand(0), LShape, Builder); in LowerMultiply()
[all …]
DLowerExpectIntrinsic.cpp67 Value *ArgValue = CI->getArgOperand(0); in handleSwitchExpect()
68 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect()
101 Value &Arg = *Expect->getArgOperand(0); in handlePhiDef()
102 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef()
283 Value *ArgValue = CI->getArgOperand(0); in handleBrSelExpect()
284 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect()
355 Value *Exp = CI->getArgOperand(0); in lowerExpectIntrinsic()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp4310 Src0 = I.getArgOperand(0); in visitMaskedStore()
4311 Ptr = I.getArgOperand(1); in visitMaskedStore()
4312 Alignment = cast<ConstantInt>(I.getArgOperand(2))->getZExtValue(); in visitMaskedStore()
4313 Mask = I.getArgOperand(3); in visitMaskedStore()
4318 Src0 = I.getArgOperand(0); in visitMaskedStore()
4319 Ptr = I.getArgOperand(1); in visitMaskedStore()
4320 Mask = I.getArgOperand(2); in visitMaskedStore()
4452 const Value *Ptr = I.getArgOperand(1); in visitMaskedScatter()
4453 SDValue Src0 = getValue(I.getArgOperand(0)); in visitMaskedScatter()
4454 SDValue Mask = getValue(I.getArgOperand(3)); in visitMaskedScatter()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVEGatherScatterLowering.cpp183 Value *Ptr = I->getArgOperand(0); in lowerGather()
184 unsigned Alignment = cast<ConstantInt>(I->getArgOperand(1))->getZExtValue(); in lowerGather()
185 Value *Mask = I->getArgOperand(2); in lowerGather()
186 Value *PassThru = I->getArgOperand(3); in lowerGather()
223 Value *Mask = I->getArgOperand(2); in tryCreateMaskedGatherBase()
262 Value *Mask = I->getArgOperand(2); in tryCreateMaskedGatherOffset()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULibCalls.cpp518 Value *opr0 = aCI->getArgOperand(0); in sincosUseNative()
534 new StoreInst(cosval, aCI->getArgOperand(1), aCI); in sincosUseNative()
592 auto *PacketSize = CI->getArgOperand(NumArg - 2); in fold_read_write_pipe()
593 auto *PacketAlign = CI->getArgOperand(NumArg - 1); in fold_read_write_pipe()
607 auto PtrArg = CI->getArgOperand(PtrArgLoc); in fold_read_write_pipe()
613 ArgTys.push_back(CI->getArgOperand(I)->getType()); in fold_read_write_pipe()
627 Args.push_back(CI->getArgOperand(I)); in fold_read_write_pipe()
744 Value *opr0 = CI->getArgOperand(0); in TDOFold()
824 Value *opr0 = CI->getArgOperand(0); in fold_recip()
842 Value *opr0 = CI->getArgOperand(0); in fold_divide()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
DBPFAbstractMemberAccess.cpp248 CInfo.AccessIndex = getConstant(Call->getArgOperand(2)); in IsPreserveDIAccessIndexCall()
249 CInfo.Base = Call->getArgOperand(0); in IsPreserveDIAccessIndexCall()
259 CInfo.AccessIndex = getConstant(Call->getArgOperand(1)); in IsPreserveDIAccessIndexCall()
260 CInfo.Base = Call->getArgOperand(0); in IsPreserveDIAccessIndexCall()
270 CInfo.AccessIndex = getConstant(Call->getArgOperand(2)); in IsPreserveDIAccessIndexCall()
271 CInfo.Base = Call->getArgOperand(0); in IsPreserveDIAccessIndexCall()
280 uint64_t InfoKind = getConstant(Call->getArgOperand(1)); in IsPreserveDIAccessIndexCall()
296 Dimension = getConstant(Call->getArgOperand(DimensionIndex)); in replaceWithGEP()
303 IdxList.push_back(Call->getArgOperand(GEPIndex)); in replaceWithGEP()
305 auto *GEP = GetElementPtrInst::CreateInBounds(Call->getArgOperand(0), in replaceWithGEP()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/
DObjCARCOpts.cpp102 cast<CallInst>(Arg)->getArgOperand(0)); in FindSingleUseIdentifiedObject()
680 cast<CallInst>(AutoreleaseRV)->getArgOperand(0)); in OptimizeInlinedAutoreleaseRVCall()
684 Inst->replaceAllUsesWith(cast<CallInst>(Inst)->getArgOperand(0)); in OptimizeInlinedAutoreleaseRVCall()
692 Value *CallArg = cast<CallInst>(Inst)->getArgOperand(0); in OptimizeInlinedAutoreleaseRVCall()
924 if (IsNullOrUndef(CI->getArgOperand(0))) { in OptimizeIndividualCallImpl()
926 Type *Ty = CI->getArgOperand(0)->getType(); in OptimizeIndividualCallImpl()
943 if (IsNullOrUndef(CI->getArgOperand(0)) || in OptimizeIndividualCallImpl()
944 IsNullOrUndef(CI->getArgOperand(1))) { in OptimizeIndividualCallImpl()
946 Type *Ty = CI->getArgOperand(0)->getType(); in OptimizeIndividualCallImpl()
974 const Value *Arg = Call->getArgOperand(0); in OptimizeIndividualCallImpl()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DObjCARCAnalysisUtils.h83 V = cast<CallInst>(V)->getArgOperand(0); in GetUnderlyingObjCPtr()
121 V = cast<CallInst>(V)->getArgOperand(0); in GetRCIdentityRoot()
138 return GetRCIdentityRoot(cast<CallInst>(Inst)->getArgOperand(0)); in GetArgRCIdentityRoot()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp2405 {IRB.CreatePointerCast(I.getArgOperand(0), IRB.getInt8PtrTy()), in visitMemMoveInst()
2406 IRB.CreatePointerCast(I.getArgOperand(1), IRB.getInt8PtrTy()), in visitMemMoveInst()
2407 IRB.CreateIntCast(I.getArgOperand(2), MS.IntptrTy, false)}); in visitMemMoveInst()
2419 {IRB.CreatePointerCast(I.getArgOperand(0), IRB.getInt8PtrTy()), in visitMemCpyInst()
2420 IRB.CreatePointerCast(I.getArgOperand(1), IRB.getInt8PtrTy()), in visitMemCpyInst()
2421 IRB.CreateIntCast(I.getArgOperand(2), MS.IntptrTy, false)}); in visitMemCpyInst()
2430 {IRB.CreatePointerCast(I.getArgOperand(0), IRB.getInt8PtrTy()), in visitMemSetInst()
2431 IRB.CreateIntCast(I.getArgOperand(1), IRB.getInt32Ty(), false), in visitMemSetInst()
2432 IRB.CreateIntCast(I.getArgOperand(2), MS.IntptrTy, false)}); in visitMemSetInst()
2450 Value* Addr = I.getArgOperand(0); in handleVectorStoreIntrinsic()
[all …]

123456