[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Sep 16 18:02:57 PDT 2005
Changes in directory llvm/include/llvm/Target:
MRegisterInfo.h updated: 1.57 -> 1.58
---
Log message:
add a new callback
---
Diffs of the changes: (+8 -0)
MRegisterInfo.h | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.57 llvm/include/llvm/Target/MRegisterInfo.h:1.58
--- llvm/include/llvm/Target/MRegisterInfo.h:1.57 Thu Apr 21 22:46:24 2005
+++ llvm/include/llvm/Target/MRegisterInfo.h Fri Sep 16 20:02:45 2005
@@ -250,6 +250,14 @@
unsigned DestReg, unsigned SrcReg,
const TargetRegisterClass *RC) const = 0;
+ /// 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 false if the instruction has
+ /// any side effects other than loading from the stack slot.
+ virtual unsigned isLoadFromStackSlot(MachineInstr *MI, int &FrameIndex) const{
+ return 0;
+ }
/// foldMemoryOperand - Attempt to fold a load or store of the
/// specified stack slot into the specified machine instruction for
More information about the llvm-commits
mailing list