Lines Matching refs:AllocaInst

187   SmallSetVector<AllocaInst *, 16> Worklist;
202 SmallSetVector<AllocaInst *, 16> PostPromotionWorklist;
205 std::vector<AllocaInst *> PromotableAllocas;
249 bool presplitLoadsAndStores(AllocaInst &AI, AllocaSlices &AS);
250 AllocaInst *rewritePartition(AllocaInst &AI, AllocaSlices &AS, Partition &P);
251 bool splitAlloca(AllocaInst &AI, AllocaSlices &AS);
252 std::pair<bool /*Changed*/, bool /*CFGChanged*/> runOnAlloca(AllocaInst &AI);
254 bool deleteDeadInstructions(SmallPtrSetImpl<AllocaInst *> &DeletedAllocas);
360 static void migrateDebugInfo(AllocaInst *OldAlloca, bool IsSplit, in migrateDebugInfo()
603 AllocaSlices(const DataLayout &DL, AllocaInst &AI);
682 AllocaInst &AI;
1038 SliceBuilder(const DataLayout &DL, AllocaInst &AI, AllocaSlices &AS) in SliceBuilder()
1442 AllocaSlices::AllocaSlices(const DataLayout &DL, AllocaInst &AI) in AllocaSlices()
2665 AllocaInst &OldAI, &NewAI;
2723 AllocaInst &OldAI, AllocaInst &NewAI, in AllocaSliceRewriter()
3084 if (AllocaInst *AI = dyn_cast<AllocaInst>(V->stripInBoundsOffsets())) in visitStoreInst()
3391 if (AllocaInst *AI = in visitMemTransferInst()
3392 dyn_cast<AllocaInst>(OtherPtr->stripInBoundsOffsets())) { in visitMemTransferInst()
3442 } else if (AllocaInst *Base = dyn_cast<AllocaInst>( in visitMemTransferInst()
3539 } else if (AllocaInst *Base = dyn_cast<AllocaInst>( in visitMemTransferInst()
3919 if (auto *OldAI = dyn_cast<AllocaInst>(Base)) { in emitFunc()
4264 bool SROA::presplitLoadsAndStores(AllocaInst &AI, AllocaSlices &AS) { in presplitLoadsAndStores()
4449 SmallPtrSet<AllocaInst *, 4> ResplitPromotableAllocas; in presplitLoadsAndStores()
4561 if (AllocaInst *OtherAI = dyn_cast<AllocaInst>(StoreBasePtr)) { in presplitLoadsAndStores()
4564 } else if (AllocaInst *OtherAI = dyn_cast<AllocaInst>( in presplitLoadsAndStores()
4683 if (AllocaInst *OtherAI = dyn_cast<AllocaInst>(LoadBasePtr)) { in presplitLoadsAndStores()
4687 } else if (AllocaInst *OtherAI = dyn_cast<AllocaInst>( in presplitLoadsAndStores()
4726 llvm::erase_if(PromotableAllocas, [&](AllocaInst *AI) { in presplitLoadsAndStores()
4743 AllocaInst *SROA::rewritePartition(AllocaInst &AI, AllocaSlices &AS, in rewritePartition()
4805 AllocaInst *NewAI; in rewritePartition()
4817 NewAI = new AllocaInst( in rewritePartition()
4925 AllocaInst *NewAddr, DIExpression *NewFragmentExpr, in insertNewDbgInst()
4931 AllocaInst *NewAddr, DIExpression *NewFragmentExpr, in insertNewDbgInst()
4944 static void insertNewDbgInst(DIBuilder &DIB, DPValue *Orig, AllocaInst *NewAddr, in insertNewDbgInst()
4968 bool SROA::splitAlloca(AllocaInst &AI, AllocaSlices &AS) { in splitAlloca()
5038 AllocaInst *Alloca; in splitAlloca()
5041 Fragment(AllocaInst *AI, uint64_t O, uint64_t S) in splitAlloca()
5048 if (AllocaInst *NewAI = rewritePartition(AI, AS, P)) { in splitAlloca()
5167 SROA::runOnAlloca(AllocaInst &AI) { in runOnAlloca()
5250 SmallPtrSetImpl<AllocaInst *> &DeletedAllocas) { in deleteDeadInstructions()
5261 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) { in deleteDeadInstructions()
5316 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) { in runSROA()
5329 SmallPtrSet<AllocaInst *, 4> DeletedAllocas; in runSROA()
5343 auto IsInSet = [&](AllocaInst *AI) { return DeletedAllocas.count(AI); }; in runSROA()