<div dir="rtl"><div dir="ltr">MCJIT::runFunction supports only main-style argument passing but not other cases like the JIT.</div><div dir="ltr">These types of arguments will work:</div><div dir="ltr"><br></div><div dir="ltr">

(int, char**, char**)</div><div dir="ltr">(int, char**)</div><div dir="ltr">(int)</div><div dir="ltr">(void)</div><div dir="ltr"><br></div><div dir="ltr">The general case is not supported since it requires creating a small stub function, compiling and running it on the fly, supported by JIT but not MCJIT.<br>

</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">However, with the supported calling sequences, you can probably replace the char** with a void* to a structure so that practically anything can be passed to your function inside the structure.</div>

<div dir="ltr"><br></div></div><div dir="ltr">Yaron</div><div dir="ltr"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2013/11/8 edA-qa mort-ora-y <span dir="ltr"><<a href="mailto:eda-qa@disemia.com" target="_blank">eda-qa@disemia.com</a>></span></div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to get MCJIT working but I get the following errors:<br>
        Full-featured argument passing not supported yet!<br>
        UNREACHABLE executed at MCJIT.cpp:322!<br>
I'm sure the first one will be a problem, but the second one prevents me<br>
from testing anything. I don't know how to fix the problem.<br>
<br>
My code works when using the non-MC JIT, and I added to my EngineBuilder:<br>
        .setUseMCJIT(true)<br>
<br>
Reading from a tutorial* I also tried finalizing the engine object:<br>
        ee->finalizeObject()<br>
<br>
I'd like to get this working since in the release notes for 3.4 it<br>
indicates exception handling has been removed from the old JIT. I need<br>
exception handling support and would like to get MCJIT working prior to<br>
upgrading to 3.4 later.<br>
<br>
<br>
*<a href="http://blog.llvm.org/2013/07/using-mcjit-with-kaleidoscope-tutorial.html" target="_blank">http://blog.llvm.org/2013/07/using-mcjit-with-kaleidoscope-tutorial.html</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
edA-qa mort-ora-y<br>
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --<br>
Sign: Please digitally sign your emails.<br>
Encrypt: I'm also happy to receive encrypted mail.<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">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>
</font></span></blockquote></div><br></div>