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

Roman Divacky rdivacky at freebsd.org
Mon Aug 6 11:26:38 PDT 2012


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



More information about the llvm-dev mailing list