Lines Matching refs:AllocaInst
59 bool llvm::isAllocaPromotable(const AllocaInst *AI) {
128 void AnalyzeAlloca(AllocaInst *AI) {
199 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) ||
200 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1)));
235 std::vector<AllocaInst *> Allocas;
243 DenseMap<AllocaInst *, unsigned> AllocaLookup;
282 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
303 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
305 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
316 static void removeLifetimeIntrinsicUsers(AllocaInst *AI) {
350 static bool rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info,
447 static void promoteSingleBlockAlloca(AllocaInst *AI, const AllocaInfo &Info,
533 AllocaInst *AI = Allocas[AllocaNum];
771 AllocaInst *AI, AllocaInfo &Info,
845 void PromoteMem2Reg::DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
1016 AllocaInst *Src = dyn_cast<AllocaInst>(LI->getPointerOperand());
1020 DenseMap<AllocaInst *, unsigned>::iterator AI = AllocaLookup.find(Src);
1034 AllocaInst *Dest = dyn_cast<AllocaInst>(SI->getPointerOperand());
1038 DenseMap<AllocaInst *, unsigned>::iterator ai = AllocaLookup.find(Dest);
1072 void llvm::PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,