[llvm-dev] preserve registers across function call

Xiaochu Liu via llvm-dev
Thu, 27 Aug 2015 00:52:27 -0000

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?

Thanks,
Xiaochu
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20150827/e71882ac/attachment.html>