[llvm-dev] preserve registers across function call
Marcello Maggioni via llvm-dev
llvm-dev at lists.llvm.org
Wed Aug 26 17:58:43 PDT 2015
Is the preserved mask passed down to your Call instruction in LowerCall ?
> On 26 Aug 2015, at 17:52, Xiaochu Liu via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> Dear there,
> I was wondering how to preserve registers (caller saved) across calls. I implemented getCalleeSavedRegs and getCallPreservedMask. But the non-callee-saved registers are still not saved by caller. I want to spill these registers in use on stack right before the call. From my understanding, the register allocator in llvm will do the spill and restoring automatically? Is there anything I was supposed to do to make it happen?
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev