mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Blackfin always uses a reserved call frame.
Materializing the stack pointer update before a call requires a scratch register that may not be available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132601 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec281c8934
commit
7b5fdc7fbd
@ -31,6 +31,12 @@ bool BlackfinFrameLowering::hasFP(const MachineFunction &MF) const {
|
||||
MFI->adjustsStack() || MFI->hasVarSizedObjects();
|
||||
}
|
||||
|
||||
// Always reserve a call frame. We dont have enough registers to adjust SP.
|
||||
bool BlackfinFrameLowering::
|
||||
hasReservedCallFrame(const MachineFunction &MF) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Emit a prologue that sets up a stack frame.
|
||||
// On function entry, R0-R2 and P0 may hold arguments.
|
||||
// R3, P1, and P2 may be used as scratch registers
|
||||
|
@ -36,6 +36,7 @@ public:
|
||||
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
|
||||
|
||||
bool hasFP(const MachineFunction &MF) const;
|
||||
bool hasReservedCallFrame(const MachineFunction &MF) const;
|
||||
|
||||
void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
|
||||
RegScavenger *RS) const;
|
||||
|
@ -41,8 +41,6 @@ namespace llvm {
|
||||
return &BF::PRegClass;
|
||||
}
|
||||
|
||||
// bool hasReservedCallFrame(MachineFunction &MF) const;
|
||||
|
||||
bool requiresRegisterScavenging(const MachineFunction &MF) const;
|
||||
|
||||
void eliminateCallFramePseudoInstr(MachineFunction &MF,
|
||||
|
Loading…
Reference in New Issue
Block a user