[LLVMdev] Use of getOffsetOfLocalArea on x86?

Sanjoy Das sanjoy at azulsystems.com
Mon Jun 2 14:41:03 PDT 2014


What is the space between the incoming stack pointer and (incoming
stack pointer + getOffsetOfLocalArea) used for?  getOffsetOfLocalArea
is -$(WordSize) on x86.

I was under the impression that it was used to store %rbp, but it
seems %rbp is independently assigned a fixed frame index in
X86FrameLowering::processFunctionBeforeCalleeSavedScan, and assigned its
own slot in PEI::calculateFrameObjectOffsets.

-- Sanjoy





More information about the llvm-dev mailing list