search for: orclazyjit

Displaying 16 results from an estimated 16 matches for "orclazyjit".

2017 Aug 24
1
Invalid Signature of orc::RTDyldObjectLinkingLayer::NotifyLoadedFtor
...yer::ObjectPtr &Obj,                     const LoadedObjectInfo &Info) const {       M.UnfinalizedSections[H] = std::move(M.SectionsAllocatedSinceLastLoad);       M.SectionsAllocatedSinceLastLoad = SectionAddrSet();       M.MemMgr->notifyObjectLoaded(&M, *Obj->getBinary());     } OrcLazyJIT in lli on the other hand doesn't make use of the notification.It can however be reproducedthere too: diff --git a/tools/lli/OrcLazyJIT.h b/tools/lli/OrcLazyJIT.h index 47a2acc4d7e..41a7c99413b 100644 --- a/tools/lli/OrcLazyJIT.h +++ b/tools/lli/OrcLazyJIT.h @@ -62,7 +62,11 @@ public:          ...
2016 May 04
2
OrcLazyJIT for windows
Hi There, I am currently exploring C++ JIT-compilation for a project where this would be very useful. I started with the code from the lli tool which uses OrcLazyJIT and changed it, such that the module is being compiled from c++ source in memory and OrcLazyJIT is used exclusively. Now since I am on windows, I found that my application is crashing when trying to run the main function from the jit-compiled module ( which was found by casting the symbol address...
2016 May 04
2
OrcLazyJIT for windows
...d, May 4, 2016 at 11:17 AM, David via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hi There, >> >> I am currently exploring C++ JIT-compilation for a project where this >> would be very useful. I started with the code from the lli tool which uses >> OrcLazyJIT and changed it, such that the module is being compiled from c++ >> source in memory and OrcLazyJIT is used exclusively. >> >> Now since I am on windows, I found that my application is crashing when >> trying to run the main function from the jit-compiled module ( which was &...
2015 Apr 15
2
[LLVMdev] ORC jit example (was: refs to LLVM consultants)
On Tue, Apr 14, 2015 at 7:24 AM, Lang Hames <lhames at gmail.com> wrote: > > > There are two other Orc-based JITs in tree. One is the MCJIT replacement, > which you'll find in lib/ExecutionEngine/Orc/OrcMCJITReplacement.*, and the > other is OrcLazyJIT, which you'll find in tools/lli/OrcLazyJIT.*. The > former is just emulating MCJIT's behaviour, the latter is doing true lazy > compilation of bitcode. Both are hooked up to lli, and be accessed using > the -jit-kind option. > Any thoughts of including lli in the nightly snapsh...
2016 Jul 15
2
Recompile (and re-link) a function at runtime using ORC JIT for an ARM platform
Hi, We are making the move from legacy JIT (llvm-3.5.x) to ORC JIT and I am looking to recompile (and re-link) functions at runtime for an ARM platform (Odroid XU3) . I looked at OrcLazyJIT.cpp as a starting point. However, after going through the code, it appears that the createCompileCallbackMgr (llvm-3.8.0) / createLocalCompileCallbackManager (llvm-git) do not support an ARM triple yet. Does anyone know if ARM will be supported in the future and/or point me in the right direc...
2015 Jul 20
0
[LLVMdev] Help with using LLVM to re-compile hot functions at run-time
Hi Revital, The CompileOnDemand layer is used by the lazy bitcode JIT in the lli tool. You can find the code in llvm/tools/lli/OrcLazyJIT.* . Cheers, Lang. On Mon, Jul 20, 2015 at 2:32 AM, Revital1 Eres <ERES at il.ibm.com> wrote: > Hello Lang, > > Thanks for your answer. > > I am now looking for an example of the usage of CompileOnDemandLayer. Is > there an example available for that (could not find one i...
2015 Jul 20
2
[LLVMdev] Help with using LLVM to re-compile hot functions at run-time
Hello Lang, Thanks for your answer. I am now looking for an example of the usage of CompileOnDemandLayer. Is there an example available for that (could not find one in llvm/examples)? Thanks, Revital From: Lang Hames <lhames at gmail.com> To: Revital1 Eres/Haifa/IBM at IBMIL Cc: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu> Date: 10/07/2015 12:10 AM Subject:
2017 Nov 23
2
JIT and atexit crash
Maybe the easiest workaround would be overriding symbol resolution for the function name and redirect it to your own version in static code (and hope it has no bad side effect on your use case). I think when running 3rd party code, the only way to definitely avoid this kind of trouble is to never deallocate any code or data sections. Doug Binks mentioned that too in his cppcast about Runtime
2017 Nov 23
1
JIT and atexit crash
...e whether this matches your use case, but the Orc-based JIT used in LLI appears to be using `llvm::orc::LocalCXXRuntimeOverrides` (http://llvm.org/doxygen/classllvm_1_1orc_1_1LocalCXXRuntimeOverrides.html) to override `__cxa_atexit`: https://github.com/llvm-mirror/llvm/blob/release_50/tools/lli/OrcLazyJIT.h#L74 https://github.com/llvm-mirror/llvm/blob/release_50/tools/lli/lli.cpp#L631 Best, Matt On 11/23/2017 19:49, Stefan Gränitz via llvm-dev wrote: > Maybe the easiest workaround would be overriding symbol resolution for > the function name and redirect it to your own version in static co...
2018 Jul 01
2
I've seen OrcJit is under overhaul, and also the MCJIT, so what's the plan?
I didn't seen any roadmap and plan about OrcJit & MCJIT. And would OrcJIT be stablize in version 7.0? Or latter version? Would MCJIT be removed in source tree, when? -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo -------------- next part -------------- An HTML attachment was scrubbed... URL:
2015 Jul 28
0
[LLVMdev] Help with using LLVM to re-compile hot functions at run-time
....uiuc.edu> Date: 20/07/2015 08:41 PM Subject: Re: [LLVMdev] Help with using LLVM to re-compile hot functions at run-time ------------------------------ Hi Revital, The CompileOnDemand layer is used by the lazy bitcode JIT in the lli tool. You can find the code in llvm/tools/lli/OrcLazyJIT.* . Cheers, Lang. On Mon, Jul 20, 2015 at 2:32 AM, Revital1 Eres <*ERES at il.ibm.com* <ERES at il.ibm.com>> wrote: Hello Lang, Thanks for your answer. I am now looking for an example of the usage of CompileOnDemandLayer. Is there an example available for that (could not find one i...
2015 Jul 27
15
[LLVMdev] Help with using LLVM to re-compile hot functions at run-time
...ers Mailing List <llvmdev at cs.uiuc.edu> Date: 20/07/2015 08:41 PM Subject: Re: [LLVMdev] Help with using LLVM to re-compile hot functions at run-time Hi Revital, The CompileOnDemand layer is used by the lazy bitcode JIT in the lli tool. You can find the code in llvm/tools/lli/OrcLazyJIT.* . Cheers, Lang. On Mon, Jul 20, 2015 at 2:32 AM, Revital1 Eres <ERES at il.ibm.com> wrote: Hello Lang, Thanks for your answer. I am now looking for an example of the usage of CompileOnDemandLayer. Is there an example available for that (could not find one in llvm/examples)? Thank...
2018 Mar 26
0
Interest in integrating a linux perf JITEventListener?
...t; endif( LLVM_USE_INTEL_JITEVENTS ) > > +if( LLVM_USE_PERF ) > + set(LLVM_LINK_COMPONENTS > + ${LLVM_LINK_COMPONENTS} > + DebugInfoDWARF > + PerfJITEvents > + Object > + ) > +endif( LLVM_USE_PERF ) > + > add_llvm_tool(lli > lli.cpp > OrcLazyJIT.cpp > diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp > index 0823ff469de..9e488a293e2 100644 > --- a/tools/lli/lli.cpp > +++ b/tools/lli/lli.cpp > @@ -546,6 +546,8 @@ int main(int argc, char **argv, char * const *envp) { > JITEventListener::createOProfileJITEv...
2016 Dec 29
1
Interest in integrating a linux perf JITEventListener?
Having something like this available in tree would definitely be useful. For simplicity, why don't we start with support for the second style? This is the long term useful one and would be a good starting point for getting the code in tree. Can you give a pointer to the patch so that I can assess the rough complexity? If it's simple enough, I'd be happy to help get it reviewed
2017 Feb 02
0
Interest in integrating a linux perf JITEventListener?
Hi, On 2016-12-29 13:17:50 -0800, Philip Reames wrote: > Having something like this available in tree would definitely be > useful. Cool. > For simplicity, why don't we start with support for the second style? This > is the long term useful one and would be a good starting point for getting > the code in tree. Works for me. > Can you give a pointer to the patch so that
2015 Jul 29
1
[LLVMdev] Error when i am using command make -j4 command in cygwin to compile safecode
...+Asserts build llvm[3]: Linking Release+Asserts executable lli-child-target (without symbols) llvm[3]: ======= Finished Linking Release+Asserts Executable lli-child-target (without symbols) make[3]: Leaving directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/tools/lli/ChildTarget' llvm[2]: Compiling OrcLazyJIT.cpp for Release+Asserts build llvm[2]: Linking Release+Asserts executable llvm-extract (without symbols) llvm[2]: ======= Finished Linking Release+Asserts Executable opt (without symbols) make[2]: Leaving directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/tools/opt' llvm[2]: Compiling RemoteMemoryM...