diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-08-08 20:53:24 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-08-08 20:53:24 +0000 |
commit | 2df3f58a0b3937f2cbd76d3417d2905ca86cf8fa (patch) | |
tree | 8527782b17a54d4aed0401f26d6aa7265c7f2b3c /include/llvm/Target | |
parent | 6d74631062e4464326eb5c680a4d62d340fa42eb (diff) | |
download | llvm-2df3f58a0b3937f2cbd76d3417d2905ca86cf8fa.tar.gz llvm-2df3f58a0b3937f2cbd76d3417d2905ca86cf8fa.tar.bz2 llvm-2df3f58a0b3937f2cbd76d3417d2905ca86cf8fa.tar.xz |
Hoist hasLoadFromStackSlot and hasStoreToStackSlot.
These the methods are target-independent since they simply scan the
memory operands. They can live in TargetInstrInfoImpl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index f6635667b5..3b21be6d83 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -693,6 +693,12 @@ public: unsigned &SrcOpIdx2) const; virtual bool canFoldMemoryOperand(const MachineInstr *MI, const SmallVectorImpl<unsigned> &Ops) const; + virtual bool hasLoadFromStackSlot(const MachineInstr *MI, + const MachineMemOperand *&MMO, + int &FrameIndex) const; + virtual bool hasStoreToStackSlot(const MachineInstr *MI, + const MachineMemOperand *&MMO, + int &FrameIndex) const; virtual bool PredicateInstruction(MachineInstr *MI, const SmallVectorImpl<MachineOperand> &Pred) const; virtual void reMaterialize(MachineBasicBlock &MBB, |