<div dir="ltr"><div>Thanks for the head-ups.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 11, 2019 at 10:47 PM David Blaikie <<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">There is remote JITing support ( <a href="https://llvm.org/docs/tutorial/BuildingAJIT5.html" target="_blank">https://llvm.org/docs/tutorial/BuildingAJIT5.html</a> )- though it mostly/only supports the "from the JITing process, push code to the remote/executing process" - the first piece of your situation, "from the executing process, make a remote request to JIT some code" isn't implemented as far as I know, but you could use the same RPC primitives that LLVM/ORC provides to do that.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 10, 2019 at 11:35 PM Choe Choon Ho 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:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Background:</div><div><br></div><div>We plan to use ORC to JIT compile hot-paths, optimizing them to fully utilize the currently running architecture.</div><div><br></div><div>To do this, we extract the hot-paths' code section (including external linkages, functions, variables, etc) and embed them into the host program. These embedded information are then pass to orc to be compiled and executed.</div><div><br></div><div>However, the JIT process may fail and may corrupt the host program. Therefore, we would like to launch a different program to run this JIT process (including linking symbols that resides in the host program) and stream the JIT symbol back to the main program for execution.</div><div><br></div><div>In short, the main program request the JIT program to compile some IR and return the JIT symbol back to the main program for execution.</div><div><br></div><div>Question:<br><div><br></div><div>Is there any tool support for this use-case?</div><div>Or, do we have to use our own IPC methods (shared memory) and JIT compile the IR onto the shared memory, and lookup the JIT symbol in the shared memory?</div></div><div><br><br></div><div>Regards,</div><div><br></div><div>Choe</div></div>
_______________________________________________<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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><b style="font-family:tahoma,sans-serif">Choe Choon Ho</b><a value="+6046466227" style="font-family:tahoma,sans-serif;font-size:12.8px"><span style="color:rgb(51,51,51);font-size:18px"> </span></a><br style="font-size:12.8px"><font face="tahoma, sans-serif" style="font-size:12.8px"><font style="font-size:small">Engineer R&D | CoE</font></font><a value="+6046466227" style="font-family:tahoma,sans-serif;font-size:12.8px"><span style="color:rgb(51,51,51);font-size:18px"> </span></a><font face="tahoma, sans-serif" style="font-size:12.8px"><br><b style="font-size:small">M</b><font style="font-size:small">: (60) 12-538 8203</font></font><a value="+6046466227" style="font-family:tahoma,sans-serif;font-size:12.8px"><span style="color:rgb(51,51,51);font-size:18px"> </span></a><br style="font-size:12.8px"><a href="http://www.vitrox.com/" style="color:rgb(17,85,204);font-family:tahoma,sans-serif" target="_blank">ViTrox</a><font face="tahoma, sans-serif"> l </font><a href="https://www.facebook.com/ViTroxCorp" style="color:rgb(17,85,204);font-family:tahoma,sans-serif" target="_blank">Facebook</a><font face="tahoma, sans-serif"> l </font><a href="https://www.linkedin.com/company/vitrox" style="color:rgb(17,85,204);font-family:tahoma,sans-serif" target="_blank">Linkedln</a><a value="+6046466227" style="font-family:tahoma,sans-serif;font-size:12.8px"><span style="color:rgb(51,51,51);font-size:18px"> </span></a><i style="font-family:tahoma,sans-serif"><b><br>Integrity . Accountability . Courage . Trust & Respect . Gratitude & Care</b></i><a value="+6046466227" style="font-family:tahoma,sans-serif"><span style="color:rgb(51,51,51)"><font size="6"> </font></span></a><br style="font-size:12.8px"><font face="tahoma, sans-serif">How is my service? Please tell us. Log your feedback/compliments here. </font><a href="http://www.vitrox.com/survey_form/form_view.php?person_id=NzM5" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">Click Here</a><a value="+6046466227" style="font-size:12.8px;font-family:tahoma,sans-serif"><span style="color:rgb(51,51,51);font-size:18px"> </span></a></div><div dir="ltr"><font size="1" style="font-family:tahoma,sans-serif"><i><b><br></b></i></font></div><div dir="ltr"><font size="1" style="font-family:tahoma,sans-serif"><i><b>Disclaimer</b>: Private & Confidential. This message (including any attachment) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. You must not, directly or indirectly, use, disclose, distribute, print, copy any part of this message, or take any action based on it.</i></font></div></div></div>