<div dir="ltr"><div>Hi Lang.</div><div><br></div><div>I prepared the test case.</div><div>Download file from attachment.</div><div>Compile main.cpp and run it. test1.ll and test2.ll should be in the working folder.</div><div>When you uncomment line 49 in main.cpp it starts working fine.</div><div><br></div><div>My configuration is:</div><div>llvm 3.5</div><div>msvc 11 (VS 2012)</div><div>architecture x86</div><div><br></div><div>Regards.</div><div><br></div><div>P.S. After preparing this test case I noticed that this bug is fixed in the newest implementation of MCJIT in llvm trunk branch. :)</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-19 11:12 GMT+01:00 Radek Zagorowicz <span dir="ltr"><<a href="mailto:radek.zagorowicz@gmail.com" target="_blank">radek.zagorowicz@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I will prepare this test case with lli ASAP.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2014-11-18 19:48 GMT+01:00 Lang Hames <span dir="ltr"><<a href="mailto:lhames@gmail.com" target="_blank">lhames@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Radek,<div><br></div><div>Sorry for the delayed response. I haven't had time to check your analysis yet, but you're probably right: MCJIT's support for multiple modules in a single instance is patchy at best.</div><div><br></div><div>Do you have a test case (e.g. an lli invocation) that triggers this bug, or is this something you discovered just by reading the code?</div><div><br></div><div>Cheers,</div><div>Lang. </div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 13, 2014 at 8:46 AM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</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">[+Lang, owner of JITs, defender of register allocators, etc]</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Nov 13, 2014 at 8:29 AM, Radek Zagorowicz <span dir="ltr"><<a href="mailto:radek.zagorowicz@gmail.com" target="_blank">radek.zagorowicz@gmail.com</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><div dir="ltr"><div>Hi all.</div><div><br></div><div>I found some issue in implementation of finalizeObject function in MCJIT.cpp. If you look at the source code of the function, you can notice that machine code for second "owned" module will never be generated if it doesn't depend on the first one. More over it will cause a crash if entry point isn't in first module. Implementation of finalizeObject using for loop will omit every other module in OwnedModules, because function generateCodeForModule moves module form "added" to "loaded".</div><div>Am I right?</div><div><br></div><div>Regards.</div><div><br></div><div>rodia</div></div>
<br></div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>