@@ -269,7 +269,7 @@ class TargetInstrInfo : public MCInstrInfo {
269
269
// / the destination along with the FrameIndex of the loaded stack slot. If
270
270
// / not, return 0. This predicate must return 0 if the instruction has
271
271
// / any side effects other than loading from the stack slot.
272
- virtual unsigned isLoadFromStackSlot (const MachineInstr &MI,
272
+ virtual Register isLoadFromStackSlot (const MachineInstr &MI,
273
273
int &FrameIndex) const {
274
274
return 0 ;
275
275
}
@@ -278,7 +278,7 @@ class TargetInstrInfo : public MCInstrInfo {
278
278
// / bytes loaded from the stack. This must be implemented if a backend
279
279
// / supports partial stack slot spills/loads to further disambiguate
280
280
// / what the load does.
281
- virtual unsigned isLoadFromStackSlot (const MachineInstr &MI,
281
+ virtual Register isLoadFromStackSlot (const MachineInstr &MI,
282
282
int &FrameIndex,
283
283
unsigned &MemBytes) const {
284
284
MemBytes = 0 ;
@@ -287,7 +287,7 @@ class TargetInstrInfo : public MCInstrInfo {
287
287
288
288
// / Check for post-frame ptr elimination stack locations as well.
289
289
// / 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,
291
291
int &FrameIndex) const {
292
292
return 0 ;
293
293
}
@@ -307,7 +307,7 @@ class TargetInstrInfo : public MCInstrInfo {
307
307
// / the source reg along with the FrameIndex of the loaded stack slot. If
308
308
// / not, return 0. This predicate must return 0 if the instruction has
309
309
// / any side effects other than storing to the stack slot.
310
- virtual unsigned isStoreToStackSlot (const MachineInstr &MI,
310
+ virtual Register isStoreToStackSlot (const MachineInstr &MI,
311
311
int &FrameIndex) const {
312
312
return 0 ;
313
313
}
@@ -316,7 +316,7 @@ class TargetInstrInfo : public MCInstrInfo {
316
316
// / bytes stored to the stack. This must be implemented if a backend
317
317
// / supports partial stack slot spills/loads to further disambiguate
318
318
// / what the store does.
319
- virtual unsigned isStoreToStackSlot (const MachineInstr &MI,
319
+ virtual Register isStoreToStackSlot (const MachineInstr &MI,
320
320
int &FrameIndex,
321
321
unsigned &MemBytes) const {
322
322
MemBytes = 0 ;
@@ -325,7 +325,7 @@ class TargetInstrInfo : public MCInstrInfo {
325
325
326
326
// / Check for post-frame ptr elimination stack locations as well.
327
327
// / 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,
329
329
int &FrameIndex) const {
330
330
return 0 ;
331
331
}
0 commit comments