mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
d08300d748
This is patch to add PowerPC target to llvm-exegesis. The target does just enough to be able to run llvm-exegesis in latency mode for at least some opcodes. Differential Revision: https://reviews.llvm.org/D54185 llvm-svn: 346411
33 lines
648 B
CMake
33 lines
648 B
CMake
include_directories(
|
|
${LLVM_MAIN_SRC_DIR}/tools/llvm-exegesis/lib
|
|
)
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
MC
|
|
MCParser
|
|
Object
|
|
Support
|
|
Symbolize
|
|
)
|
|
|
|
add_llvm_unittest(LLVMExegesisTests
|
|
BenchmarkRunnerTest.cpp
|
|
ClusteringTest.cpp
|
|
PerfHelperTest.cpp
|
|
RegisterValueTest.cpp
|
|
)
|
|
target_link_libraries(LLVMExegesisTests PRIVATE LLVMExegesis)
|
|
|
|
if(LLVM_TARGETS_TO_BUILD MATCHES "X86")
|
|
add_subdirectory(X86)
|
|
endif()
|
|
if(LLVM_TARGETS_TO_BUILD MATCHES "ARM")
|
|
add_subdirectory(ARM)
|
|
endif()
|
|
if(LLVM_TARGETS_TO_BUILD MATCHES "AArch64")
|
|
add_subdirectory(AArch64)
|
|
endif()
|
|
if(LLVM_TARGETS_TO_BUILD MATCHES "PowerPC")
|
|
add_subdirectory(PowerPC)
|
|
endif()
|