Roman Divacky
2012-Aug-06 18:26 UTC
[LLVMdev] processFunctionBeforeFrameFinalized setting object offset without effect, stack frame layout wrong
Hi, Target overrides of processFunctionBeforeFrameFinalized() are misused in two cases (MBlaze and PowerPC) to set the offsets of objects. Unfortunately this has no effect because the offsets are immediately reset by calculateFrameObjectOffsets(). The PowerPC backend does this to setup the stack frame layout according to the ABI. Ie. it spills the registers etc. in a fixed layout. How to do that properly? thank you, roman
Jim Grosbach
2012-Aug-06 18:39 UTC
[LLVMdev] processFunctionBeforeFrameFinalized setting object offset without effect, stack frame layout wrong
On Aug 6, 2012, at 11:26 AM, Roman Divacky <rdivacky at freebsd.org> wrote:> Hi, > > Target overrides of processFunctionBeforeFrameFinalized() are misused > in two cases (MBlaze and PowerPC) to set the offsets of objects. Unfortunately > this has no effect because the offsets are immediately reset by > calculateFrameObjectOffsets(). > > > The PowerPC backend does this to setup the stack frame layout according to > the ABI. Ie. it spills the registers etc. in a fixed layout. How to do that > properly? >Hi Roman, Have a look at spillCalleeSavedRegisters() and restoreCalleeSavedRegisters(). I suspect they're what you're looking for. -Jim> thank you, roman > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Seemingly Similar Threads
- [LLVMdev] Modifying DAG in TargetLowering::ReplaceNodeResults()
- [LLVMdev] should PEI::calculateFrameObjectOffsets align the stack?
- [LLVMdev] Controlling the stack layout
- [LLVMdev] should PEI::calculateFrameObjectOffsets align the stack?
- [LLVMdev] Patch/Question: calculateFrameObjectOffsets