[LLVMdev] perf tool support in MCJIT

sathvik sathvikl at gmail.com
Tue May 27 15:29:47 PDT 2014


Hi Andrew,

Thanks for the pointer. I have tried the OProfileJIT agent in LLVM and it
works fine. Its good to know that the VTune agent has been fixed to work
with MCJIT. Do you have any pointers on how to generate the DWARF based
output in LLVM which VTune would be able to use.

Thanks
-sathvik


On Thu, May 22, 2014 at 1:31 PM, Kaylor, Andrew <andrew.kaylor at intel.com>wrote:

>  I think you can profile code generated with MCJIT using either oprofile
> or Intel® VTune™ Amplifier XE, but you need to do a special build of LLVM
> to enable it.  If you want to enable another performance tool, you can look
> at the code in lib/ExecutionEngine/OProfileJIT or
> lib/ExecutionEngine/IntelJITEvents to get an idea of how to do it.  The
> IntelJITEvents implementation is a bit more complete, in that it makes use
> of generated DWARF information if it is available.
>
>
>
> Speaking of DWARF information, Daniel Malea wrote a pass called DebugIR
> that if I recall correctly writes an IR file to disc and associates debug
> information with it as if that were the source file.  You should be able to
> make that work with any DWARF-based tool to analyze the generated code.
>
>
>
> -Andy
>
>
>
> *From:* llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] *On
> Behalf Of *sathvik
> *Sent:* Wednesday, May 21, 2014 6:20 PM
> *To:* llvmdev at cs.uiuc.edu
> *Subject:* [LLVMdev] perf tool support in MCJIT
>
>
>
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140527/52025da2/attachment.html>


More information about the llvm-dev mailing list