Lines Matching refs:NewV

229                                 Value *NewV) const;
370 Value *NewV) const { in rewriteIntrinsicOperands()
376 Type *SrcTy = NewV->getType(); in rewriteIntrinsicOperands()
379 II->setArgOperand(0, NewV); in rewriteIntrinsicOperands()
388 Type *NewPtrTy = NewV->getType(); in rewriteIntrinsicOperands()
391 II->setArgOperand(0, NewV); in rewriteIntrinsicOperands()
397 Type *NewPtrTy = NewV->getType(); in rewriteIntrinsicOperands()
400 II->setArgOperand(1, NewV); in rewriteIntrinsicOperands()
405 Value *Rewrite = TTI->rewriteIntrinsicWithAddressSpace(II, OldV, NewV); in rewriteIntrinsicOperands()
792 Value *NewV = cloneInstructionWithNewAddressSpace( in cloneValueWithNewAddressSpace() local
794 if (Instruction *NewI = dyn_cast_or_null<Instruction>(NewV)) { in cloneValueWithNewAddressSpace()
801 return NewV; in cloneValueWithNewAddressSpace()
1041 Value *NewV) { in handleMemIntrinsicPtrUse() argument
1048 B.CreateMemSet(NewV, MSI->getValue(), MSI->getLength(), MSI->getDestAlign(), in handleMemIntrinsicPtrUse()
1057 Src = NewV; in handleMemIntrinsicPtrUse()
1060 Dest = NewV; in handleMemIntrinsicPtrUse()
1164 User *NewV = cast_or_null<User>(ValueWithNewAddrSpace.lookup(V)); in rewriteWithNewAddressSpaces() local
1165 if (!NewV) in rewriteWithNewAddressSpaces()
1169 assert(isa<PoisonValue>(NewV->getOperand(OperandNo))); in rewriteWithNewAddressSpaces()
1170 NewV->setOperand(OperandNo, ValueWithNewAddrSpace.lookup(PoisonUse->get())); in rewriteWithNewAddressSpaces()
1181 Value *NewV = ValueWithNewAddrSpace.lookup(V); in rewriteWithNewAddressSpaces() local
1182 if (NewV == nullptr) in rewriteWithNewAddressSpaces()
1186 << *NewV << '\n'); in rewriteWithNewAddressSpaces()
1190 ConstantExpr::getAddrSpaceCast(cast<Constant>(NewV), C->getType()); in rewriteWithNewAddressSpaces()
1236 U.set(NewV); in rewriteWithNewAddressSpaces()
1241 if (CurUser == NewV) in rewriteWithNewAddressSpaces()
1250 if (!MI->isVolatile() && handleMemIntrinsicPtrUse(MI, V, NewV)) in rewriteWithNewAddressSpaces()
1255 if (rewriteIntrinsicOperands(II, V, NewV)) in rewriteWithNewAddressSpaces()
1267 unsigned NewAS = NewV->getType()->getPointerAddressSpace(); in rewriteWithNewAddressSpaces()
1275 Cmp->setOperand(SrcIdx, NewV); in rewriteWithNewAddressSpaces()
1283 Cmp->setOperand(SrcIdx, NewV); in rewriteWithNewAddressSpaces()
1285 KOtherSrc, NewV->getType())); in rewriteWithNewAddressSpaces()
1292 unsigned NewAS = NewV->getType()->getPointerAddressSpace(); in rewriteWithNewAddressSpaces()
1294 ASC->replaceAllUsesWith(NewV); in rewriteWithNewAddressSpaces()
1308 if (Instruction *NewVInst = dyn_cast<Instruction>(NewV)) in rewriteWithNewAddressSpaces()
1317 V, new AddrSpaceCastInst(NewV, V->getType(), "", InsertPos)); in rewriteWithNewAddressSpaces()
1320 V, ConstantExpr::getAddrSpaceCast(cast<Constant>(NewV), in rewriteWithNewAddressSpaces()