<div dir="ltr">Hi Liam,<div><br></div><div>CC'ing the dev list, since some people there might be interested in this too.</div><div><br></div><div>There are two other Orc-based JITs in tree. One is the MCJIT replacement, which you'll find in lib/ExecutionEngine/Orc/OrcMCJITReplacement.*, and the other is OrcLazyJIT, which you'll find in tools/lli/OrcLazyJIT.*. The former is just emulating MCJIT's behaviour, the latter is doing true lazy compilation of bitcode. Both are hooked up to lli, and be accessed using the -jit-kind option.</div><div><br></div><div>A useful source of bitcode examples is the regression test suite: test/ExecutionEngine/OrcMCJITReplacement and test/ExecutionEngine/OrcLazy. Each of these has at least a simple "hello.ll" file. OrcLazy is new, so there's not much more than that. OrcMCJITReplacement has duplicates of all of MCJIT's regression tests.</div><div><br></div><div>There are no examples that #ifdef out layers. This can be done, but we don't have a use-case for it yet. Do you have one in mind?</div><div><br></div><div>Cheers,</div><div>Lang.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 13, 2015 at 11:12 PM, Liam Breck <span dir="ltr"><<a href="mailto:liam@networkimprov.net" target="_blank">liam@networkimprov.net</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><div><div><div><div>Hi again,<br><br>Would it be helpful to have an ORC example in the repo that's not tied to Kaleidoscope?<br><br></div>Something like...<br></div>read IR from stdin<br></div>find a table of functions<br></div><div>jit table.init()<br></div>jit other functions on-call<br></div>provide a HelloWorld function for IR to invoke<br><div><br></div><div>Perhaps it could demonstrate different approaches to JIT use via #ifdef<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Liam</div></font></span></div></blockquote></div></div></div>