Displaying 3 results from an estimated 3 matches for "llvminitializealltargetmc".
Did you mean:
llvminitializealltargetmcs
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...i32 @a_outside_func(i32 15)
ret i32 %call
}
where a_outside_func is a function defined on my code:
extern "C" int a_outside_func(int a)
{
return a + 50;
}
and following code is to get MCJIT work:
#define prt(x) if(x) { cout << x << endl; }
LLVMInitializeAllTargets();
LLVMInitializeAllTargetMCs();
LLVMInitializeAllTargetInfos();
LLVMInitializeAllAsmParsers();
LLVMInitializeAllAsmPrinters();
LLVMInitializeAllDisassemblers(); // just initialize them all....
prt(a_outside_func(50)); // afraid of linker optmize it out
char *err = 0;
LLVMMemoryBufferRef ll_f = 0;...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...>
> > extern "C" int a_outside_func(int a)
> > {
> > return a + 50;
> > }
> >
> > and following code is to get MCJIT work:
> >
> > #define prt(x) if(x) { cout << x << endl; }
> > LLVMInitializeAllTargets();
> > LLVMInitializeAllTargetMCs();
> > LLVMInitializeAllTargetInfos();
> > LLVMInitializeAllAsmParsers();
> > LLVMInitializeAllAsmPrinters();
> > LLVMInitializeAllDisassemblers(); // just initialize them all....
> > prt(a_outside_func(50)); // afraid of linker optmize it
>...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...{
> >> > return a + 50;
> >> > }
> >> >
> >> > and following code is to get MCJIT work:
> >> >
> >> > #define prt(x) if(x) { cout << x << endl; }
> >> > LLVMInitializeAllTargets();
> >> > LLVMInitializeAllTargetMCs();
> >> > LLVMInitializeAllTargetInfos();
> >> > LLVMInitializeAllAsmParsers();
> >> > LLVMInitializeAllAsmPrinters();
> >> > LLVMInitializeAllDisassemblers(); // just initialize them all....
> >> > prt(a_outside_func(50));...