@@ -269,7 +269,7 @@ class TargetInstrInfo : public MCInstrInfo {
269269 // / the destination along with the FrameIndex of the loaded stack slot. If
270270 // / not, return 0. This predicate must return 0 if the instruction has
271271 // / any side effects other than loading from the stack slot.
272- virtual unsigned isLoadFromStackSlot (const MachineInstr &MI,
272+ virtual Register isLoadFromStackSlot (const MachineInstr &MI,
273273 int &FrameIndex) const {
274274 return 0 ;
275275 }
@@ -278,7 +278,7 @@ class TargetInstrInfo : public MCInstrInfo {
278278 // / bytes loaded from the stack. This must be implemented if a backend
279279 // / supports partial stack slot spills/loads to further disambiguate
280280 // / what the load does.
281- virtual unsigned isLoadFromStackSlot (const MachineInstr &MI,
281+ virtual Register isLoadFromStackSlot (const MachineInstr &MI,
282282 int &FrameIndex,
283283 unsigned &MemBytes) const {
284284 MemBytes = 0 ;
@@ -287,7 +287,7 @@ class TargetInstrInfo : public MCInstrInfo {
287287
288288 // / Check for post-frame ptr elimination stack locations as well.
289289 // / This uses a heuristic so it isn't reliable for correctness.
290- virtual unsigned isLoadFromStackSlotPostFE (const MachineInstr &MI,
290+ virtual Register isLoadFromStackSlotPostFE (const MachineInstr &MI,
291291 int &FrameIndex) const {
292292 return 0 ;
293293 }
@@ -307,7 +307,7 @@ class TargetInstrInfo : public MCInstrInfo {
307307 // / the source reg along with the FrameIndex of the loaded stack slot. If
308308 // / not, return 0. This predicate must return 0 if the instruction has
309309 // / any side effects other than storing to the stack slot.
310- virtual unsigned isStoreToStackSlot (const MachineInstr &MI,
310+ virtual Register isStoreToStackSlot (const MachineInstr &MI,
311311 int &FrameIndex) const {
312312 return 0 ;
313313 }
@@ -316,7 +316,7 @@ class TargetInstrInfo : public MCInstrInfo {
316316 // / bytes stored to the stack. This must be implemented if a backend
317317 // / supports partial stack slot spills/loads to further disambiguate
318318 // / what the store does.
319- virtual unsigned isStoreToStackSlot (const MachineInstr &MI,
319+ virtual Register isStoreToStackSlot (const MachineInstr &MI,
320320 int &FrameIndex,
321321 unsigned &MemBytes) const {
322322 MemBytes = 0 ;
@@ -325,7 +325,7 @@ class TargetInstrInfo : public MCInstrInfo {
325325
326326 // / Check for post-frame ptr elimination stack locations as well.
327327 // / This uses a heuristic, so it isn't reliable for correctness.
328- virtual unsigned isStoreToStackSlotPostFE (const MachineInstr &MI,
328+ virtual Register isStoreToStackSlotPostFE (const MachineInstr &MI,
329329 int &FrameIndex) const {
330330 return 0 ;
331331 }
0 commit comments