Displaying 4 results from an estimated 4 matches for "llvmparseirincontext".
2016 Nov 24
2
Saving private DebugInfo
...VMCore from that method and it forked for me just
fine, but something has changed in llvm 3.9 and now I can't link with
against hacked libLLVMCore. (
https://travis-ci.org/okutane/sanity/jobs/169662912 line 979 )
What can I do? The best solution for me would be "configuration" of
how LLVMParseIRInContext
deals with "outdated" debug info, but I'm open to any workarounds. :D
Best regards, Dmitry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161125/35e21ae6/attachment.html>
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
.../ 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("test_load_lib.ll",&ll_f,&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(...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...linker optmize it
> out
> >
> > char *err = 0;
> > LLVMMemoryBufferRef ll_f = 0;
> > LLVMModuleRef m = 0;
> >
> LLVMCreateMemoryBufferWithContentsOfFile("test_load_lib.ll",&ll_f,&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);
>...
2014 Apr 04
2
[LLVMdev] Weird problems on calling an external function from MCJIT on Windows(mingw)
...> > LLVMMemoryBufferRef ll_f = 0;
> >> > LLVMModuleRef m = 0;
> >> >
> >> >
> LLVMCreateMemoryBufferWithContentsOfFile("test_load_lib.ll",&ll_f,&err);
> >> > //read .ll
> >> > prt(err);
> >> > LLVMParseIRInContext(LLVMGetGlobalContext(),ll_f,&m,&err); // ll_f
> >> > doesnt
> >> > need freeing
> >> > prt(err);
> >> > LLVMDumpModule(m);
> >> >
> >> > LLVMLinkInMCJIT();
> >> > LLVMExecutionEngineRef ee = 0;
>...