diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-08-30 05:52:20 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-08-30 05:52:20 +0000 |
commit | 35b35c5c320a71e4611fe2101452da685f8eeda0 (patch) | |
tree | c2c368975d01bcc5e02f19a769cc59ec5286d914 /lib/Target/PowerPC | |
parent | 42a0f9a4fb74bf11fdc36a73772b7c9b744cc867 (diff) | |
download | external_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 'lib/Target/PowerPC')
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.h b/lib/Target/PowerPC/PPCRegisterInfo.h index 0a1446e..19bec1c 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.h +++ b/lib/Target/PowerPC/PPCRegisterInfo.h @@ -57,6 +57,11 @@ public: virtual MachineInstr* foldMemoryOperand(MachineInstr* MI, unsigned OpNum, int FrameIndex) const; + virtual MachineInstr* foldMemoryOperand(MachineInstr* MI, unsigned OpNum, + MachineInstr* LoadMI) const { + return 0; + } + const unsigned *getCalleeSavedRegs(const MachineFunction* MF = 0) const; const TargetRegisterClass* const* |