[LLVMdev] perf tool support in MCJIT

Kaylor, Andrew andrew.kaylor at intel.com
Thu May 22 13:31:27 PDT 2014


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/20140522/31d22681/attachment.html>


More information about the llvm-dev mailing list