Lines Matching refs:AllocaInst
61 bool llvm::isAllocaPromotable(const AllocaInst *AI) {
129 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;
246 DenseMap<AllocaInst *, unsigned> AllocaLookup;
285 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
307 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
309 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
320 static void removeLifetimeIntrinsicUsers(AllocaInst *AI) {
352 static bool rewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info,
450 static void promoteSingleBlockAlloca(AllocaInst *AI, const AllocaInfo &Info,
537 AllocaInst *AI = Allocas[AllocaNum];
777 AllocaInst *AI, AllocaInfo &Info,
851 void PromoteMem2Reg::DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
1023 AllocaInst *Src = dyn_cast<AllocaInst>(LI->getPointerOperand());
1027 DenseMap<AllocaInst *, unsigned>::iterator AI = AllocaLookup.find(Src);
1041 AllocaInst *Dest = dyn_cast<AllocaInst>(SI->getPointerOperand());
1045 DenseMap<AllocaInst *, unsigned>::iterator ai = AllocaLookup.find(Dest);
1079 void llvm::PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,