
[ORC] Re-land https://github.com/llvm/llvm-project/pull/81826 This patch adds two plugins: VTuneSupportPlugin.cpp and JITLoaderVTune.cpp. The testing is done in a manner similar to llvm-jitlistener. Currently, we only support the old version of Intel VTune API.
28 lines
487 B
CMake
28 lines
487 B
CMake
if( CMAKE_HOST_UNIX AND HAVE_LIBRT )
|
|
set(rt_lib rt)
|
|
endif()
|
|
|
|
add_llvm_component_library(LLVMOrcDebugging
|
|
DebugInfoSupport.cpp
|
|
DebuggerSupport.cpp
|
|
DebuggerSupportPlugin.cpp
|
|
LLJITUtilsCBindings.cpp
|
|
PerfSupportPlugin.cpp
|
|
VTuneSupportPlugin.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine/Orc/Debugging/
|
|
|
|
LINK_LIBS
|
|
${LLVM_PTHREAD_LIB}
|
|
${rt_lib}
|
|
|
|
LINK_COMPONENTS
|
|
DebugInfoDWARF
|
|
JITLink
|
|
OrcJIT
|
|
OrcShared
|
|
Support
|
|
TargetParser
|
|
)
|