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
From: "Arpan Sen via llvm-dev" <llvm-dev@lists.llvm.org>
To: llvm-dev@lists.llvm.org
Sent: Wednesday, January 20, 2016 12:30:50 PM
Subject: [llvm-dev] C++ Code Invocation At Runtime
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
A tiny GCC front end – 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.
We don't have that capability directly, although you can do that using the Cling project (Cling - ROOT).
-Hal