Lines Matching defs:Allocas
347 std::vector<AllocaInst *> Allocas;
357 /// Reverse mapping of Allocas.
368 /// For each PHI node, keep track of which entry in Allocas it corresponds
400 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
402 : Allocas(Allocas.begin(), Allocas.end()), DT(DT),
411 Allocas[AllocaIdx] = Allocas.back();
412 Allocas.pop_back();
743 AllocaDbgUsers.resize(Allocas.size());
744 AllocaATInfo.resize(Allocas.size());
745 AllocaDPUsers.resize(Allocas.size());
753 for (unsigned AllocaNum = 0; AllocaNum != Allocas.size(); ++AllocaNum) {
754 AllocaInst *AI = Allocas[AllocaNum];
766 // Remove the alloca from the Allocas list, since it has been processed
814 // Keep the reverse mapping of the 'Allocas' array for the rename pass.
815 AllocaLookup[Allocas[AllocaNum]] = AllocaNum;
843 if (Allocas.empty()) {
852 RenamePassData::ValVector Values(Allocas.size());
853 for (unsigned i = 0, e = Allocas.size(); i != e; ++i)
854 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType());
858 RenamePassData::LocationVector Locations(Allocas.size());
876 for (Instruction *A : Allocas) {
1078 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB),
1079 Allocas[AllocaNo]->getName() + "." + Twine(Version++));
1240 void llvm::PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
1243 if (Allocas.empty())
1246 PromoteMem2Reg(Allocas, DT, AC).run();