aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-08-30 05:52:20 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-08-30 05:52:20 +0000
commit35b35c5c320a71e4611fe2101452da685f8eeda0 (patch)
treec2c368975d01bcc5e02f19a769cc59ec5286d914 /include/llvm/Target
parent42a0f9a4fb74bf11fdc36a73772b7c9b744cc867 (diff)
downloadexternal_llvm-35b35c5c320a71e4611fe2101452da685f8eeda0.zip
external_llvm-35b35c5c320a71e4611fe2101452da685f8eeda0.tar.gz
external_llvm-35b35c5c320a71e4611fe2101452da685f8eeda0.tar.bz2
Add a variant of foldMemoryOperand to fold any load / store, not just load / store from / to stack slots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/MRegisterInfo.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h
index d88bcf0..a4846d8 100644
--- a/include/llvm/Target/MRegisterInfo.h
+++ b/include/llvm/Target/MRegisterInfo.h
@@ -521,6 +521,15 @@ public:
return 0;
}
+ /// foldMemoryOperand - Same as the previous version except it allows folding
+ /// of any load and store from / to any address, not just from a specific
+ /// stack slot.
+ virtual MachineInstr* foldMemoryOperand(MachineInstr* MI,
+ unsigned OpNum,
+ MachineInstr* LoadMI) const {
+ return 0;
+ }
+
/// targetHandlesStackFrameRounding - Returns true if the target is responsible
/// for rounding up the stack frame (probably at emitPrologue time).
virtual bool targetHandlesStackFrameRounding() const {