[LLVMdev] perf tool support in MCJIT

sathvik sathvikl at gmail.com
Tue May 27 15:26:10 PDT 2014


Hi Jose,

with the MCJIT model, the size of the functions can be pre-determined, so
there wouldn't be a need to call the slower disassemble subroutine. I will
try writing a simpler patch and submit it and perhaps it can be up
streamed.

Thanks
sathvik


On Fri, May 23, 2014 at 3:11 AM, Jose Fonseca <jfonseca at vmware.com> wrote:

> FWIW, Mesa3D has some LLVM <-> linux perf integration (and disassembly
> output too).  This responsibility can and probably should be moved upstream
> to LLVM though.
>
> For more information see:
>
> http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp#n411
>   http://cgit.freedesktop.org/mesa/mesa/tree/bin/perf-annotate-jit
>
> Jose
>
> ----- Original Message -----
> > I believe the perf tool cannot profile/analyze the JITed code in MCJIT
> model.
> >
> > Can you please confirm this ? I was working on a patch to fix this.
> >
> > Another question, is the there any support to map the llvm IR with x86
> > generated assembly ? so its easier to analyze the code generator.
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu
> >
> https://urldefense.proofpoint.com/v1/url?u=http://llvm.cs.uiuc.edu/&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=pz7CBYMkf0bQ61TAbfTPU3%2BwAe0NO%2FxowmgMa60gjdM%3D%0A&s=0666cf509d2a9468bf6c6c0b283081b5e68c8a70b7dda01f2d6835c50fee7347
> >
> https://urldefense.proofpoint.com/v1/url?u=http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=pz7CBYMkf0bQ61TAbfTPU3%2BwAe0NO%2FxowmgMa60gjdM%3D%0A&s=a89ce7b4673ff5778ccddcd60e3da0b52402bcd1bd132301fcb2ecffb64cc62f
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140527/c69354fd/attachment.html>


More information about the llvm-dev mailing list