[LLVMdev] processFunctionBeforeFrameFinalized setting object offset without effect, stack frame layout wrong

Jim Grosbach grosbach at apple.com
Mon Aug 6 11:39:48 PDT 2012


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




More information about the llvm-dev mailing list