Lines Matching defs:Allocas
227 std::vector<AllocaInst *> Allocas;
237 /// Reverse mapping of Allocas.
248 /// For each PHI node, keep track of which entry in Allocas it corresponds
268 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
270 : Allocas(Allocas.begin(), Allocas.end()), DT(DT),
279 Allocas[AllocaIdx] = Allocas.back();
280 Allocas.pop_back();
534 AllocaDbgDeclares.resize(Allocas.size());
540 for (unsigned AllocaNum = 0; AllocaNum != Allocas.size(); ++AllocaNum) {
541 AllocaInst *AI = Allocas[AllocaNum];
553 // Remove the alloca from the Allocas list, since it has been processed
595 // Keep the reverse mapping of the 'Allocas' array for the rename pass.
596 AllocaLookup[Allocas[AllocaNum]] = AllocaNum;
624 if (Allocas.empty())
632 RenamePassData::ValVector Values(Allocas.size());
633 for (unsigned i = 0, e = Allocas.size(); i != e; ++i)
634 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType());
638 RenamePassData::LocationVector Locations(Allocas.size());
656 for (Instruction *A : Allocas) {
848 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB),
849 Allocas[AllocaNo]->getName() + "." + Twine(Version++),
995 void llvm::PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
998 if (Allocas.empty())
1001 PromoteMem2Reg(Allocas, DT, AC).run();