<div dir="ltr"><div>Hi Lang,</div><div><br></div><div>Thanks for your reply! It seems that the code of ORC has been changed a lot these months. Actually what I wanted to see then was quite simple, Let's say we have two modules M1.bc and M2.bc, and in M1 we want to call function foo(defined in M2.bc)with the function type </div><div><br></div><div>int foo(float, char*){...}</div><div><br></div><div>what basic steps do I need to do to make M1.bc call foo remotely?</div><div><br></div><div>BTW, does the RPCUtility supports handling pointers now?</div><div><br></div><div>Thanks very much!</div><div><br></div><div>Best regards,</div><div><br></div><div>Shen</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 13, 2017 at 9:13 PM, Lang Hames via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Shen,<div><br></div><div>The best place to look for examples is currently the RPCUtilsTest unit test: llvm/unittests/<wbr>ExecutionEngine/Orc/<wbr>RPCUtilsTest.cpp</div><div><br></div><div>What API do you want to be able to call via RPC? If it's small I can probably write up an example for you.</div><div><br></div><div>Cheers,</div><div>Lang.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Dec 16, 2016 at 7:37 AM, Shen Liu via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><span style="font-family:arial,helvetica,sans-serif"><font style="font-size:12pt" size="3">Hi everyone,</font>

</span><p style="margin-bottom:0in;line-height:100%"><span style="font-family:arial,helvetica,sans-serif"><font style="font-size:12pt" size="3">I </font><font style="font-size:12pt" size="3">want </font><font style="font-size:12pt" size="3">to </font><font style="font-size:12pt" size="3">use an LLVM new feature (llvm::orc::remote::RPCBase) to implement a simple RPC framework </font><font style="font-size:12pt" size="3">between two </font><font style="font-size:12pt" size="3">LLVM modules. </font><font style="font-size:12pt" size="3">It seems by this new class we can do serialization/deserialization on LLVM IR type system directly. But I haven't found any helpful stuff on google showing me how to use these RPC APIs. Can anyone </font><font style="font-size:12pt" size="3">give me </font><font style="font-size:12pt" size="3">some hints or </font><font style="font-size:12pt" size="3">example programs showing me how to use </font><font style="font-size:12pt" size="3">these API correctly</font><font style="font-size:12pt" size="3">? </font><font style="font-size:12pt" size="3">Just a simple serialization/deserialization toy demo is OK, Thanks very much!</font></span></p><span style="font-family:arial,helvetica,sans-serif">

</span><p style="margin-bottom:0in;line-height:100%"><span style="font-family:arial,helvetica,sans-serif"><font style="font-size:12pt" size="3">Best regards,</font></span></p><span style="font-family:arial,helvetica,sans-serif">

</span><p style="margin-bottom:0in;line-height:100%"><span style="font-family:arial,helvetica,sans-serif"><font style="font-size:12pt" size="3">Shen</font></span></p>
<p style="margin-bottom:0in;line-height:100%"><br>
</p>

</div>
<br></div></div>______________________________<wbr>_________________<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="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>