<div dir="auto">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?<div dir="auto"><br></div><div dir="auto">please help.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Aug 17, 2017 1:48 PM, "Stefan Gränitz" <<a href="mailto:stefan.graenitz@gmail.com">stefan.graenitz@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Harmeeza<br>
<br>
> On 16 August 2017 at 12:05, hameeza ahmed via llvm-dev<br>
>> now how to obtain assembly file generated at run time. and do a detailed<br>
>> debugging of this code.<br>
Debugging JITed code can be hairy. I think atm it's only supported for<br>
ELF object files on Linux. If you really want to do that, you could<br>
follow this guide:<br>
<a href="https://llvm.org/docs/DebuggingJITedCode.html" rel="noreferrer" target="_blank">https://llvm.org/docs/<wbr>DebuggingJITedCode.html</a><br>
<br>
It should work if you pass -jit-kind=mcjit (the guide mentions the old<br>
flag -use-mcjit) to use the "old" monolithic MCJIT.<br>
For an ORC-based JIT you need to implement the GDB JIT Interface<br>
yourself. I have an example for this on GitHub:<br>
<a href="https://github.com/weliveindetail/JitFromScratch/tree/jit-debug/gdb-interface" rel="noreferrer" target="_blank">https://github.com/<wbr>weliveindetail/JitFromScratch/<wbr>tree/jit-debug/gdb-interface</a><br>
<br>
There is also another example that shows how to implement your own<br>
optimization chain in a ORC-Jit and dump raw vs. optimized IR code:<br>
<a href="https://github.com/weliveindetail/JitFromScratch/tree/jit-optimization" rel="noreferrer" target="_blank">https://github.com/<wbr>weliveindetail/JitFromScratch/<wbr>tree/jit-optimization</a><br>
<br>
Cheers<br>
Stefan<br>
<br>
--<br>
<a href="https://weliveindetail.github.io/blog/" rel="noreferrer" target="_blank">https://weliveindetail.github.<wbr>io/blog/</a><br>
<a href="https://cryptup.org/pub/stefan.graenitz@gmail.com" rel="noreferrer" target="_blank">https://cryptup.org/pub/<wbr>stefan.graenitz@gmail.com</a><br>
<br>
<br>
</blockquote></div></div>