summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/SparcV8/SparcV8InstrInfo.h')
-rw-r--r--llvm/lib/Target/SparcV8/SparcV8InstrInfo.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h b/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h
index dc4cf0f65bc..067fb91cb26 100644
--- a/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h
+++ b/llvm/lib/Target/SparcV8/SparcV8InstrInfo.h
@@ -47,6 +47,20 @@ public:
///
virtual bool isMoveInstr(const MachineInstr &MI,
unsigned &SrcReg, unsigned &DstReg) const;
+
+ /// isLoadFromStackSlot - If the specified machine instruction is a direct
+ /// load from a stack slot, return the virtual or physical register number of
+ /// the destination along with the FrameIndex of the loaded stack slot. If
+ /// not, return 0. This predicate must return 0 if the instruction has
+ /// any side effects other than loading from the stack slot.
+ virtual unsigned isLoadFromStackSlot(MachineInstr *MI, int &FrameIndex) const;
+
+ /// isStoreToStackSlot - If the specified machine instruction is a direct
+ /// store to a stack slot, return the virtual or physical register number of
+ /// the source reg along with the FrameIndex of the loaded stack slot. If
+ /// not, return 0. This predicate must return 0 if the instruction has
+ /// any side effects other than storing to the stack slot.
+ virtual unsigned isStoreToStackSlot(MachineInstr *MI, int &FrameIndex) const;
};
}
OpenPOWER on IntegriCloud