[LLVMdev] Higher-level OCaml bindings

Jon Harrop jon at ffconsultancy.com
Thu Feb 14 09:10:24 PST 2008


On Thursday 14 February 2008 16:33:25 Chris Lattner wrote:
> On Thu, 14 Feb 2008, Jon Harrop wrote:
> > Does CLang use a suitable intermediate representation for this to be
> > possible?
>
> The higher level IR that clang uses is basically a C AST.  This interface
> is under constant flux  though.  If you wanted to do this, it would be
> very reasonable to just cons up some C code and send it through the clang
> parser.  Clang works great in a JIT environment.

Great! Sounds like CIL should do the trick:

  http://manju.cs.berkeley.edu/cil/

:-)

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e



More information about the llvm-dev mailing list