<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Is the preserved mask passed down to your Call instruction in LowerCall ?<div class=""><br class=""></div><div class="">Marcello<br class=""><div><blockquote type="cite" class=""><div class="">On 26 Aug 2015, at 17:52, Xiaochu Liu via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><span style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">Dear there,</span><div style="font-size:13.1999998092651px;line-height:19.7999992370605px" class=""><br class=""></div><div style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">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?</div><div style="font-size:13.1999998092651px;line-height:19.7999992370605px" class=""><br class=""></div><div style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">Thanks,</div><div style="font-size:13.1999998092651px;line-height:19.7999992370605px" class="">Xiaochu</div></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=BQIGaQ&c=eEvniauFctOgLOKGJOplqw&r=THu9ANfN9LYlQTYNQdmA7D-MsdMl2OioTAKXjMfn7i4&m=T0_ZG8YhyugTycTFs3lQPt6d4mu6n739A4TOI-X1aJ0&s=xBBwHMhNOhAnZr_RXMJN6_kyjY2Wnap1c9aCtrfM7T8&e= <br class=""></div></blockquote></div><br class=""></div></body></html>