[LLVMdev] Controlling the stack layout

Nicolas Geoffray nicolas.geoffray at lip6.fr
Mon Dec 29 04:27:16 PST 2008


Anton Korobeynikov wrote:
> Hi, Nicolas
>
>   
>> Could you point me where those hooks are in the llvm code? I didn't find
>> any.
>>     
> Look into PrologEpilogInserter.cpp::PEI::runOnMachineFunction(). There
> are calls to hooks inside TargetRegisterInfo:
> TargetRegisterInfo::processFunctionBeforeCalleeSavedScan() and
> TargetRegisterInfo::processFunctionBeforeFrameFinalized().
>
>   

Doesn't that involve modifying the target? eg modifying 
X86RegisterInfo.cpp to allocate the stack entry?




More information about the llvm-dev mailing list