[llvm-dev] C++ Code Invocation At Runtime

Arpan Sen via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 20 10:30:50 PST 2016


Hi llvm-dev

I am trying to read up some C++ code from a file into a string and then
compile it into some module/function and then invoke the same - all via
API.

Kind of JIT compilation if you will.

I have something similar from
http://thinkingeek.com/2016/01/17/tiny-gcc-front-part-6/ that's kind of
going this for C.

I am reasonably familiar with LLVM backend and its API, what's unclear is
how do I parse the front end C++ and map it to LLVM data structures. I am
sure someone has already solved this problem/done enough work for JIT. Any
help appreciated.

Thanks
  Arpan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160121/6cf43d12/attachment.html>


More information about the llvm-dev mailing list