[llvm-dev] orc vs mcjit
Lang Hames via llvm-dev
llvm-dev at lists.llvm.org
Wed Jul 10 10:27:13 PDT 2019
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.
On Sun, Jun 30, 2019 at 6:45 AM Praveen Velliengiri via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> 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.
>
> On Sun, 30 Jun 2019 at 15:09, Ashok Anand <ashok.anand at gmail.com> wrote:
>
>> yeah i m concerned about jit compilation time..
>>
>> On Sun, Jun 30, 2019 at 12:57 PM Praveen Velliengiri <
>> praveenvelliengiri at gmail.com> wrote:
>>
>>> 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?
>>>
>>> On Sun, 30 Jun 2019 at 12:48, Ashok Anand <ashok.anand at gmail.com> wrote:
>>>
>>>> Thanks Praveen. Is it suitable for LLVM 7.0.1 ? Apart from
>>>> flexibility, do we see any compile time improvements as well with ORC?
>>>>
>>>>
>>>> On Sun, Jun 30, 2019 at 12:31 PM Praveen Velliengiri <
>>>> praveenvelliengiri at gmail.com> wrote:
>>>>
>>>>> 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-dev at 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-dev at lists.llvm.org
>>>>>> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>>>>>
>>>>> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190710/71bb284e/attachment.html>
More information about the llvm-dev
mailing list