/external/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 …]
|
/external/llvm-project/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 1221 Value *Args[] = { CI.getArgOperand(0) , CI.getArgOperand(1), in UpgradeX86VPERMT2Intrinsics() 1222 CI.getArgOperand(2) }; in UpgradeX86VPERMT2Intrinsics() 1231 : Builder.CreateBitCast(CI.getArgOperand(1), in UpgradeX86VPERMT2Intrinsics() 1233 return EmitX86Select(Builder, CI.getArgOperand(3), V, PassThru); in UpgradeX86VPERMT2Intrinsics() 1255 Value *Src = CI.getArgOperand(0); in upgradeX86Rotate() 1256 Value *Amt = CI.getArgOperand(1); in upgradeX86Rotate() 1282 Value *LHS = CI.getArgOperand(0); in upgradeX86vpcom() 1283 Value *RHS = CI.getArgOperand(1); in upgradeX86vpcom() 1321 Value *Op0 = CI.getArgOperand(0); in upgradeX86ConcatShift() 1322 Value *Op1 = CI.getArgOperand(1); in upgradeX86ConcatShift() [all …]
|
/external/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 …]
|
/external/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 603 Value *Op0 = CI.getArgOperand(0); in upgradeIntMinMax() 604 Value *Op1 = CI.getArgOperand(1); in upgradeIntMinMax() 611 Value *Op0 = CI.getArgOperand(0); in upgradeMaskedCompare() 613 Value *Cmp = Builder.CreateICmp(Pred, Op0, CI.getArgOperand(1)); in upgradeMaskedCompare() 615 Value *Mask = CI.getArgOperand(2); in upgradeMaskedCompare() 659 Rep = Builder.CreateICmpEQ(CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() 664 Rep = Builder.CreateICmpSGT(CI->getArgOperand(0), CI->getArgOperand(1), in UpgradeIntrinsicCall() 697 Value *Src = CI->getArgOperand(0); in UpgradeIntrinsicCall() 700 Rep = CI->getArgOperand(0); in UpgradeIntrinsicCall() 718 Value *Src = CI->getArgOperand(0); in UpgradeIntrinsicCall() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 174 unsigned AS = CI->getArgOperand(ArgNo)->getType()->getPointerAddressSpace(); in annotateDereferenceableBytes() 202 unsigned AS = CI->getArgOperand(ArgNo)->getType()->getPointerAddressSpace(); in annotateNonNullBasedOnAccess() 233 Value *Dst = CI->getArgOperand(0); in optimizeStrCat() 234 Value *Src = CI->getArgOperand(1); in optimizeStrCat() 275 Value *Dst = CI->getArgOperand(0); in optimizeStrNCat() 276 Value *Src = CI->getArgOperand(1); in optimizeStrNCat() 277 Value *Size = CI->getArgOperand(2); in optimizeStrNCat() 319 Value *SrcStr = CI->getArgOperand(0); in optimizeStrChr() 324 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrChr() 334 return emitMemChr(SrcStr, CI->getArgOperand(1), // include nul. in optimizeStrChr() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 112 Value *Dst = CI->getArgOperand(0); in optimizeStrCat() 113 Value *Src = CI->getArgOperand(1); in optimizeStrCat() 151 Value *Dst = CI->getArgOperand(0); in optimizeStrNCat() 152 Value *Src = CI->getArgOperand(1); in optimizeStrNCat() 156 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(CI->getArgOperand(2))) in optimizeStrNCat() 185 Value *SrcStr = CI->getArgOperand(0); in optimizeStrChr() 189 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrChr() 195 return emitMemChr(SrcStr, CI->getArgOperand(1), // include nul. in optimizeStrChr() 223 Value *SrcStr = CI->getArgOperand(0); in optimizeStrRChr() 224 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrRChr() [all …]
|
/external/llvm/include/llvm/IR/ |
D | IntrinsicInst.h | 92 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable() 95 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression() 115 const_cast<Value*>(getArgOperand(1)))->getZExtValue(); in getOffset() 125 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawVariable() 128 return cast<MetadataAsValue>(getArgOperand(3))->getMetadata(); in getRawExpression() 143 Value *getRawDest() const { return const_cast<Value*>(getArgOperand(0)); } in getRawDest() 147 Value *getLength() const { return const_cast<Value*>(getArgOperand(2)); } in getLength() 152 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(3))); in getAlignmentCst() 160 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(4))); in getVolatileCst() 197 return getArgOperand(3)->getType(); in getAlignmentType() [all …]
|
/external/llvm-project/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))->getAlignValue(); in getStorageAlignment() 219 return getArgOperand(StorageArg); in getStorage() [all …]
|
/external/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 …]
|
/external/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 …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 82 unsigned DstAlign = getKnownAlignment(MI->getArgOperand(0), DL, MI, AC, DT); in SimplifyMemTransfer() 83 unsigned SrcAlign = getKnownAlignment(MI->getArgOperand(1), DL, MI, AC, DT); in SimplifyMemTransfer() 94 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getArgOperand(2)); in SimplifyMemTransfer() 109 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace(); in SimplifyMemTransfer() 111 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace(); in SimplifyMemTransfer() 123 Value *StrippedDest = MI->getArgOperand(0)->stripPointerCasts(); in SimplifyMemTransfer() 125 if (StrippedDest != MI->getArgOperand(0)) { in SimplifyMemTransfer() 159 Value *Src = Builder->CreateBitCast(MI->getArgOperand(1), NewSrcPtrTy); in SimplifyMemTransfer() 160 Value *Dest = Builder->CreateBitCast(MI->getArgOperand(0), NewDstPtrTy); in SimplifyMemTransfer() 268 auto Arg1 = II.getArgOperand(1); in simplifyX86immShift() [all …]
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | SVEIntrinsicOpts.cpp | 105 auto *PN = dyn_cast<PHINode>(X->getArgOperand(0)); in processPhiNode() 115 RequiredType != Reinterpret->getArgOperand(0)->getType()) in processPhiNode() 144 IntrinsicInst *Op1 = dyn_cast<IntrinsicInst>(I->getArgOperand(0)); in optimizePTest() 145 IntrinsicInst *Op2 = dyn_cast<IntrinsicInst>(I->getArgOperand(1)); in optimizePTest() 150 Op1->getArgOperand(0)->getType() == Op2->getArgOperand(0)->getType()) { in optimizePTest() 152 Value *Ops[] = {Op1->getArgOperand(0), Op2->getArgOperand(0)}; in optimizePTest() 153 Type *Tys[] = {Op1->getArgOperand(0)->getType()}; in optimizePTest() 177 if (isa<PHINode>(I->getArgOperand(0))) in optimizeConvertFromSVBool() 183 auto *Y = isReinterpretToSVBool(I->getArgOperand(0)); in optimizeConvertFromSVBool() 187 Value *SourceVal = Y->getArgOperand(0); in optimizeConvertFromSVBool()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUInstCombineIntrinsic.cpp | 192 Value *Src = II.getArgOperand(0); in instCombineIntrinsic() 219 Value *Src = II.getArgOperand(0); in instCombineIntrinsic() 232 Value *Src = II.getArgOperand(0); in instCombineIntrinsic() 274 Value *Src0 = II.getArgOperand(0); in instCombineIntrinsic() 275 Value *Src1 = II.getArgOperand(1); in instCombineIntrinsic() 359 Value *Src0 = II.getArgOperand(0); in instCombineIntrinsic() 360 Value *Src1 = II.getArgOperand(1); in instCombineIntrinsic() 388 Value *Src0 = II.getArgOperand(0); in instCombineIntrinsic() 389 Value *Src1 = II.getArgOperand(1); in instCombineIntrinsic() 400 Value *Src = II.getArgOperand(0); in instCombineIntrinsic() [all …]
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86InstCombineIntrinsic.cpp | 200 auto Vec = II.getArgOperand(0); in simplifyX86immShift() 201 auto Amt = II.getArgOperand(1); in simplifyX86immShift() 348 auto Vec = II.getArgOperand(0); in simplifyX86varShift() 349 auto Amt = II.getArgOperand(1); in simplifyX86varShift() 440 Value *Arg0 = II.getArgOperand(0); in simplifyX86pack() 441 Value *Arg1 = II.getArgOperand(1); in simplifyX86pack() 506 Value *Arg = II.getArgOperand(0); in simplifyX86movmsk() 536 Value *CarryIn = II.getArgOperand(0); in simplifyX86addcarry() 537 Value *Op1 = II.getArgOperand(1); in simplifyX86addcarry() 538 Value *Op2 = II.getArgOperand(2); in simplifyX86addcarry() [all …]
|
/external/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 …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 205 switch (CI->getArgOperand(0)->getType()->getTypeID()) { in ReplaceFPIntrinsicWithCall() 219 CI->getArgOperand(0)->getType()); in ReplaceFPIntrinsicWithCall() 241 Value *V = CI->getArgOperand(0); in LowerIntrinsicCall() 247 CI->replaceAllUsesWith(LowerCTPOP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 251 CI->replaceAllUsesWith(LowerBSWAP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 255 CI->replaceAllUsesWith(LowerCTLZ(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 260 Value *Src = CI->getArgOperand(0); in LowerIntrinsicCall() 337 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall() 340 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall() 341 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall() [all …]
|
/external/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 …]
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 151 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace(); in SimplifyAnyMemTransfer() 153 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace(); in SimplifyAnyMemTransfer() 176 Value *Src = Builder.CreateBitCast(MI->getArgOperand(1), NewSrcPtrTy); in SimplifyAnyMemTransfer() 177 Value *Dest = Builder.CreateBitCast(MI->getArgOperand(0), NewDstPtrTy); in SimplifyAnyMemTransfer() 280 Value *LoadPtr = II.getArgOperand(0); in simplifyMaskedLoad() 282 cast<ConstantInt>(II.getArgOperand(1))->getAlignValue(); in simplifyMaskedLoad() 286 if (maskIsAllOneOrUndef(II.getArgOperand(2))) in simplifyMaskedLoad() 296 return Builder.CreateSelect(II.getArgOperand(2), LI, II.getArgOperand(3)); in simplifyMaskedLoad() 306 auto *ConstMask = dyn_cast<Constant>(II.getArgOperand(3)); in simplifyMaskedStore() 316 Value *StorePtr = II.getArgOperand(1); in simplifyMaskedStore() [all …]
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | IntrinsicInst.h | 146 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable() 150 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression() 230 return cast<MetadataAsValue>(getArgOperand(0))->getMetadata(); in getRawLabel() 346 Value *getLHS() const { return const_cast<Value *>(getArgOperand(0)); } in getLHS() 347 Value *getRHS() const { return const_cast<Value *>(getArgOperand(1)); } in getRHS() 409 return const_cast<Value *>(getArgOperand(ARG_DEST)); in getRawDest() 415 return const_cast<Value *>(getArgOperand(ARG_LENGTH)); in getLength() 478 return const_cast<Value *>(BaseCL::getArgOperand(ARG_SOURCE)); in getRawSource() 538 return const_cast<Value *>(BaseCL::getArgOperand(ARG_VALUE)); in getValue() 558 return const_cast<Value *>(getArgOperand(ARG_ELEMENTSIZE)); in getRawElementSizeInBytes() [all …]
|
D | Statepoint.h | 88 return cast<ConstantInt>(getArgOperand(IDPos))->getZExtValue(); in getID() 93 const Value *NumPatchBytesVal = getArgOperand(NumPatchBytesPos); in getNumPatchBytes() 102 return cast<ConstantInt>(getArgOperand(NumCallArgsPos))->getZExtValue(); in getNumCallArgs() 106 return cast<ConstantInt>(getArgOperand(FlagsPos))->getZExtValue(); in getFlags() 111 return getArgOperand(CalledFunctionPos); in getActualCalledOperand() 232 const Value *Token = getArgOperand(0); in isTiedToInvoke() 239 const Value *Token = getArgOperand(0); in getStatepoint() 273 return cast<ConstantInt>(getArgOperand(1))->getZExtValue(); in getBasePtrIndex() 279 return cast<ConstantInt>(getArgOperand(2))->getZExtValue(); in getDerivedPtrIndex()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | ScalarizeMaskedMemIntrin.cpp | 130 Value *Ptr = CI->getArgOperand(0); in scalarizeMaskedLoad() 131 Value *Alignment = CI->getArgOperand(1); in scalarizeMaskedLoad() 132 Value *Mask = CI->getArgOperand(2); in scalarizeMaskedLoad() 133 Value *Src0 = CI->getArgOperand(3); in scalarizeMaskedLoad() 269 Value *Src = CI->getArgOperand(0); in scalarizeMaskedStore() 270 Value *Ptr = CI->getArgOperand(1); in scalarizeMaskedStore() 271 Value *Alignment = CI->getArgOperand(2); in scalarizeMaskedStore() 272 Value *Mask = CI->getArgOperand(3); in scalarizeMaskedStore() 395 Value *Ptrs = CI->getArgOperand(0); in scalarizeMaskedGather() 396 Value *Alignment = CI->getArgOperand(1); in scalarizeMaskedGather() [all …]
|
/external/llvm-project/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 152 const Value *Arg = Call->getArgOperand(ArgIdx); in getForArgument() 167 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument() 179 cast<ConstantInt>(II->getArgOperand(0))->getZExtValue()), in getForArgument() 194 DL.getTypeStoreSize(II->getArgOperand(0)->getType())), in getForArgument() 206 cast<ConstantInt>(II->getArgOperand(1))->getZExtValue()), in getForArgument() 221 II->getArgOperand(1)->getType())), in getForArgument() 239 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument() 248 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument() 255 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument() 264 dyn_cast<ConstantInt>(Call->getArgOperand(3))) in getForArgument() [all …]
|
/external/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 321 switch (CI->getArgOperand(0)->getType()->getTypeID()) { in ReplaceFPIntrinsicWithCall() 335 CI->getArgOperand(0)->getType()); in ReplaceFPIntrinsicWithCall() 358 Value *V = CI->getArgOperand(0); in LowerIntrinsicCall() 392 CI->replaceAllUsesWith(LowerCTPOP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 396 CI->replaceAllUsesWith(LowerBSWAP(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 400 CI->replaceAllUsesWith(LowerCTLZ(Context, CI->getArgOperand(0), CI)); in LowerIntrinsicCall() 405 Value *Src = CI->getArgOperand(0); in LowerIntrinsicCall() 475 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall() 478 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall() 479 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall() [all …]
|
/external/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()
|