aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2020-11-16 19:22:20 +1100
committerLang Hames <lhames@gmail.com>2020-11-16 19:28:14 +1100
commitf62e5f456917fabaa3c05442d343ea4fb4089a71 (patch)
tree79444f0c417ebc761ebc9b030db26465c1d8d397 /clang/lib/Frontend/CompilerInvocation.cpp
parent1c00d096a608da1489cc4e3c1bba9ac5b4732af8 (diff)
downloadllvm-f62e5f456917fabaa3c05442d343ea4fb4089a71.zip
llvm-f62e5f456917fabaa3c05442d343ea4fb4089a71.tar.gz
llvm-f62e5f456917fabaa3c05442d343ea4fb4089a71.tar.bz2
[MCJIT] Profile the code generated by MCJIT engine using Intel VTune profiler
Patch by Elena Kovanova. Thanks Elena! Problem: LLVM already has a feature to profile the JIT-compiled code with VTune. This is done using Intel JIT Profiling API (https://github.com/intel/ittapi). Function information is captured by VTune as soon as the function is JIT-compiled. We tried to use the same approach to report the function information generated by the MCJIT engine – read parsing the debug information for in-memory ELF module and report it using JIT API. As the results, we figured out that it did not work properly for the following cases: inline functions, the functions located in multiple source files, the functions having several bodies (address ranges). Solution: To overcome limitations described above, we have introduced new APIs as a part of Intel ITT APIs to report the entire in-memory ELF module to be further processed as regular ELF binaries with debug information. This patch 1. Switches LLVM to open source version of Intel ITT/JIT APIs (https://github.com/intel/ittapi) to keep it always up to date. 2. Adds support of profiling the code generated by MCJIT engine using Intel VTune profiler Another separate patch will get rid of obsolete Intel ITT APIs stuff, having LLVM already switched to https://github.com/intel/ittapi. Differential Revision: https://reviews.llvm.org/D86435
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions