[LLVMdev] Higher-level OCaml bindings

Chris Lattner sabre at nondot.org
Thu Feb 14 08:33:25 PST 2008


On Thu, 14 Feb 2008, Jon Harrop wrote:
> Would it make sense to have higher-level OCaml bindings to the current CLang
> front-end to make code generation even easier?
>
> 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.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list