[LLVMdev] LLVM C bindings

Lennart Augustsson lennart at augustsson.net
Mon Feb 16 11:09:00 PST 2009


The API function that gives you a pointer to the jit-ed function will
be available in the next release of LLVM.
You're not the only only one who's missed it.

But I wish the Pass Manager API was more complete.  I might do that if
I have a some time left over.

  -- Lennart

On Mon, Feb 16, 2009 at 6:24 PM, Corrado Zoccolo <czoccolo at gmail.com> wrote:
> Hi,
> I find the C bindings for LLVM very useful, since they allow to invoke
> LLVM from a wider set of software tools (i.e. llvm-py uses it to
> export llvm to python).
> Unfortunately, it seems that llvm-c interface lacks major
> functionalities, e.g. getting a pointer to a jit-ted function.
> It is easy to write a small c++ wrapper to expose the functionality
> that one wants (llvm-py does it for the many optimization passes not
> available through c binding), but I wonder if it is possible to have a
> simpler & cleaner solution, i.e. automatically generating C bindings
> from c++ classes.
> Or am I missing some obvious way to have the aforementioned
> functionality in C without writing wrappers?
>
> Thanks,
> Corrado
>
> --
> __________________________________________________________________________
>
> dott. Corrado Zoccolo                          mailto:czoccolo at gmail.com
> PhD - Department of Computer Science - University of Pisa, Italy
> --------------------------------------------------------------------------
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



More information about the llvm-dev mailing list