<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi All,<div><br></div><div>It was great to catch so many of you at the LLVM Virtual Developer's Meeting, and to hear your feedback and questions on the JIT APIs. Documentation emerged as a popular request, especially design documents and roadmaps -- I will try to make that a priority over the next few weeks, and will let you know in these weekly mails when I have something for you to check out.</div><div><br></div><div>In the meantime, there are four big pieces of news this week:</div><div><br></div><div>(1) OrcV1 has been removed. All legacy layers and utilities are gone, and all example and tutorial code has been migrated to OrcV2. [1]</div><div><br></div><div>(2) Removable code support has landed. You can now use ResourceTrackers to manage resources, including freeing JIT memory allocated for modules. [2]</div><div><br></div><div>(3) The OrcV2 C API has received a number of updates and bug fixes, including support for removable code. See [3], [4] (and a number of adjacent commits).</div><div><br></div><div>(4) DefinitionGenerators (and the implementation of symbol lookup) have received a major overhaul: Generators may now optionally suspend the lookup while attempting to find a definition, allowing other threads to update JIT state while they work. (The new lookup scheme also fixes a bug where we would attempt to generate redundant definitions for hidden symbols). [5]</div><div><br></div><div>I especially want to thank Andres Freund for all the testing, feedback and patches he provided for the C API updates. I'm happy to say that with the latest updates to the C API Andres was able to get PostgresQL's JIT up-and-running on OrcV2.</div><div><br></div><div>Next up I'll be looking at adding utilities to support for out-of-process execution. In the meantime if you have any questions or comments on any of the above (I ran short of time to go into much detail on them in this email), or any of the topics from the dev meeting -- I'd love to hear from you.</div><div><br></div><div>-- Lang.</div><div><br></div><div>[1] <a href="https://github.com/llvm/llvm-project/commit/6154c4115cd4b78d0171892aac21e340e72e32bd">https://github.com/llvm/llvm-project/commit/6154c4115cd4b78d0171892aac21e340e72e32bd</a></div><div>[2] <a href="https://github.com/llvm/llvm-project/commit/0aec49c8531bc5282b095730d34681455826bc2c">https://github.com/llvm/llvm-project/commit/0aec49c8531bc5282b095730d34681455826bc2c</a></div><div>[3] <a href="https://github.com/llvm/llvm-project/commit/91d1f417fd89cdbea095f820729df0eb9d465f9f">https://github.com/llvm/llvm-project/commit/91d1f417fd89cdbea095f820729df0eb9d465f9f</a></div><div>[4] <a href="https://github.com/llvm/llvm-project/commit/f35707047e216e99052c15b04fe508d075b6121b">https://github.com/llvm/llvm-project/commit/f35707047e216e99052c15b04fe508d075b6121b</a></div><div>[5] <a href="https://github.com/llvm/llvm-project/commit/069919c9ba33666786b80e89f30215ef2918ecdc">https://github.com/llvm/llvm-project/commit/069919c9ba33666786b80e89f30215ef2918ecdc</a></div><div><br></div></div></div></div></div></div></div></div>