mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 06:03:52 +00:00
trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112852 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df0b94bcea
commit
5c33f5bf67
@ -641,19 +641,19 @@ needsStackRealignment(const MachineFunction &MF) const {
|
|||||||
unsigned StackAlign = MF.getTarget().getFrameInfo()->getStackAlignment();
|
unsigned StackAlign = MF.getTarget().getFrameInfo()->getStackAlignment();
|
||||||
bool requiresRealignment = ((MFI->getMaxAlignment() > StackAlign) ||
|
bool requiresRealignment = ((MFI->getMaxAlignment() > StackAlign) ||
|
||||||
F->hasFnAttr(Attribute::StackAlignment));
|
F->hasFnAttr(Attribute::StackAlignment));
|
||||||
|
|
||||||
// FIXME: Currently we don't support stack realignment for functions with
|
// FIXME: Currently we don't support stack realignment for functions with
|
||||||
// variable-sized allocas.
|
// variable-sized allocas.
|
||||||
// FIXME: It's more complicated than this...
|
// FIXME: It's more complicated than this...
|
||||||
if (0 && requiresRealignment && MFI->hasVarSizedObjects())
|
if (0 && requiresRealignment && MFI->hasVarSizedObjects())
|
||||||
report_fatal_error(
|
report_fatal_error(
|
||||||
"Stack realignment in presense of dynamic allocas is not supported");
|
"Stack realignment in presense of dynamic allocas is not supported");
|
||||||
|
|
||||||
// FIXME: This probably isn't the right place for this.
|
// FIXME: This probably isn't the right place for this.
|
||||||
if (0 && requiresRealignment && AFI->isThumb1OnlyFunction())
|
if (0 && requiresRealignment && AFI->isThumb1OnlyFunction())
|
||||||
report_fatal_error(
|
report_fatal_error(
|
||||||
"Stack realignment in thumb1 functions is not supported");
|
"Stack realignment in thumb1 functions is not supported");
|
||||||
|
|
||||||
return requiresRealignment && canRealignStack(MF);
|
return requiresRealignment && canRealignStack(MF);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -984,7 +984,7 @@ unsigned ARMBaseRegisterInfo::getRARegister() const {
|
|||||||
return ARM::LR;
|
return ARM::LR;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned
|
unsigned
|
||||||
ARMBaseRegisterInfo::getFrameRegister(const MachineFunction &MF) const {
|
ARMBaseRegisterInfo::getFrameRegister(const MachineFunction &MF) const {
|
||||||
if (hasFP(MF))
|
if (hasFP(MF))
|
||||||
return FramePtr;
|
return FramePtr;
|
||||||
@ -1980,7 +1980,7 @@ emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const {
|
|||||||
|
|
||||||
// Jump to label or value in register.
|
// Jump to label or value in register.
|
||||||
if (RetOpcode == ARM::TCRETURNdi) {
|
if (RetOpcode == ARM::TCRETURNdi) {
|
||||||
BuildMI(MBB, MBBI, dl,
|
BuildMI(MBB, MBBI, dl,
|
||||||
TII.get(STI.isThumb() ? ARM::TAILJMPdt : ARM::TAILJMPd)).
|
TII.get(STI.isThumb() ? ARM::TAILJMPdt : ARM::TAILJMPd)).
|
||||||
addGlobalAddress(JumpTarget.getGlobal(), JumpTarget.getOffset(),
|
addGlobalAddress(JumpTarget.getGlobal(), JumpTarget.getOffset(),
|
||||||
JumpTarget.getTargetFlags());
|
JumpTarget.getTargetFlags());
|
||||||
@ -1995,7 +1995,7 @@ emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const {
|
|||||||
} else if (RetOpcode == ARM::TCRETURNriND) {
|
} else if (RetOpcode == ARM::TCRETURNriND) {
|
||||||
BuildMI(MBB, MBBI, dl, TII.get(ARM::TAILJMPrND)).
|
BuildMI(MBB, MBBI, dl, TII.get(ARM::TAILJMPrND)).
|
||||||
addReg(JumpTarget.getReg(), RegState::Kill);
|
addReg(JumpTarget.getReg(), RegState::Kill);
|
||||||
}
|
}
|
||||||
|
|
||||||
MachineInstr *NewMI = prior(MBBI);
|
MachineInstr *NewMI = prior(MBBI);
|
||||||
for (unsigned i = 1, e = MBBI->getNumOperands(); i != e; ++i)
|
for (unsigned i = 1, e = MBBI->getNumOperands(); i != e; ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user