<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi David,<div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Thank you very much for writing these. I suspect that they are likely <br>to be drowned in the noise of this list and hidden from a lot of the <br>people that would find them valuable.<br><br>Would it be possible for them to be hosted somewhere permanently? <br>Perhaps they could either be incorporated as a subsection of LLVM Weekly <br>or put in a different location on the same server?</blockquote><div> </div></div><div>The threads are archived on <a href="http://lists.llvm.org" target="_blank">lists.llvm.org</a>, but I'm not sure how discoverable they are there.</div><div><br></div><div>I'm keen to make sure this is visible to the right people, and I'm not picky about the format. Does anyone else have any thoughts on this?</div><div><br></div><div>Alex, how would you feel about me supplying a weekly JIT update as a subsection for LLVM Weekly, rather than starting a separate thread? (And thank you very much for posting links to the archives for the last two ORC JIT Weekly threads).</div><div><br></div><div>-- Lang.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 24, 2020 at 5:08 AM David Chisnall via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi Lang,<br>
<br>
Thank you very much for writing these. I suspect that they are likely <br>
to be drowned in the noise of this list and hidden from a lot of the <br>
people that would find them valuable.<br>
<br>
Would it be possible for them to be hosted somewhere permanently? <br>
Perhaps they could either be incorporated as a subsection of LLVM Weekly <br>
or put in a different location on the same server?<br>
<br>
David<br>
<br>
On 24/01/2020 03:27, Lang Hames via llvm-dev wrote:<br>
> Hi All,<br>
> <br>
> This week I've been focused on removing some of the blockers for people <br>
> transitioning from ORCv1 to ORCv2.<br>
> <br>
> Issue #1 (<a href="http://llvm.org/PR40074" rel="noreferrer" target="_blank">http://llvm.org/PR40074</a>, <a href="http://llvm.org/PR44337" rel="noreferrer" target="_blank">http://llvm.org/PR44337</a>):<br>
> <br>
> When LLVM codegens floating point constants for COFF we produce named <br>
> constant pool entries of the form __real@<bitval>. These are stored in <br>
> COFF COMDAT sections [1] which allow duplicate symbol definitions to be <br>
> discarded (roughly equivalent to the concept of a weak symbol). This <br>
> posed two problems: (1) ORC had no idea about the (rough) mapping <br>
> between COMDAT and Weak, and (2) did not support late introduction of <br>
> weak symbols via MaterializationResponsibility::defineMaterializing. <br>
> This caused use of the same floating point constant in multiple files to <br>
> result in duplicate definition errors for the constant pool entries.<br>
> <br>
> Both issues have been addressed in 84217ad6611, and floating point <br>
> constants should now work in COFF. If you run in to any trouble with <br>
> them please file a bug and CC me.<br>
> <br>
> Issue #2: Emulated TLS and name mangling (raised by Geoff Levner on <br>
> llvm-dev):<br>
> <br>
> Use of emulated-tls affects the name mangling of LLVM IR symbols. For a <br>
> thread local symbol with name <Name>, when emulated-tls is enabled we <br>
> will produce at least one emulated-tls symbol: __emutls_v.<Name> (which <br>
> must then be linker-mangled to get the final symbol name). If that <br>
> symbol has a non-zero initializer a second symbol will also be produced: <br>
> __emutls_t.<Name>. ORCv2 requires up-front specification of the exact <br>
> set of /linker-level/ symbol names that a module produces, so that it <br>
> can dispatch and track compiles, however none of the existing mangling <br>
> code took emulated-tls into account. This has been fixed in ce2207abaf9 <br>
> (with follow up fixes for the various examples I broke), and you should <br>
> now be able to use thread-locals in ORCv2.<br>
> <br>
> Besides these two bugs, I have continued work on the big static <br>
> initializer patch. Unfortunately issue #2 interacts with it, so I have <br>
> to do some integration work before it is ready to land, but I'm hopeful <br>
> that it will be ready some time next week.<br>
> <br>
> Finally, I have added a new example (bb7a5707ac0)to <br>
> llvm/examples/LLJITExamples: LLJITWithObjectLinkingLayerPlugin <br>
> demonstrating how to write a custom ObjectLinkingLayer plugin. <br>
> ObjectLinkingLayer plugins can be used to receive and respond to events <br>
> in the linking layer, and to inspect and modify JITLink LinkGraphs <br>
> during the linking process. ORC uses this internally to register EH <br>
> frames, but the system is likely to be of interest to anyone who wants <br>
> low level control/visibility into the JIT linker.<br>
> <br>
> — Lang.<br>
> <br>
> [1] <br>
> <a href="https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#comdat-sections-object-only" rel="noreferrer" target="_blank">https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#comdat-sections-object-only</a> <br>
> <br>
> <br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
> <br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>
</div></div></div>