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

Hal Finkel via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 20 10:46:42 PST 2016


----- Original Message -----
> From: "Arpan Sen via llvm-dev" <llvm-dev at lists.llvm.org>
> To: llvm-dev at 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
> 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.

We don't have that capability directly, although you can do that using the Cling project (https://root.cern.ch/cling).

 -Hal

> 
> Thanks
> Arpan
> 
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory


More information about the llvm-dev mailing list