summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCRegisterInfo.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-20 08:09:38 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-20 08:09:38 +0000
commitbf2c8b3c96f5c885095a10b0fcb29438f92d73c2 (patch)
treee29fe6ae443de3ff4bc386753587aa3654a67ba8 /lib/Target/PowerPC/PPCRegisterInfo.h
parenta16b7cb1d3a482a28bc8f73433f0034d8d8673d7 (diff)
downloadllvm-bf2c8b3c96f5c885095a10b0fcb29438f92d73c2.tar.gz
llvm-bf2c8b3c96f5c885095a10b0fcb29438f92d73c2.tar.bz2
llvm-bf2c8b3c96f5c885095a10b0fcb29438f92d73c2.tar.xz
Added MRegisterInfo hook to re-materialize an instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.h')
-rw-r--r--lib/Target/PowerPC/PPCRegisterInfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.h b/lib/Target/PowerPC/PPCRegisterInfo.h
index e23ab336f0..d8e8025091 100644
--- a/lib/Target/PowerPC/PPCRegisterInfo.h
+++ b/lib/Target/PowerPC/PPCRegisterInfo.h
@@ -49,6 +49,9 @@ public:
unsigned DestReg, unsigned SrcReg,
const TargetRegisterClass *RC) const;
+ void reMaterialize(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
+ unsigned DestReg, const MachineInstr *Orig) const;
+
/// foldMemoryOperand - PowerPC (like most RISC's) can only fold spills into
/// copy instructions, turning them into load/store instructions.
virtual MachineInstr* foldMemoryOperand(MachineInstr* MI, unsigned OpNum,