diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-03 06:44:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-03 06:44:54 +0000 |
commit | 5ccc7225db0cb4d738045ade8e8c38d5345ac08a (patch) | |
tree | 2636570165e7bf599f2b335bd06fb34641905874 /lib/Target/Sparc/SparcInstrInfo.h | |
parent | e4a8a6e645b82e8fb5863ae78717cf99cd295f89 (diff) | |
download | llvm-5ccc7225db0cb4d738045ade8e8c38d5345ac08a.tar.gz llvm-5ccc7225db0cb4d738045ade8e8c38d5345ac08a.tar.bz2 llvm-5ccc7225db0cb4d738045ade8e8c38d5345ac08a.tar.xz |
Implement isLoadFromStackSlot and isStoreToStackSlot
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcInstrInfo.h')
-rw-r--r-- | lib/Target/Sparc/SparcInstrInfo.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.h b/lib/Target/Sparc/SparcInstrInfo.h index dc4cf0f65b..067fb91cb2 100644 --- a/lib/Target/Sparc/SparcInstrInfo.h +++ b/lib/Target/Sparc/SparcInstrInfo.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; }; } |