2018-09-24 16:39:48 +08:00
|
|
|
set(TARGETS_TO_APPEND "")
|
|
|
|
|
2018-06-19 19:28:59 +08:00
|
|
|
if (LLVM_TARGETS_TO_BUILD MATCHES "X86")
|
|
|
|
add_subdirectory(X86)
|
2018-09-24 16:39:48 +08:00
|
|
|
set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} X86")
|
2018-06-19 19:28:59 +08:00
|
|
|
endif()
|
2018-07-03 18:10:29 +08:00
|
|
|
if (LLVM_TARGETS_TO_BUILD MATCHES "AArch64")
|
|
|
|
add_subdirectory(AArch64)
|
2018-09-24 16:39:48 +08:00
|
|
|
set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} AArch64")
|
2018-07-03 18:10:29 +08:00
|
|
|
endif()
|
2018-11-09 00:51:42 +08:00
|
|
|
if (LLVM_TARGETS_TO_BUILD MATCHES "PowerPC")
|
|
|
|
add_subdirectory(PowerPC)
|
|
|
|
set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} PowerPC")
|
|
|
|
endif()
|
2019-10-12 04:26:08 +08:00
|
|
|
if (LLVM_TARGETS_TO_BUILD MATCHES "Mips")
|
|
|
|
add_subdirectory(Mips)
|
|
|
|
set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} Mips")
|
|
|
|
endif()
|
2018-06-19 19:28:59 +08:00
|
|
|
|
2018-09-24 16:39:48 +08:00
|
|
|
set(LLVM_EXEGESIS_TARGETS "${LLVM_EXEGESIS_TARGETS} ${TARGETS_TO_APPEND}" PARENT_SCOPE)
|
|
|
|
|
2018-09-16 03:04:27 +08:00
|
|
|
add_library(LLVMExegesis
|
|
|
|
STATIC
|
2018-05-15 20:08:00 +08:00
|
|
|
Analysis.cpp
|
2018-05-17 18:52:18 +08:00
|
|
|
Assembler.cpp
|
2018-04-04 19:37:06 +08:00
|
|
|
BenchmarkResult.cpp
|
|
|
|
BenchmarkRunner.cpp
|
2018-05-07 17:09:48 +08:00
|
|
|
Clustering.cpp
|
2018-09-26 19:57:24 +08:00
|
|
|
CodeTemplate.cpp
|
2020-02-07 00:08:05 +08:00
|
|
|
Error.cpp
|
2020-01-17 21:28:54 +08:00
|
|
|
LatencyBenchmarkRunner.cpp
|
2018-04-04 19:37:06 +08:00
|
|
|
LlvmState.cpp
|
2018-05-17 18:52:18 +08:00
|
|
|
MCInstrDescView.cpp
|
2020-01-17 21:28:54 +08:00
|
|
|
ParallelSnippetGenerator.cpp
|
2018-04-04 19:37:06 +08:00
|
|
|
PerfHelper.cpp
|
2018-05-17 18:52:18 +08:00
|
|
|
RegisterAliasing.cpp
|
2018-09-17 19:09:32 +08:00
|
|
|
RegisterValue.cpp
|
2019-03-29 22:24:27 +08:00
|
|
|
SchedClassResolution.cpp
|
2020-01-17 21:28:54 +08:00
|
|
|
SerialSnippetGenerator.cpp
|
2019-09-30 20:50:25 +08:00
|
|
|
SnippetFile.cpp
|
2019-03-29 22:24:27 +08:00
|
|
|
SnippetGenerator.cpp
|
2019-09-27 20:56:24 +08:00
|
|
|
SnippetRepetitor.cpp
|
2018-06-19 19:28:59 +08:00
|
|
|
Target.cpp
|
2020-01-17 21:28:54 +08:00
|
|
|
UopsBenchmarkRunner.cpp
|
2018-09-16 03:04:27 +08:00
|
|
|
)
|
2018-04-04 19:37:06 +08:00
|
|
|
|
2018-09-16 03:04:27 +08:00
|
|
|
llvm_update_compile_flags(LLVMExegesis)
|
|
|
|
llvm_map_components_to_libnames(libs
|
2018-04-04 20:58:41 +08:00
|
|
|
Analysis
|
2018-04-04 19:37:06 +08:00
|
|
|
CodeGen
|
2018-04-04 20:58:41 +08:00
|
|
|
Core
|
2018-04-04 19:37:06 +08:00
|
|
|
ExecutionEngine
|
2018-05-15 15:40:21 +08:00
|
|
|
GlobalISel
|
2018-04-04 19:37:06 +08:00
|
|
|
MC
|
2018-06-15 15:30:45 +08:00
|
|
|
MCDisassembler
|
2018-04-04 19:37:06 +08:00
|
|
|
MCJIT
|
2019-10-01 21:02:48 +08:00
|
|
|
MCParser
|
2018-04-04 20:58:41 +08:00
|
|
|
Object
|
2018-06-15 15:30:45 +08:00
|
|
|
ObjectYAML
|
2020-11-17 19:15:02 +08:00
|
|
|
RuntimeDyld
|
2018-04-04 19:37:06 +08:00
|
|
|
Support
|
2018-09-14 00:15:03 +08:00
|
|
|
)
|
2018-09-16 03:04:27 +08:00
|
|
|
|
|
|
|
if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
|
|
|
|
list(APPEND libs pfm)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_link_libraries(LLVMExegesis ${libs})
|
|
|
|
set_target_properties(LLVMExegesis PROPERTIES FOLDER "Libraries")
|