<div dir="ltr">Hi Siddharth,<div><br></div><div>As far as I know this is not currently possible. Current RuntimeDyld implementations are all self-contained and do not reference code from their targets.</div><div><br></div><div>Having RuntimeDyld depend on code from a custom target seems reasonable though. It might be better in the long term if we moved all the target-specific code out of ExecutionEngine and just provided registration functions so that targets could register their respective RuntimeDyld implementations with ExecutionEngine. This would be a significant refactor though, and we'd want to sanity-check its impact on LLVM's library layering.</div><div><br></div><div>Cheers,</div><div>Lang.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 13, 2017 at 5:36 AM, 陳韋任 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"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"> Maybe you can see how other targets under <span style="font-size:14px;font-family:arial,sans-serif">ExecitionEngine/<wbr>RuntimeDyld/Targets do?</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-size:14px;font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-size:14px;font-family:arial,sans-serif">HTH,</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-size:14px;font-family:arial,sans-serif">chenwj</span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2017-04-13 13:36 GMT+08:00 Siddharth Shankar Swain via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<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"><div><div>Hello LLVMDevs,<br><br>I have written a .cpp file in lib/Target/(some arch)/ and i want to use one of its function in a file in lib/ExecutionEngine/RuntimeDyl<wbr>d/. So is there any specific way to do that. This may be a general question for any one who writes a .cpp file in Target/(any arch)/ and tries to use it somewhere in ExecitionEngine/RuntimeDyld/. Please guide.<br><br></div>Thanks,<br></div>Siddharth<br></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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-5658288820396143844gmail_signature" data-smartmail="gmail_signature"><br>--<br>Wei-Ren Chen (陳韋任)<br>Homepage: <a href="https://people.cs.nctu.edu.tw/~chenwj" target="_blank">https://people.cs.nctu.edu.tw/<wbr>~chenwj</a></div>
</font></span></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>