Lines Matching refs:Regs
946 SmallVector<std::pair<unsigned,bool>, 4> Regs; in emitPushInst() local
978 Regs.push_back(std::make_pair(Reg, isKill)); in emitPushInst()
981 if (Regs.empty()) in emitPushInst()
983 if (Regs.size() > 1 || StrOpc== 0) { in emitPushInst()
987 for (unsigned i = 0, e = Regs.size(); i < e; ++i) in emitPushInst()
988 MIB.addReg(Regs[i].first, getKillRegState(Regs[i].second)); in emitPushInst()
989 } else if (Regs.size() == 1) { in emitPushInst()
992 .addReg(Regs[0].first, getKillRegState(Regs[0].second)) in emitPushInst()
997 Regs.clear(); in emitPushInst()
1023 SmallVector<unsigned, 4> Regs; in emitPopInst() local
1051 Regs.push_back(Reg); in emitPopInst()
1054 if (Regs.empty()) in emitPopInst()
1056 if (Regs.size() > 1 || LdrOpc == 0) { in emitPopInst()
1060 for (unsigned i = 0, e = Regs.size(); i < e; ++i) in emitPopInst()
1061 MIB.addReg(Regs[i], getDefRegState(true)); in emitPopInst()
1067 } else if (Regs.size() == 1) { in emitPopInst()
1070 if (Regs[0] == ARM::PC) in emitPopInst()
1071 Regs[0] = ARM::LR; in emitPopInst()
1073 BuildMI(MBB, MI, DL, TII.get(LdrOpc), Regs[0]) in emitPopInst()
1085 Regs.clear(); in emitPopInst()