Lines Matching refs:NewV
225 Value *OldV, Value *NewV) const;
360 Value *NewV) const { in rewriteIntrinsicOperands()
366 Type *SrcTy = NewV->getType(); in rewriteIntrinsicOperands()
369 II->setArgOperand(0, NewV); in rewriteIntrinsicOperands()
377 Value *Rewrite = TTI->rewriteIntrinsicWithAddressSpace(II, OldV, NewV); in rewriteIntrinsicOperands()
771 Value *NewV = cloneInstructionWithNewAddressSpace( in cloneValueWithNewAddressSpace() local
773 if (Instruction *NewI = dyn_cast_or_null<Instruction>(NewV)) { in cloneValueWithNewAddressSpace()
779 return NewV; in cloneValueWithNewAddressSpace()
1017 Value *NewV) { in handleMemIntrinsicPtrUse() argument
1024 B.CreateMemSet(NewV, MSI->getValue(), MSI->getLength(), MSI->getDestAlign(), in handleMemIntrinsicPtrUse()
1033 Src = NewV; in handleMemIntrinsicPtrUse()
1036 Dest = NewV; in handleMemIntrinsicPtrUse()
1139 User *NewV = cast_or_null<User>(ValueWithNewAddrSpace.lookup(V)); in rewriteWithNewAddressSpaces() local
1140 if (!NewV) in rewriteWithNewAddressSpaces()
1144 assert(isa<UndefValue>(NewV->getOperand(OperandNo))); in rewriteWithNewAddressSpaces()
1145 NewV->setOperand(OperandNo, ValueWithNewAddrSpace.lookup(UndefUse->get())); in rewriteWithNewAddressSpaces()
1154 Value *NewV = ValueWithNewAddrSpace.lookup(V); in rewriteWithNewAddressSpaces() local
1155 if (NewV == nullptr) in rewriteWithNewAddressSpaces()
1159 << *NewV << '\n'); in rewriteWithNewAddressSpaces()
1162 Constant *Replace = ConstantExpr::getAddrSpaceCast(cast<Constant>(NewV), in rewriteWithNewAddressSpaces()
1185 U.set(NewV); in rewriteWithNewAddressSpaces()
1191 if (CurUser == NewV) in rewriteWithNewAddressSpaces()
1195 if (!MI->isVolatile() && handleMemIntrinsicPtrUse(MI, V, NewV)) in rewriteWithNewAddressSpaces()
1200 if (rewriteIntrinsicOperands(II, V, NewV)) in rewriteWithNewAddressSpaces()
1212 unsigned NewAS = NewV->getType()->getPointerAddressSpace(); in rewriteWithNewAddressSpaces()
1220 Cmp->setOperand(SrcIdx, NewV); in rewriteWithNewAddressSpaces()
1228 Cmp->setOperand(SrcIdx, NewV); in rewriteWithNewAddressSpaces()
1230 ConstantExpr::getAddrSpaceCast(KOtherSrc, NewV->getType())); in rewriteWithNewAddressSpaces()
1237 unsigned NewAS = NewV->getType()->getPointerAddressSpace(); in rewriteWithNewAddressSpaces()
1241 cast<PointerType>(NewV->getType()))) { in rewriteWithNewAddressSpaces()
1243 if (Instruction *NewVInst = dyn_cast<Instruction>(NewV)) in rewriteWithNewAddressSpaces()
1250 NewV = CastInst::Create(Instruction::BitCast, NewV, in rewriteWithNewAddressSpaces()
1253 ASC->replaceAllUsesWith(NewV); in rewriteWithNewAddressSpaces()
1267 if (Instruction *NewVInst = dyn_cast<Instruction>(NewV)) in rewriteWithNewAddressSpaces()
1274 U.set(new AddrSpaceCastInst(NewV, V->getType(), "", &*InsertPos)); in rewriteWithNewAddressSpaces()
1276 U.set(ConstantExpr::getAddrSpaceCast(cast<Constant>(NewV), in rewriteWithNewAddressSpaces()