• Home
  • Raw
  • Download

Lines Matching refs:NewAI

2154   AllocaInst &OldAI, &NewAI;  member in llvm::sroa::AllocaSliceRewriter
2200 AllocaInst &OldAI, AllocaInst &NewAI, in AllocaSliceRewriter() argument
2206 : DL(DL), AS(AS), Pass(Pass), OldAI(OldAI), NewAI(NewAI), in AllocaSliceRewriter()
2209 NewAllocaTy(NewAI.getAllocatedType()), in AllocaSliceRewriter()
2212 NewAI.getContext(), in AllocaSliceRewriter()
2213 DL.getTypeSizeInBits(NewAI.getAllocatedType())) in AllocaSliceRewriter()
2220 IRB(NewAI.getContext(), ConstantFolder()) { in AllocaSliceRewriter()
2254 IRB.SetNamePrefix(Twine(NewAI.getName()) + "." + Twine(BeginOffset) + "."); in visit()
2299 return getAdjustedPtr(IRB, DL, &NewAI, in getNewAllocaSlicePtr()
2315 unsigned NewAIAlign = NewAI.getAlignment(); in getSliceAlign()
2317 NewAIAlign = DL.getABITypeAlignment(NewAI.getAllocatedType()); in getSliceAlign()
2343 Value *V = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "load"); in rewriteVectorizedLoadInst()
2350 Value *V = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "load"); in rewriteIntegerLoad()
2389 LoadInst *NewLI = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), in visitLoadInst()
2465 Value *Old = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "load"); in rewriteVectorizedStoreInst()
2468 StoreInst *Store = IRB.CreateAlignedStore(V, &NewAI, NewAI.getAlignment()); in rewriteVectorizedStoreInst()
2481 IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "oldload"); in rewriteIntegerStore()
2488 StoreInst *Store = IRB.CreateAlignedStore(V, &NewAI, NewAI.getAlignment()); in rewriteIntegerStore()
2545 NewSI = IRB.CreateAlignedStore(V, &NewAI, NewAI.getAlignment(), in visitStoreInst()
2558 return NewSI->getPointerOperand() == &NewAI && !SI.isVolatile(); in visitStoreInst()
2615 Type *AllocaTy = NewAI.getAllocatedType(); in visitMemSetInst()
2660 IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "oldload"); in visitMemSetInst()
2673 IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "oldload"); in visitMemSetInst()
2694 Value *New = IRB.CreateAlignedStore(V, &NewAI, NewAI.getAlignment(), in visitMemSetInst()
2748 SliceSize != DL.getTypeStoreSize(NewAI.getAllocatedType()) || in visitMemTransferInst()
2749 !NewAI.getAllocatedType()->isSingleValueType()); in visitMemTransferInst()
2754 if (EmitMemCpy && &OldAI == &NewAI) { in visitMemTransferInst()
2772 assert(AI != &OldAI && AI != &NewAI && in visitMemTransferInst()
2831 Value *DstPtr = &NewAI; in visitMemTransferInst()
2840 Src = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "load"); in visitMemTransferInst()
2843 Src = IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "load"); in visitMemTransferInst()
2854 IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "oldload"); in visitMemTransferInst()
2858 IRB.CreateAlignedLoad(&NewAI, NewAI.getAlignment(), "oldload"); in visitMemTransferInst()
3841 AllocaInst *NewAI; in rewritePartition() local
3845 NewAI = &AI; in rewritePartition()
3862 NewAI = new AllocaInst( in rewritePartition()
3870 << ") to: " << *NewAI << "\n"); in rewritePartition()
3880 AllocaSliceRewriter Rewriter(DL, AS, *this, AI, *NewAI, P.beginOffset(), in rewritePartition()
3921 PromotableAllocas.push_back(NewAI); in rewritePartition()
3930 Worklist.insert(NewAI); in rewritePartition()
3939 if (NewAI == &AI) in rewritePartition()
3945 Worklist.insert(NewAI); in rewritePartition()
3948 return NewAI; in rewritePartition()
4001 if (AllocaInst *NewAI = rewritePartition(AI, AS, P)) { in splitAlloca() local
4003 if (NewAI != &AI) { in splitAlloca()
4005 uint64_t AllocaSize = DL.getTypeSizeInBits(NewAI->getAllocatedType()); in splitAlloca()
4008 Pieces.push_back(Piece(NewAI, P.beginOffset() * SizeOfByte, Size)); in splitAlloca()