<div dir="ltr">Bill,<div><br></div><div style>The solution that you are proposing does look good to me. It matches general scheme that I had in mind thinking about this problem. Looking forward to see it implemented.</div>
<div style><br></div><div style>Dmitry.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Oct 12, 2013 at 1:55 PM, Bill Wendling <span dir="ltr"><<a href="mailto:isanbard@gmail.com" target="_blank">isanbard@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>FYI:</div><div><br></div><a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-October/066389.html" target="_blank"><span style="white-space:pre-wrap"> </span>http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-October/066389.html</a><div>
<br></div><div>Please read and let me know you comments.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-bw</div></font></span><div><div class="h5"><div><br><div><div>On Oct 11, 2013, at 2:47 PM, Dmitry Babokin <<a href="mailto:babokin@gmail.com" target="_blank">babokin@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr">Looking forward to these changes! Thanks for working on it.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 11, 2013 at 10:32 PM, Bill Wendling <span dir="ltr"><<a href="mailto:isanbard@gmail.com" target="_blank">isanbard@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Dmitry,</div><div><br></div><div>I can try my best, but it would be a bit tricky to get it all finished by then...</div>
<span><font color="#888888"><div><br></div><div>-bw</div></font></span><div><br><div><div>On Oct 11, 2013, at 4:10 AM, Dmitry Babokin <<a href="mailto:babokin@gmail.com" target="_blank">babokin@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr"><div>Bill,</div><div><br></div>Are there any chances that you complete it before 3.4 is branched?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 10, 2013 at 10:16 PM, Bill Wendling <span dir="ltr"><<a href="mailto:isanbard@gmail.com" target="_blank">isanbard@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Oct 10, 2013, at 4:22 AM, Dmitry Babokin <<a href="mailto:babokin@gmail.com" target="_blank">babokin@gmail.com</a>> wrote:<br>
<br>
> Bill,<br>
><br>
</div><div>> Thanks for answering. To make sure that we are on the same page, let's agree on definitions :) Here, by fat binaries I mean the binary, where some functions are compiled for one flavor of x86, while others are compiled for another flavor of x86. I care about the usage model, which is important for LTO - a dispatch function (compiled for the least common denominator) + plus set of specialized functions for sse4, avx ,avx2 and etc., which are called by dispatch function depending on runtime cpu id check.<br>
><br>
</div>Okay. The terminology was a bit overloaded. :-)<br>
<div><br>
> lipo may help achieving this on Darwin, but it's not exactly what I need. I need a solution suitable for LTO. Actually lipo may work for me as a workaround, but I need cross platform solution.<br>
><br>
> The current solution doesn't really address this (on x86 at least), as sub-target is not recreated if feature string doesn't match the sub-target. Instead it tries to satisfy feature string requirements using existing sub-target and this leads to the fails, that were noticed by Ben. Please correct me if my understanding is wrong.<br>
><br>
> So do I understand you correctly, that your new solution supposed to solve this problem?<br>
><br>
</div>That's correct. It still needs to be implemented (of course), but that's the eventual goal.<br>
<span><font color="#888888"><br>
-bw<br>
<br>
</font></span></blockquote></div><br></div>
</blockquote></div><br></div></div></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div></blockquote></div><br></div>