[llvm-dev] orc vs mcjit

171 views
Skip to first unread message

Ashok Anand via llvm-dev

unread,
Jun 30, 2019, 2:15:29 AM6/30/19
to llvm...@lists.llvm.org
Which llvm version is more suitable to switch to orc - vs - mcjit.  We don't have requirement of lazy compilation, in that case, is it worth switching?
We do have requirement of ability to serialize machine code and reuse it later. MCJit seems to provide that option - how well is that supported in ORC ?

Praveen Velliengiri via llvm-dev

unread,
Jun 30, 2019, 3:01:35 AM6/30/19
to Ashok Anand, llvm-dev
MCJIT hopefully will be removed in subsequent releases. I think the last release version is more suitable.

On Sun, 30 Jun 2019 at 11:45, Ashok Anand via llvm-dev <llvm...@lists.llvm.org> wrote:
Which llvm version is more suitable to switch to orc - vs - mcjit.  We don't have requirement of lazy compilation, in that case, is it worth switching?
We do have requirement of ability to serialize machine code and reuse it later. MCJit seems to provide that option - how well is that supported in ORC ?
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

Ashok Anand via llvm-dev

unread,
Jun 30, 2019, 3:18:58 AM6/30/19
to Praveen Velliengiri, llvm-dev
Thanks Praveen. Is it suitable for LLVM 7.0.1 ?  Apart from flexibility, do we see any compile time improvements as well with ORC?

Praveen Velliengiri via llvm-dev

unread,
Jun 30, 2019, 3:27:37 AM6/30/19
to Ashok Anand, llvm-dev
Yes I think so.. Could you please tell me in which context (compile time improvement)? That is whether you are interested in knowing whether having ORC instead of MCJIT, will increase your LLVM Build time or you are concerned about the JIT Compilation time?

Ashok Anand via llvm-dev

unread,
Jun 30, 2019, 5:39:06 AM6/30/19
to Praveen Velliengiri, llvm-dev
yeah i m concerned about jit compilation time..  

Praveen Velliengiri via llvm-dev

unread,
Jun 30, 2019, 9:45:36 AM6/30/19
to Ashok Anand, llvm-dev
Okay, ORC by itself doesn't add any extra compilation time as I'm aware of. Apart from that ORC now multi-threaded compilation also.

Lang Hames via llvm-dev

unread,
Jul 10, 2019, 1:27:40 PM7/10/19
to Praveen Velliengiri, llvm-dev
Hi Ashok,

Just to add to what Praveen mentioned: I would recommend using the LLJIT class, which is built on ORCv2 and supports object caching via the same ObjectCache interface used by MCJIT. I have just added (in r365671) an example of how to set up an LLJIT instance with object caching. See llvm/examples/LLJITExamples/LLJITWithObjectCache.

Cheers,
Lang.
Reply all
Reply to author
Forward
0 new messages