[LLVMdev] InitializeNativeTarget
Kenneth Uildriks
kennethuil at gmail.com
Wed Oct 7 16:28:50 PDT 2009
On Wed, Oct 7, 2009 at 6:21 PM, Erick Tryzelaar
<idadesub at users.sourceforge.net> wrote:
> On Wed, Oct 7, 2009 at 11:36 AM, Albert Graef <Dr.Graef at t-online.de> wrote:
>> Kenneth Uildriks wrote:
>>
>> Yes, so you'll need to add a little C++ module to your wrapper that does
>> the necessary initializations and is callable from your target language.
>
> That's odd, we don't need to do that for ocaml. Have you tried having
> a function like this defined in your binding?
>
> /* Force the LLVM interpreter and JIT to be linked in. */
> void llvm_initialize(void) {
> LLVMLinkInInterpreter();
> LLVMLinkInJIT();
> }
>
> You don't have to call it, it's just there to make sure the execution
> engine is actually linked with the binding library.
>
But that doesn't cause the native target to be registered with the
native target registry, does it?. Are you running against LLVM trunk?
More information about the llvm-dev
mailing list