2018-04-04 19:37:06 +08:00
|
|
|
include_directories(
|
2018-04-06 02:16:02 +08:00
|
|
|
${LLVM_MAIN_SRC_DIR}/tools/llvm-exegesis/lib
|
2018-04-04 19:37:06 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
MC
|
|
|
|
MCParser
|
|
|
|
Object
|
|
|
|
Support
|
|
|
|
Symbolize
|
|
|
|
)
|
|
|
|
|
|
|
|
add_llvm_unittest(LLVMExegesisTests
|
2018-08-01 22:41:45 +08:00
|
|
|
BenchmarkRunnerTest.cpp
|
2018-05-07 17:09:48 +08:00
|
|
|
ClusteringTest.cpp
|
2018-04-04 19:37:06 +08:00
|
|
|
PerfHelperTest.cpp
|
2018-09-17 19:09:32 +08:00
|
|
|
RegisterValueTest.cpp
|
2018-04-04 19:37:06 +08:00
|
|
|
)
|
|
|
|
target_link_libraries(LLVMExegesisTests PRIVATE LLVMExegesis)
|
|
|
|
|
2018-04-13 20:20:30 +08:00
|
|
|
if(LLVM_TARGETS_TO_BUILD MATCHES "X86")
|
2018-05-15 15:40:21 +08:00
|
|
|
add_subdirectory(X86)
|
|
|
|
endif()
|
|
|
|
if(LLVM_TARGETS_TO_BUILD MATCHES "ARM")
|
|
|
|
add_subdirectory(ARM)
|
2018-04-13 20:20:30 +08:00
|
|
|
endif()
|
2018-07-03 18:10:29 +08:00
|
|
|
if(LLVM_TARGETS_TO_BUILD MATCHES "AArch64")
|
|
|
|
add_subdirectory(AArch64)
|
|
|
|
endif()
|