[llvm-dev] LLVM JIT Compilation

hameeza ahmed via llvm-dev llvm-dev at lists.llvm.org
Thu Aug 17 10:36:11 PDT 2017


Thanks alot. i need to use JIT to perform operations on user input file
supplied at run time using vector instructions. is it possible and
achievable through JIT?

please help.

On Aug 17, 2017 1:48 PM, "Stefan Gränitz" <stefan.graenitz at gmail.com> wrote:

> Hi Harmeeza
>
> > On 16 August 2017 at 12:05, hameeza ahmed via llvm-dev
> >> now how to obtain assembly file generated at run time. and do a detailed
> >> debugging of this code.
> Debugging JITed code can be hairy. I think atm it's only supported for
> ELF object files on Linux. If you really want to do that, you could
> follow this guide:
> https://llvm.org/docs/DebuggingJITedCode.html
>
> It should work if you pass -jit-kind=mcjit (the guide mentions the old
> flag -use-mcjit) to use the "old" monolithic MCJIT.
> For an ORC-based JIT you need to implement the GDB JIT Interface
> yourself. I have an example for this on GitHub:
> https://github.com/weliveindetail/JitFromScratch/
> tree/jit-debug/gdb-interface
>
> There is also another example that shows how to implement your own
> optimization chain in a ORC-Jit and dump raw vs. optimized IR code:
> https://github.com/weliveindetail/JitFromScratch/tree/jit-optimization
>
> Cheers
> Stefan
>
> --
> https://weliveindetail.github.io/blog/
> https://cryptup.org/pub/stefan.graenitz@gmail.com
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170817/5b9d67ee/attachment.html>


More information about the llvm-dev mailing list