@@ -80,7 +80,7 @@ class LivePhysRegs {
80
80
bool empty () const { return LiveRegs.empty (); }
81
81
82
82
// / Adds a physical register and all its sub-registers to the set.
83
- void addReg (MCPhysReg Reg) {
83
+ void addReg (MCRegister Reg) {
84
84
assert (TRI && " LivePhysRegs is not initialized." );
85
85
assert (Reg < TRI->getNumRegs () && " Expected a physical register." );
86
86
for (MCPhysReg SubReg : TRI->subregs_inclusive (Reg))
@@ -89,7 +89,7 @@ class LivePhysRegs {
89
89
90
90
// / Removes a physical register, all its sub-registers, and all its
91
91
// / super-registers from the set.
92
- void removeReg (MCPhysReg Reg) {
92
+ void removeReg (MCRegister Reg) {
93
93
assert (TRI && " LivePhysRegs is not initialized." );
94
94
assert (Reg < TRI->getNumRegs () && " Expected a physical register." );
95
95
for (MCRegAliasIterator R (Reg, TRI, true ); R.isValid (); ++R)
@@ -106,10 +106,10 @@ class LivePhysRegs {
106
106
// / addReg() always adds all sub-registers to the set as well.
107
107
// / Note: Returns false if just some sub registers are live, use available()
108
108
// / when searching a free register.
109
- bool contains (MCPhysReg Reg) const { return LiveRegs.count (Reg); }
109
+ bool contains (MCRegister Reg) const { return LiveRegs.count (Reg. id () ); }
110
110
111
111
// / Returns true if register \p Reg and no aliasing register is in the set.
112
- bool available (const MachineRegisterInfo &MRI, MCPhysReg Reg) const ;
112
+ bool available (const MachineRegisterInfo &MRI, MCRegister Reg) const ;
113
113
114
114
// / Remove defined registers and regmask kills from the set.
115
115
void removeDefs (const MachineInstr &MI);
0 commit comments