[cfe-dev] From libtooling to LLVM IR?

Matthieu Brucher via cfe-dev cfe-dev at lists.llvm.org
Sat Jul 14 01:35:29 PDT 2018


Hi all,

I'm wondering how difficult it is to go from the libtooling interface to
the LLVM IR. The idea is to then use the JIT facilities to execute some C++
code.
It seems Libtooling requires far less code and far less adaptations to go
from a code snippet to enything than clang itself (to get all the pieces
together, it seems that it requires almost 50 lines whereas libtooling more
or less has only one statement).
Any pointers for this?

Cheers,

Matthieu
-- 
Quantitative analyst, Ph.D.
Blog: http://blog.audio-tk.com/
LinkedIn: http://www.linkedin.com/in/matthieubrucher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180714/878c2883/attachment.html>


More information about the cfe-dev mailing list