diff options
author | Chris Lattner <sabre@nondot.org> | 2005-09-17 01:02:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-09-17 01:02:45 +0000 |
commit | 7d3041e060adfd1f4054f45581bb01a4b9920f56 (patch) | |
tree | cb09f1d23014e7357b068fc5a8e80cce4a225586 | |
parent | 452d7bebaab3990ed16efa5f21b1031894a99caf (diff) |
add a new callback
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23373 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/MRegisterInfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h index 12e28c0dad..9ddb4953f7 100644 --- a/include/llvm/Target/MRegisterInfo.h +++ b/include/llvm/Target/MRegisterInfo.h @@ -250,6 +250,14 @@ public: 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 |