<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 23, 2013 at 1:14 PM, Richard Mitton <span dir="ltr"><<a href="mailto:richard@codersnotes.com" target="_blank">richard@codersnotes.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have a small question about this -<br>
<br>
Why does the prefix data have to begin with a jump?<br>
Couldn't you just make the entry point label appear after the prefix data? And then use negative offsets to access it given the function's address? It seems like the jump adds a performance hit which isn't needed.<br>
</blockquote><div><br></div><div>How would you know if there's prefix data on a given function at runtime? If you just start accessing negative offsets, you might segfault.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
e.g.<br>
<br>
.word 0x1234 // prefix data<br>
myfunction:<br>
    push rbp<br>
    // etc<br>
    ret<span class="HOEnZb"><font color="#888888"><br>
<br>
Richard Mitton<br>
<a href="mailto:richard@codersnotes.com" target="_blank">richard@codersnotes.com</a></font></span><div class="im HOEnZb"><br>
<br>
On 09/23/2013 01:07 PM, Peter Collingbourne wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Sep 23, 2013 at 10:01:18AM -0700, Chris Lattner wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sep 15, 2013, at 6:08 PM, Peter Collingbourne <<a href="mailto:peter@pcc.me.uk" target="_blank">peter@pcc.me.uk</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: pcc<br>
Date: Sun Sep 15 20:08:15 2013<br>
New Revision: 190773<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=190773&view=rev" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project?rev=190773&view=rev</a><br>
Log:<br>
Implement function prefix data as an IR feature.<br>
<br>
Previous discussion:<br>
<a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-July/063909.html" target="_blank">http://lists.cs.uiuc.edu/<u></u>pipermail/llvmdev/2013-July/<u></u>063909.html</a><br>
<br>
Differential Revision: <a href="http://llvm-reviews.chandlerc.com/D1191" target="_blank">http://llvm-reviews.chandlerc.<u></u>com/D1191</a><br>
</blockquote>
Cool, thanks Peter.<br>
<br>
Can I entice you to write a blog post about this? :-)<br>
</blockquote>
Please ask me again in a couple of weeks.  There are a number of<br>
higher priority tasks that I have to take care of this week...<br>
<br>
Thanks,<br>
</blockquote>
<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div></div>