<div dir="ltr"><div><div><div>Hi Andrew,<br><br></div>I used the latest code from trunk. GlobalSymbolTable is being used in MCJIT. <br><br></div>I guess it wasn't clear from the proposal that the user program will be modified to indicate that the callback should happen at that point in the code. The objective is to call some of the functions which belong to lli or the ExecutionEngine.<br>
<br></div>Thanks,<br>Sumeeth <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 1, 2013 at 5:40 PM, Kaylor, Andrew <span dir="ltr"><<a href="mailto:andrew.kaylor@intel.com" target="_blank">andrew.kaylor@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Are you using the latest code from trunk?  I didn’t think the latest code used the address mapping in the ExecutionEngine base class.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Of course, if people are depending on this it might be something that should be fixed if it isn’t working.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">-Andy<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Caldarale, Charles R [mailto:<a href="mailto:Chuck.Caldarale@unisys.com" target="_blank">Chuck.Caldarale@unisys.com</a>]
<br>
<b>Sent:</b> Friday, November 01, 2013 10:54 AM<br>
<b>To:</b> Kaylor, Andrew; sumeeth kc; LLVM Dev<br>
<b>Subject:</b> RE: [LLVMdev] [Proposal] Adding callback mechanism to Execution Engines<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue">>
</span><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:llvmdev-bounces@cs.uiuc.edu" target="_blank">llvmdev-bounces@cs.uiuc.edu</a> [<a href="mailto:llvmdev-bounces@cs.uiuc.edu" target="_blank">mailto:llvmdev-bounces@cs.uiuc.edu</a>]
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue">>
</span><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">On Behalf Of
</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Kaylor, Andrew<br>
</span><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue">> </span>
<b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Subject:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Re: [LLVMdev] [Proposal] Adding callback mechanism to Execution Engines<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue">>
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If the function is in a statically linked module, you need to do something to explicitly expose it.  With
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue">>
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">the older JIT engine you can use addGlobalMapping as Yaron suggests, but I don’t think that will work<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue">>
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">with MCJIT.</span><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue"><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue">Seems to work fine for us with MCJIT.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue">- Chuck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue"><u></u> <u></u></span></p>
</div></div></div>
</div>

</blockquote></div><br></div>