Displaying 3 results from an estimated 3 matches for "llvminitializeallasmparsers".
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...c 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;
LLVMModuleRef m = 0;
LLVMCreateMemoryBufferWithContentsOfFile(&q...
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)); // 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)
...lowing 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
> >> >
> >> >...