/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 1099 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 …]
|
D | IntrinsicInst.cpp | 40 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()
|
D | Verifier.cpp | 1980 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/ |
D | SimplifyLibCalls.cpp | 198 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 …]
|
D | GlobalStatus.cpp | 158 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/ |
D | CoroInstr.h | 48 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/ |
D | InstCombineCalls.cpp | 165 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/ |
D | IntrinsicLowering.cpp | 207 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 …]
|
D | ScalarizeMaskedMemIntrin.cpp | 128 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 …]
|
D | ExpandMemCmp.cpp | 287 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()
|
D | GCRootLowering.cpp | 208 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()
|
D | ExpandReductions.cpp | 123 Value *Acc = II->getArgOperand(0); in expandReductions() 124 Value *Vec = II->getArgOperand(1); in expandReductions() 148 Value *Vec = II->getArgOperand(0); in expandReductions()
|
D | PreISelIntrinsicLowering.cpp | 47 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/ |
D | IntrinsicInst.h | 110 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 …]
|
D | Statepoint.h | 113 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/ |
D | MemoryLocation.cpp | 133 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/ |
D | LowerMatrixIntrinsics.cpp | 582 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 …]
|
D | LowerExpectIntrinsic.cpp | 67 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/ |
D | SelectionDAGBuilder.cpp | 4310 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/ |
D | MVEGatherScatterLowering.cpp | 183 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/ |
D | AMDGPULibCalls.cpp | 518 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/ |
D | BPFAbstractMemberAccess.cpp | 248 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/ |
D | ObjCARCOpts.cpp | 102 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/ |
D | ObjCARCAnalysisUtils.h | 83 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/ |
D | MemorySanitizer.cpp | 2405 {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 …]
|