Lines Matching refs:NewAI

2170   AllocaInst &OldAI, &NewAI;
2216 AllocaInst &OldAI, AllocaInst &NewAI,
2222 : DL(DL), AS(AS), Pass(Pass), OldAI(OldAI), NewAI(NewAI),
2225 NewAllocaTy(NewAI.getAllocatedType()),
2228 NewAI.getContext(),
2229 DL.getTypeSizeInBits(NewAI.getAllocatedType()))
2236 IRB(NewAI.getContext(), ConstantFolder()) {
2270 IRB.SetNamePrefix(Twine(NewAI.getName()) + "." + Twine(BeginOffset) + ".");
2315 return getAdjustedPtr(IRB, DL, &NewAI,
2331 unsigned NewAIAlign = NewAI.getAlignment();
2333 NewAIAlign = DL.getABITypeAlignment(NewAI.getAllocatedType());
2359 Value *V = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "load");
2366 Value *V = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "load");
2405 LoadInst *NewLI = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(),
2481 Value *Old = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "load");
2484 StoreInst *Store = IRB.CreateAlignedStore(V, &NewAI, NewAI.getAlignment());
2497 IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "oldload");
2504 StoreInst *Store = IRB.CreateAlignedStore(V, &NewAI, NewAI.getAlignment());
2561 NewSI = IRB.CreateAlignedStore(V, &NewAI, NewAI.getAlignment(),
2574 return NewSI->getPointerOperand() == &NewAI && !SI.isVolatile();
2631 Type *AllocaTy = NewAI.getAllocatedType();
2676 IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "oldload");
2689 IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "oldload");
2710 Value *New = IRB.CreateAlignedStore(V, &NewAI, NewAI.getAlignment(),
2764 SliceSize != DL.getTypeStoreSize(NewAI.getAllocatedType()) ||
2765 !NewAI.getAllocatedType()->isSingleValueType());
2770 if (EmitMemCpy && &OldAI == &NewAI) {
2788 assert(AI != &OldAI && AI != &NewAI &&
2847 Value *DstPtr = &NewAI;
2856 Src = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "load");
2859 Src = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "load");
2870 IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "oldload");
2874 IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "oldload");
3848 AllocaInst *NewAI;
3852 NewAI = &AI;
3869 NewAI = new AllocaInst(
3877 << ") to: " << *NewAI << "\n");
3887 AllocaSliceRewriter Rewriter(DL, AS, *this, AI, *NewAI, P.beginOffset(),
3928 PromotableAllocas.push_back(NewAI);
3937 Worklist.insert(NewAI);
3943 if (NewAI != &AI)
3944 Worklist.insert(NewAI);
3951 return NewAI;
4004 if (AllocaInst *NewAI = rewritePartition(AI, AS, P)) {
4006 if (NewAI != &AI) {
4008 uint64_t AllocaSize = DL.getTypeSizeInBits(NewAI->getAllocatedType());
4011 Pieces.push_back(Piece(NewAI, P.beginOffset() * SizeOfByte, Size));