Lines Matching defs:Allocas
349 std::vector<AllocaInst *> Allocas;
359 /// Reverse mapping of Allocas.
369 /// For each PHI node, keep track of which entry in Allocas it corresponds
398 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
400 : Allocas(Allocas.begin(), Allocas.end()), DT(DT),
409 Allocas[AllocaIdx] = Allocas.back();
410 Allocas.pop_back();
746 AllocaDbgUsers.resize(Allocas.size());
747 AllocaATInfo.resize(Allocas.size());
748 AllocaDPUsers.resize(Allocas.size());
756 for (unsigned AllocaNum = 0; AllocaNum != Allocas.size(); ++AllocaNum) {
757 AllocaInst *AI = Allocas[AllocaNum];
769 // Remove the alloca from the Allocas list, since it has been processed
813 // Keep the reverse mapping of the 'Allocas' array for the rename pass.
814 AllocaLookup[Allocas[AllocaNum]] = AllocaNum;
842 if (Allocas.empty()) {
851 RenamePassData::ValVector Values(Allocas.size());
852 for (unsigned i = 0, e = Allocas.size(); i != e; ++i)
853 Values[i] = UndefValue::get(Allocas[i]->getAllocatedType());
857 RenamePassData::LocationVector Locations(Allocas.size());
875 for (Instruction *A : Allocas) {
1077 PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), getNumPreds(BB),
1078 Allocas[AllocaNo]->getName() + "." + Twine(Version++));
1240 void llvm::PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
1243 if (Allocas.empty())
1246 PromoteMem2Reg(Allocas, DT, AC).run();