deco33000 at yandex.com
2015-Jul-09 13:41 UTC
[LLVMdev] llvm jit acting at runtime, like libgccjit ?
Hello, i mainly code in c/c++ on linux. I would like to know if I can generate code at runtime using llvm, like libgccjit -> https://gcc.gnu.org/onlinedocs/jit/ My needs are : create functions, conditions, loops at runtime. libgccjit does the job pretty well but I would like to test llvm too (licence issue). Is it possible ? Is there a resource that helps in that regard ? Kaleidoscope doesn't seems to be what I expect. Thanks Bye -- Jog
Hi, Yes, LLVM can do this and has been able to long before libgccjit. Kaleidoscope gives an introduction - what exactly is it about Kaleidoscope that differs from your expectations? Cheers, James On Thu, 9 Jul 2015 at 15:00 <deco33000 at yandex.com> wrote:> Hello, > > i mainly code in c/c++ on linux. > > I would like to know if I can generate code at runtime using llvm, like > libgccjit -> https://gcc.gnu.org/onlinedocs/jit/ > > > My needs are : create functions, conditions, loops at runtime. libgccjit > does the job pretty well but I would like to test llvm too (licence issue). > > Is it possible ? > Is there a resource that helps in that regard ? Kaleidoscope doesn't seems > to be what I expect. > > > Thanks > Bye > > > -- > Jog > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150709/0de9cf0e/attachment.html>
deco33000 at yandex.com
2015-Jul-09 14:46 UTC
[LLVMdev] llvm jit acting at runtime, like libgccjit ?
<div>Thanks James,</div><div>š</div><div>Kaleidoscope seems to differ in the sense that I cannot really understand how to create, say, a loop. It all looks like very complicated (<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_docs_tutorial_LangImpl3.html&d=AwMD3g&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=E1cWW-PAGPIM-jv-wZPcbUaIGZF76F3khZvXTlblazk&s=J2ZYv617m9mjI0Khgzm9Epv-GE07oIQwzqBnZ-zvTjA&e=">http://llvm.org/docs/tutorial/LangImpl3.html</a>)</div><div>š</div><div>llvm is new to me.</div><div>š</div><div>it is pretty basic, but the tutorial page of the libgccjit is very helpful in that regard (how to create a function, a condition, a loop..)</div><div>š</div><div>I will keep doing my homework, but a bit of help is very welcome :)</div><div>š</div><div>--š</div><div>Jog</div><div>š</div>