Hongyu Chen de92615d68
[ExecutionEngine] Move IntelJITEventsWrapper to its own library. NFC (#81825)
Split IntelJITEventsWrapper away from IntelJITEvents and rename it into
IntelJITProfiling.
NFC
2024-03-04 08:44:36 -08:00

49 lines
923 B
CMake

add_llvm_component_library(LLVMExecutionEngine
ExecutionEngine.cpp
ExecutionEngineBindings.cpp
GDBRegistrationListener.cpp
SectionMemoryManager.cpp
TargetSelect.cpp
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine
DEPENDS
intrinsics_gen
LINK_COMPONENTS
Core
MC
Object
OrcTargetProcess
RuntimeDyld
Support
Target
TargetParser
)
if(BUILD_SHARED_LIBS)
target_link_libraries(LLVMExecutionEngine PUBLIC LLVMRuntimeDyld)
endif()
if( LLVM_USE_INTEL_JITEVENTS )
add_subdirectory(IntelJITProfiling)
add_subdirectory(IntelJITEvents)
endif( LLVM_USE_INTEL_JITEVENTS )
add_subdirectory(Interpreter)
add_subdirectory(JITLink)
add_subdirectory(MCJIT)
add_subdirectory(Orc)
add_subdirectory(RuntimeDyld)
if( LLVM_USE_OPROFILE )
add_subdirectory(OProfileJIT)
endif( LLVM_USE_OPROFILE )
if( LLVM_USE_PERF )
add_subdirectory(PerfJITEvents)
endif( LLVM_USE_PERF )