Lines Matching refs:Reg

34 void RegScavenger::setRegUsed(unsigned Reg, LaneBitmask LaneMask) {  in setRegUsed()  argument
35 for (MCRegUnitMaskIterator RUI(Reg, TRI); RUI.isValid(); ++RUI) { in setRegUsed()
45 I->Reg = 0; in initRegState()
95 void RegScavenger::addRegUnits(BitVector &BV, unsigned Reg) { in addRegUnits() argument
96 for (MCRegUnitIterator RUI(Reg, TRI); RUI.isValid(); ++RUI) in addRegUnits()
129 unsigned Reg = MO.getReg(); in determineKillsAndDefs() local
130 if (!Reg || TargetRegisterInfo::isVirtualRegister(Reg) || isReserved(Reg)) in determineKillsAndDefs()
138 addRegUnits(KillRegUnits, Reg); in determineKillsAndDefs()
142 addRegUnits(KillRegUnits, Reg); in determineKillsAndDefs()
144 addRegUnits(DefRegUnits, Reg); in determineKillsAndDefs()
186 I->Reg = 0; in forward()
201 unsigned Reg = MO.getReg(); in forward() local
202 if (!Reg || TargetRegisterInfo::isVirtualRegister(Reg) || isReserved(Reg)) in forward()
207 if (!isRegUsed(Reg)) { in forward()
217 for (MCSubRegIterator SubRegs(Reg, TRI); SubRegs.isValid(); ++SubRegs) in forward()
223 for (MCSuperRegIterator SR(Reg, TRI); SR.isValid(); ++SR) { in forward()
241 assert((KillRegs.test(Reg) || isUnused(Reg) || in forward()
242 isLiveInButUnusedBefore(Reg, MI, MBB, TRI, MRI)) && in forward()
254 bool RegScavenger::isRegUsed(unsigned Reg, bool includeReserved) const { in isRegUsed() argument
255 if (includeReserved && isReserved(Reg)) in isRegUsed()
257 for (MCRegUnitIterator RUI(Reg, TRI); RUI.isValid(); ++RUI) in isRegUsed()
401 if (Scavenged[SI].Reg == 0) in scavengeRegister()
411 Scavenged[SI].Reg = SReg; in scavengeRegister()