Lines Matching refs:AllocaInst
82 bool llvm::isAllocaPromotable(const AllocaInst *AI) { in isAllocaPromotable()
162 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction()
163 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); in isInterestingInstruction()
203 std::vector<AllocaInst*> Allocas;
213 DenseMap<AllocaInst*, unsigned> AllocaLookup;
248 PromoteMem2Reg(const std::vector<AllocaInst*> &A, DominatorTree &dt, in PromoteMem2Reg()
277 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
279 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
283 void RewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info,
285 void PromoteSingleBlockAlloca(AllocaInst *AI, AllocaInfo &Info,
317 void AnalyzeAlloca(AllocaInst *AI) { in AnalyzeAlloca()
361 static void removeLifetimeIntrinsicUsers(AllocaInst *AI) { in removeLifetimeIntrinsicUsers()
397 AllocaInst *AI = Allocas[AllocaNum]; in run()
675 ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info, in ComputeLiveInBlocks()
746 void PromoteMem2Reg::DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum, in DetermineInsertionPoint()
834 void PromoteMem2Reg::RewriteSingleStoreAlloca(AllocaInst *AI, in RewriteSingleStoreAlloca()
922 void PromoteMem2Reg::PromoteSingleBlockAlloca(AllocaInst *AI, AllocaInfo &Info, in PromoteSingleBlockAlloca()
1072 AllocaInst *Src = dyn_cast<AllocaInst>(LI->getPointerOperand()); in RenamePass()
1075 DenseMap<AllocaInst*, unsigned>::iterator AI = AllocaLookup.find(Src); in RenamePass()
1088 AllocaInst *Dest = dyn_cast<AllocaInst>(SI->getPointerOperand()); in RenamePass()
1091 DenseMap<AllocaInst *, unsigned>::iterator ai = AllocaLookup.find(Dest); in RenamePass()
1135 void llvm::PromoteMemToReg(const std::vector<AllocaInst*> &Allocas, in PromoteMemToReg()