<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 1, 2016 at 6:17 PM, Mehdi Amini <span dir="ltr"><<a href="mailto:mehdi.amini@apple.com" target="_blank">mehdi.amini@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What about llvm-link? (Possible with -func-import)<br></blockquote><div><br></div><div>No, llvm-link does not do ThinLTO internalization. It does do importing, but note that this issue is on the module being compiled, not on anything being imported from elsewhere. E.g. the gold internalization, as with libLTO internalization, occurs before any importing, on the primary module being compiled through the backend.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
<br>
> On Aug 1, 2016, at 6:10 PM, Teresa Johnson <<a href="mailto:tejohnson@google.com">tejohnson@google.com</a>> wrote:<br>
><br>
> tejohnson added a comment.<br>
><br>
> In <a href="https://reviews.llvm.org/D23015#502700" rel="noreferrer" target="_blank">https://reviews.llvm.org/D23015#502700</a>, @tejohnson wrote:<br>
><br>
>> In <a href="https://reviews.llvm.org/D23015#502330" rel="noreferrer" target="_blank">https://reviews.llvm.org/D23015#502330</a>, @mehdi_amini wrote:<br>
>><br>
>>> Do we need gold for the test here or could it be written with an LLVM tool?<br>
>><br>
>><br>
>> Let me see if I can trigger without gold's symbol resolution<br>
><br>
><br>
> Can't trigger with llvm-lto. The gold-plugin uses the IRLinker to move the module being compiled (in that ThinLTO backend) into an empty module, indicating the ValuesToLink based on its symbol resolution decisions. Which is why we get f1 linked in only as a declaration for %t2.o, which means we need to create a local copy of it for the use via the alias, resulting in the naming conflict with the declaration. In llvm-lto, we simply use the module being compiled with a thinlto-action as is.<br>
><br>
><br>
> <a href="https://reviews.llvm.org/D23015" rel="noreferrer" target="_blank">https://reviews.llvm.org/D23015</a><br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><span style="font-family:Times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Teresa Johnson |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"> 408-460-2413</td></tr></tbody></table></span></div>
</div></div>