Lines Matching refs:getArgOperand

64   unsigned DstAlign = getKnownAlignment(MI->getArgOperand(0), DL, MI, AC, DT);  in SimplifyMemTransfer()
65 unsigned SrcAlign = getKnownAlignment(MI->getArgOperand(1), DL, MI, AC, DT); in SimplifyMemTransfer()
76 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getArgOperand(2)); in SimplifyMemTransfer()
91 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace(); in SimplifyMemTransfer()
93 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace(); in SimplifyMemTransfer()
105 Value *StrippedDest = MI->getArgOperand(0)->stripPointerCasts(); in SimplifyMemTransfer()
107 if (StrippedDest != MI->getArgOperand(0)) { in SimplifyMemTransfer()
141 Value *Src = Builder->CreateBitCast(MI->getArgOperand(1), NewSrcPtrTy); in SimplifyMemTransfer()
142 Value *Dest = Builder->CreateBitCast(MI->getArgOperand(0), NewDstPtrTy); in SimplifyMemTransfer()
250 auto Arg1 = II.getArgOperand(1); in SimplifyX86immshift()
277 auto Vec = II.getArgOperand(0); in SimplifyX86immshift()
313 VectorType *SrcTy = cast<VectorType>(II.getArgOperand(0)->getType()); in SimplifyX86extend()
322 Value *SV = Builder.CreateShuffleVector(II.getArgOperand(0), in SimplifyX86extend()
330 if (auto *CInt = dyn_cast<ConstantInt>(II.getArgOperand(2))) { in SimplifyX86insertps()
355 Value *V1 = II.getArgOperand(1); in SimplifyX86insertps()
360 if ((II.getArgOperand(0) == II.getArgOperand(1)) || in SimplifyX86insertps()
379 return Builder.CreateShuffleVector(II.getArgOperand(0), V1, ShuffleMask); in SimplifyX86insertps()
579 if (auto *CInt = dyn_cast<ConstantInt>(II.getArgOperand(2))) { in SimplifyX86vperm2()
616 Value *V0 = LowInputSelect ? II.getArgOperand(1) : II.getArgOperand(0); in SimplifyX86vperm2()
617 Value *V1 = HighInputSelect ? II.getArgOperand(1) : II.getArgOperand(0); in SimplifyX86vperm2()
642 if (auto *CInt = dyn_cast<ConstantInt>(II.getArgOperand(2))) { in SimplifyX86vpcom()
670 if (Value *Cmp = Builder.CreateICmp(Pred, II.getArgOperand(0), II.getArgOperand(1))) in SimplifyX86vpcom()
730 Type *Tys[3] = { CI.getArgOperand(0)->getType(), in visitCallInst()
731 CI.getArgOperand(1)->getType(), in visitCallInst()
732 CI.getArgOperand(2)->getType() }; in visitCallInst()
768 if (getObjectSize(II->getArgOperand(0), Size, DL, TLI)) in visitCallInst()
773 Value *IIOperand = II->getArgOperand(0); in visitCallInst()
792 Value *IIOperand = II->getArgOperand(0); in visitCallInst()
802 if (ConstantInt *Power = dyn_cast<ConstantInt>(II->getArgOperand(1))) { in visitCallInst()
808 return ReplaceInstUsesWith(CI, II->getArgOperand(0)); in visitCallInst()
812 II->getArgOperand(0)); in visitCallInst()
818 IntegerType *IT = dyn_cast<IntegerType>(II->getArgOperand(0)->getType()); in visitCallInst()
824 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne, 0, II); in visitCallInst()
836 IntegerType *IT = dyn_cast<IntegerType>(II->getArgOperand(0)->getType()); in visitCallInst()
842 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne, 0, II); in visitCallInst()
856 if (isa<Constant>(II->getArgOperand(0)) && in visitCallInst()
857 !isa<Constant>(II->getArgOperand(1))) { in visitCallInst()
859 Value *LHS = II->getArgOperand(0); in visitCallInst()
860 II->setArgOperand(0, II->getArgOperand(1)); in visitCallInst()
874 if (OptimizeOverflowCheck(OCF, II->getArgOperand(0), II->getArgOperand(1), in visitCallInst()
883 Value *Arg0 = II->getArgOperand(0); in visitCallInst()
884 Value *Arg1 = II->getArgOperand(1); in visitCallInst()
968 if (getOrEnforceKnownAlignment(II->getArgOperand(0), 16, DL, II, AC, DT) >= in visitCallInst()
970 Value *Ptr = Builder->CreateBitCast(II->getArgOperand(0), in visitCallInst()
978 Value *Ptr = Builder->CreateBitCast(II->getArgOperand(0), in visitCallInst()
985 if (getOrEnforceKnownAlignment(II->getArgOperand(1), 16, DL, II, AC, DT) >= in visitCallInst()
988 PointerType::getUnqual(II->getArgOperand(0)->getType()); in visitCallInst()
989 Value *Ptr = Builder->CreateBitCast(II->getArgOperand(1), OpPtrTy); in visitCallInst()
990 return new StoreInst(II->getArgOperand(0), Ptr); in visitCallInst()
996 Type *OpPtrTy = PointerType::getUnqual(II->getArgOperand(0)->getType()); in visitCallInst()
997 Value *Ptr = Builder->CreateBitCast(II->getArgOperand(1), OpPtrTy); in visitCallInst()
998 return new StoreInst(II->getArgOperand(0), Ptr, false, 1); in visitCallInst()
1002 if (getOrEnforceKnownAlignment(II->getArgOperand(0), 16, DL, II, AC, DT) >= in visitCallInst()
1006 Value *Ptr = Builder->CreateBitCast(II->getArgOperand(0), in visitCallInst()
1014 if (getOrEnforceKnownAlignment(II->getArgOperand(0), 32, DL, II, AC, DT) >= in visitCallInst()
1016 Value *Ptr = Builder->CreateBitCast(II->getArgOperand(0), in visitCallInst()
1023 if (getOrEnforceKnownAlignment(II->getArgOperand(1), 16, DL, II, AC, DT) >= in visitCallInst()
1026 II->getArgOperand(0)->getType()->getVectorNumElements()); in visitCallInst()
1027 Value *TOp = Builder->CreateFPTrunc(II->getArgOperand(0), VTy); in visitCallInst()
1029 Value *Ptr = Builder->CreateBitCast(II->getArgOperand(1), OpPtrTy); in visitCallInst()
1035 if (getOrEnforceKnownAlignment(II->getArgOperand(1), 32, DL, II, AC, DT) >= in visitCallInst()
1038 PointerType::getUnqual(II->getArgOperand(0)->getType()); in visitCallInst()
1039 Value *Ptr = Builder->CreateBitCast(II->getArgOperand(1), OpPtrTy); in visitCallInst()
1040 return new StoreInst(II->getArgOperand(0), Ptr); in visitCallInst()
1048 if (getOrEnforceKnownAlignment(II->getArgOperand(0), 16, DL, II, AC, DT) >= in visitCallInst()
1051 PointerType::getUnqual(II->getArgOperand(1)->getType()); in visitCallInst()
1052 Value *Ptr = Builder->CreateBitCast(II->getArgOperand(0), OpPtrTy); in visitCallInst()
1053 return new StoreInst(II->getArgOperand(1), Ptr); in visitCallInst()
1059 auto Arg = II->getArgOperand(0); in visitCallInst()
1111 Value *Arg = II->getArgOperand(0); in visitCallInst()
1164 Value *Arg1 = II->getArgOperand(1); in visitCallInst()
1208 Value *Op0 = II->getArgOperand(0); in visitCallInst()
1209 Value *Op1 = II->getArgOperand(1); in visitCallInst()
1245 Value *Op0 = II->getArgOperand(0); in visitCallInst()
1251 ConstantInt *CILength = dyn_cast<ConstantInt>(II->getArgOperand(1)); in visitCallInst()
1252 ConstantInt *CIIndex = dyn_cast<ConstantInt>(II->getArgOperand(2)); in visitCallInst()
1268 Value *Op0 = II->getArgOperand(0); in visitCallInst()
1269 Value *Op1 = II->getArgOperand(1); in visitCallInst()
1304 Value *Op0 = II->getArgOperand(0); in visitCallInst()
1305 Value *Op1 = II->getArgOperand(1); in visitCallInst()
1313 ConstantInt *CILength = dyn_cast<ConstantInt>(II->getArgOperand(2)); in visitCallInst()
1314 ConstantInt *CIIndex = dyn_cast<ConstantInt>(II->getArgOperand(3)); in visitCallInst()
1349 Value *Op0 = II->getArgOperand(0); in visitCallInst()
1350 Value *Op1 = II->getArgOperand(1); in visitCallInst()
1351 Value *Mask = II->getArgOperand(2); in visitCallInst()
1392 auto *V = II->getArgOperand(1); in visitCallInst()
1424 auto V1 = II->getArgOperand(0); in visitCallInst()
1435 Value *V = II->getArgOperand(1); in visitCallInst()
1464 auto V1 = II->getArgOperand(0); in visitCallInst()
1501 if (Constant *Mask = dyn_cast<Constant>(II->getArgOperand(2))) { in visitCallInst()
1517 Value *Op0 = Builder->CreateBitCast(II->getArgOperand(0), in visitCallInst()
1519 Value *Op1 = Builder->CreateBitCast(II->getArgOperand(1), in visitCallInst()
1567 unsigned MemAlign = getKnownAlignment(II->getArgOperand(0), DL, II, AC, DT); in visitCallInst()
1569 ConstantInt *IntrAlign = dyn_cast<ConstantInt>(II->getArgOperand(AlignArg)); in visitCallInst()
1583 Value *Arg0 = II->getArgOperand(0); in visitCallInst()
1584 Value *Arg1 = II->getArgOperand(1); in visitCallInst()
1619 if (const ConstantFP *C = dyn_cast<ConstantFP>(II->getArgOperand(0))) { in visitCallInst()
1635 if (IntrinsicInst *SS = dyn_cast<IntrinsicInst>(II->getArgOperand(0))) { in visitCallInst()
1701 Value *IIOperand = II->getArgOperand(0), *A, *B, in visitCallInst()
2354 Function *NestF =cast<Function>(Tramp->getArgOperand(1)->stripPointerCasts()); in transformCallThroughTrampoline()
2396 Value *NestVal = Tramp->getArgOperand(2); in transformCallThroughTrampoline()