1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/tools/llvm-exegesis/lib/CMakeLists.txt
Roman Lebedev 2f7e688f4f [NFC][llvm-exegesis] Refactor ResolvedSchedClass & friends
Summary:
`ResolvedSchedClass` will need to be used outside of `Analysis`
(before `InstructionBenchmarkClustering` even), therefore promote
it into a non-private top-level class, and while there also
move all of the functions that are only called by `ResolvedSchedClass`
into that same new file.

Reviewers: courbet, gchatelet

Reviewed By: courbet

Subscribers: mgorny, tschuett, mgrang, jdoerfert, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D59993

llvm-svn: 357259
2019-03-29 14:24:27 +00:00

59 lines
1.2 KiB
CMake

set(TARGETS_TO_APPEND "")
if (LLVM_TARGETS_TO_BUILD MATCHES "X86")
add_subdirectory(X86)
set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} X86")
endif()
if (LLVM_TARGETS_TO_BUILD MATCHES "AArch64")
add_subdirectory(AArch64)
set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} AArch64")
endif()
if (LLVM_TARGETS_TO_BUILD MATCHES "PowerPC")
add_subdirectory(PowerPC)
set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} PowerPC")
endif()
set(LLVM_EXEGESIS_TARGETS "${LLVM_EXEGESIS_TARGETS} ${TARGETS_TO_APPEND}" PARENT_SCOPE)
add_library(LLVMExegesis
STATIC
Analysis.cpp
Assembler.cpp
BenchmarkResult.cpp
BenchmarkRunner.cpp
Clustering.cpp
CodeTemplate.cpp
Latency.cpp
LlvmState.cpp
MCInstrDescView.cpp
PerfHelper.cpp
RegisterAliasing.cpp
RegisterValue.cpp
SchedClassResolution.cpp
SnippetGenerator.cpp
Target.cpp
Uops.cpp
)
llvm_update_compile_flags(LLVMExegesis)
llvm_map_components_to_libnames(libs
Analysis
CodeGen
Core
ExecutionEngine
GlobalISel
MC
MCDisassembler
MCJIT
Object
ObjectYAML
Support
)
if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
list(APPEND libs pfm)
endif()
target_link_libraries(LLVMExegesis ${libs})
set_target_properties(LLVMExegesis PROPERTIES FOLDER "Libraries")