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