diff options
author | Dan Gohman <gohman@apple.com> | 2008-12-03 18:43:12 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-12-03 18:43:12 +0000 |
commit | edc83d6ec19f32ce2a3ea11109674d5370815d8c (patch) | |
tree | ad313e4118764997456031f56e635224cfc27ecb /lib/Target/X86/X86InstrInfo.h | |
parent | 5574cc7ede8b35672892ed36be37cd81555857ff (diff) | |
download | external_llvm-edc83d6ec19f32ce2a3ea11109674d5370815d8c.zip external_llvm-edc83d6ec19f32ce2a3ea11109674d5370815d8c.tar.gz external_llvm-edc83d6ec19f32ce2a3ea11109674d5370815d8c.tar.bz2 |
Split foldMemoryOperand into public non-virtual and protected virtual
parts, and add target-independent code to add/preserve
MachineMemOperands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrInfo.h')
-rw-r--r-- | lib/Target/X86/X86InstrInfo.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/Target/X86/X86InstrInfo.h b/lib/Target/X86/X86InstrInfo.h index a0e0124..21c9a1f 100644 --- a/lib/Target/X86/X86InstrInfo.h +++ b/lib/Target/X86/X86InstrInfo.h @@ -368,18 +368,18 @@ public: /// folding and return true, otherwise it should return false. If it folds /// the instruction, it is likely that the MachineInstruction the iterator /// references has been changed. - virtual MachineInstr* foldMemoryOperand(MachineFunction &MF, - MachineInstr* MI, - const SmallVectorImpl<unsigned> &Ops, - int FrameIndex) const; + virtual MachineInstr* foldMemoryOperandImpl(MachineFunction &MF, + MachineInstr* MI, + const SmallVectorImpl<unsigned> &Ops, + int FrameIndex) const; /// 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(MachineFunction &MF, - MachineInstr* MI, - const SmallVectorImpl<unsigned> &Ops, - MachineInstr* LoadMI) const; + virtual MachineInstr* foldMemoryOperandImpl(MachineFunction &MF, + MachineInstr* MI, + const SmallVectorImpl<unsigned> &Ops, + MachineInstr* LoadMI) const; /// canFoldMemoryOperand - Returns true if the specified load / store is /// folding is possible. @@ -444,10 +444,10 @@ public: unsigned getGlobalBaseReg(MachineFunction *MF) const; private: - MachineInstr* foldMemoryOperand(MachineFunction &MF, - MachineInstr* MI, - unsigned OpNum, - const SmallVector<MachineOperand,4> &MOs) const; + MachineInstr* foldMemoryOperandImpl(MachineFunction &MF, + MachineInstr* MI, + unsigned OpNum, + const SmallVector<MachineOperand,4> &MOs) const; }; } // End llvm namespace |