Provide the register scavenger to processFunctionBeforeFrameFinalized
authorHal Finkel <hfinkel@anl.gov>
Thu, 14 Mar 2013 20:33:40 +0000 (20:33 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 14 Mar 2013 20:33:40 +0000 (20:33 +0000)
commit3080d23fde4981835d8a7faf46c152441fadb11f
treeaa50e240fd99da2a198046d32f37dbf17c4064fa
parent1c6c61a6089fb2bef47de5ee9a5f4acc34047600
Provide the register scavenger to processFunctionBeforeFrameFinalized

Add the current PEI register scavenger as a parameter to the
processFunctionBeforeFrameFinalized callback.

This change is necessary in order to allow the PowerPC target code to
set the register scavenger frame index after the save-area offset
adjustments performed by processFunctionBeforeFrameFinalized. Only
after these adjustments have been made is it possible to estimate
the size of the stack frame.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177108 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetFrameLowering.h
lib/CodeGen/PrologEpilogInserter.cpp
lib/Target/MBlaze/MBlazeRegisterInfo.cpp
lib/Target/MBlaze/MBlazeRegisterInfo.h
lib/Target/MSP430/MSP430FrameLowering.cpp
lib/Target/MSP430/MSP430FrameLowering.h
lib/Target/Mips/MipsRegisterInfo.h
lib/Target/PowerPC/PPCFrameLowering.cpp
lib/Target/PowerPC/PPCFrameLowering.h
lib/Target/Sparc/SparcRegisterInfo.h