aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCRegisterInfo.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-03-03 22:19:16 +0000
committerBill Wendling <isanbard@gmail.com>2008-03-03 22:19:16 +0000
commit7194aaf738a1b89441635340403f1c5b06ae18ef (patch)
tree3e494b97a01adb719cb3d43e00444c4adf625a69 /lib/Target/PowerPC/PPCRegisterInfo.h
parent4a23d72ec21d1bdfda69fd16c9fc10cec39f1fed (diff)
downloadexternal_llvm-7194aaf738a1b89441635340403f1c5b06ae18ef.zip
external_llvm-7194aaf738a1b89441635340403f1c5b06ae18ef.tar.gz
external_llvm-7194aaf738a1b89441635340403f1c5b06ae18ef.tar.bz2
This is the initial check-in for adding register scavenging to PPC. (Currently,
PPC-64 doesn't work.) This also lowers the spilling of the CR registers so that it uses a register other than the default R0 register (the scavenger scrounges for one). A significant part of this patch fixes how kill information is handled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47863 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.h')
-rw-r--r--lib/Target/PowerPC/PPCRegisterInfo.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.h b/lib/Target/PowerPC/PPCRegisterInfo.h
index fc17b02..7da354a 100644
--- a/lib/Target/PowerPC/PPCRegisterInfo.h
+++ b/lib/Target/PowerPC/PPCRegisterInfo.h
@@ -51,13 +51,20 @@ public:
/// time).
bool targetHandlesStackFrameRounding() const { return true; }
+ /// requiresRegisterScavenging - We require a register scavenger.
+ /// FIXME (64-bit): Should be inlined.
+ bool requiresRegisterScavenging(const MachineFunction &MF) const;
+
bool hasFP(const MachineFunction &MF) const;
void eliminateCallFramePseudoInstr(MachineFunction &MF,
MachineBasicBlock &MBB,
MachineBasicBlock::iterator I) const;
- void lowerDynamicAlloc(MachineBasicBlock::iterator II) const;
+ void lowerDynamicAlloc(MachineBasicBlock::iterator II,
+ int SPAdj, RegScavenger *RS) const;
+ void lowerCRSpilling(MachineBasicBlock::iterator II, unsigned FrameIndex,
+ int SPAdj, RegScavenger *RS) const;
void eliminateFrameIndex(MachineBasicBlock::iterator II,
int SPAdj, RegScavenger *RS = NULL) const;