[LLVMdev] MCJIT and Kaleidoscope Tutorial

Malea, Daniel daniel.malea at intel.com
Tue Jun 4 09:05:22 PDT 2013


The unit tests contain some example usage; check
unittests/ExecutionEngine/MCJIT. I don't believe there's an actual
tutorial on MCJIT...

Dan

On 2013-06-04 10:20 AM, "Dmitri Rubinstein"
<dmitri.rubinstein at googlemail.com> wrote:

>
>Am 04.06.2013 16:05, schrieb David Tweed:
>> | I am curious about JMM->invalidInstructionCache(), which I found in
>> | lli.cpp implementation. lli.cpp contains also call finalizeObject(), I
>> | just overlooked it. lli.cpp calls finalizeObject(), which calls
>> | applyPermissions, which in turn calls invalidateInstructionCache. So
>>why
>> | lli.cpp does call JMM->invalidInstructionCache() explicitely again ?
>>
>> My suspicion is it's a historical development; because different
>> architectures do or don't actually require cache invalidation the calls
>>have
>> tended not to be initially put in, then added when other architectures
>> started using the code. When I was doing some cosmetic changes related
>>to
>> that I didn't touch lli because the impression seemed to be that it was
>>very
>> little used these days, so erring on the safe side seemed more important
>> than being completely minimal. In general, nowadays lli is not an
>>example of
>> the cleanest way to use MCJIT.
>
>But then there is no clean example of using MCJIT at all, please correct
>me if I am wrong. I just did a "git grep MCJIT" in the LLVM git repo,
>and the only tool using MCJIT is lli. Since Kaleidoscope tutorials are
>not compatible with MCJIT, there is also no tutorial explaining how to
>use MCJIT.
>
>Best,
>Dmitri
>
>>
>> Cheers,
>> Dave
>>
>>
>>
>
>_______________________________________________
>LLVM Developers mailing list
>LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list