Displaying 3 results from an estimated 3 matches for "tf_t".
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...amp;err);
//read .ll
prt(err);
LLVMParseIRInContext(LLVMGetGlobalContext(),ll_f,&m,&err); // ll_f doesnt
need freeing
prt(err);
LLVMDumpModule(m);
LLVMLinkInMCJIT();
LLVMExecutionEngineRef ee = 0;
LLVMCreateMCJITCompilerForModule(&ee,m,0,0,&err);
prt(err);
using tf_t = int ();
tf_t *f =
(tf_t*)LLVMGetPointerToGlobal(ee,LLVMGetNamedFunction(m,"test_func"));
At first i got "LLVM ERROR: Incompatible object format! "
But by reading some articles I append LLVMSetTarget(m,"i686-pc-mingw32");
and it's fixed.
Then I got "LLVM E...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...amp;err); // ll_f
> doesnt
> > need freeing
> > prt(err);
> > LLVMDumpModule(m);
> >
> > LLVMLinkInMCJIT();
> > LLVMExecutionEngineRef ee = 0;
> > LLVMCreateMCJITCompilerForModule(&ee,m,0,0,&err);
> > prt(err);
> > using tf_t = int ();
> > tf_t *f =
> > (tf_t*)LLVMGetPointerToGlobal(ee,LLVMGetNamedFunction(m,"test_func"));
> >
> > At first i got "LLVM ERROR: Incompatible object format! "
> > But by reading some articles I append LLVMSetTarget(m,"i686-pc-mingw32&qu...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...prt(err);
> >> > LLVMDumpModule(m);
> >> >
> >> > LLVMLinkInMCJIT();
> >> > LLVMExecutionEngineRef ee = 0;
> >> > LLVMCreateMCJITCompilerForModule(&ee,m,0,0,&err);
> >> > prt(err);
> >> > using tf_t = int ();
> >> > tf_t *f =
> >> > (tf_t*)LLVMGetPointerToGlobal(ee,LLVMGetNamedFunction(m,"test_func"));
> >> >
> >> > At first i got "LLVM ERROR: Incompatible object format! "
> >> > But by reading some articles I ap...