Clement Courbet | 1e8fdbe | 2018-09-24 08:39:48 +0000 | [diff] [blame] | 1 | set(TARGETS_TO_APPEND "") |
2 | |||||
Clement Courbet | 44b4c54 | 2018-06-19 11:28:59 +0000 | [diff] [blame] | 3 | if (LLVM_TARGETS_TO_BUILD MATCHES "X86") |
4 | add_subdirectory(X86) | ||||
Clement Courbet | 1e8fdbe | 2018-09-24 08:39:48 +0000 | [diff] [blame] | 5 | set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} X86") |
Clement Courbet | 44b4c54 | 2018-06-19 11:28:59 +0000 | [diff] [blame] | 6 | endif() |
John Brawn | c4ed600 | 2018-07-03 10:10:29 +0000 | [diff] [blame] | 7 | if (LLVM_TARGETS_TO_BUILD MATCHES "AArch64") |
8 | add_subdirectory(AArch64) | ||||
Clement Courbet | 1e8fdbe | 2018-09-24 08:39:48 +0000 | [diff] [blame] | 9 | set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} AArch64") |
John Brawn | c4ed600 | 2018-07-03 10:10:29 +0000 | [diff] [blame] | 10 | endif() |
Jinsong Ji | 5fd3e75 | 2018-11-08 16:51:42 +0000 | [diff] [blame] | 11 | if (LLVM_TARGETS_TO_BUILD MATCHES "PowerPC") |
12 | add_subdirectory(PowerPC) | ||||
13 | set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} PowerPC") | ||||
14 | endif() | ||||
Clement Courbet | 44b4c54 | 2018-06-19 11:28:59 +0000 | [diff] [blame] | 15 | |
Clement Courbet | 1e8fdbe | 2018-09-24 08:39:48 +0000 | [diff] [blame] | 16 | set(LLVM_EXEGESIS_TARGETS "${LLVM_EXEGESIS_TARGETS} ${TARGETS_TO_APPEND}" PARENT_SCOPE) |
17 | |||||
Nico Weber | b09a8c9 | 2018-09-15 19:04:27 +0000 | [diff] [blame] | 18 | add_library(LLVMExegesis |
19 | STATIC | ||||
Clement Courbet | 37f0ca0 | 2018-05-15 12:08:00 +0000 | [diff] [blame] | 20 | Analysis.cpp |
Clement Courbet | 0e69e2d | 2018-05-17 10:52:18 +0000 | [diff] [blame] | 21 | Assembler.cpp |
Clement Courbet | ac74acd | 2018-04-04 11:37:06 +0000 | [diff] [blame] | 22 | BenchmarkResult.cpp |
23 | BenchmarkRunner.cpp | ||||
Clement Courbet | 9671541 | 2018-05-07 09:09:48 +0000 | [diff] [blame] | 24 | Clustering.cpp |
Guillaume Chatelet | 7f8d310 | 2018-09-26 11:57:24 +0000 | [diff] [blame] | 25 | CodeTemplate.cpp |
Clement Courbet | ac74acd | 2018-04-04 11:37:06 +0000 | [diff] [blame] | 26 | Latency.cpp |
27 | LlvmState.cpp | ||||
Clement Courbet | 0e69e2d | 2018-05-17 10:52:18 +0000 | [diff] [blame] | 28 | MCInstrDescView.cpp |
Clement Courbet | ac74acd | 2018-04-04 11:37:06 +0000 | [diff] [blame] | 29 | PerfHelper.cpp |
Clement Courbet | 0e69e2d | 2018-05-17 10:52:18 +0000 | [diff] [blame] | 30 | RegisterAliasing.cpp |
Clement Courbet | d939f6d | 2018-09-13 07:40:53 +0000 | [diff] [blame] | 31 | SnippetGenerator.cpp |
Guillaume Chatelet | cd488ef | 2018-09-17 11:09:32 +0000 | [diff] [blame] | 32 | RegisterValue.cpp |
Clement Courbet | 44b4c54 | 2018-06-19 11:28:59 +0000 | [diff] [blame] | 33 | Target.cpp |
Clement Courbet | ac74acd | 2018-04-04 11:37:06 +0000 | [diff] [blame] | 34 | Uops.cpp |
Nico Weber | b09a8c9 | 2018-09-15 19:04:27 +0000 | [diff] [blame] | 35 | ) |
Clement Courbet | ac74acd | 2018-04-04 11:37:06 +0000 | [diff] [blame] | 36 | |
Nico Weber | b09a8c9 | 2018-09-15 19:04:27 +0000 | [diff] [blame] | 37 | llvm_update_compile_flags(LLVMExegesis) |
38 | llvm_map_components_to_libnames(libs | ||||
Clement Courbet | 908dd38 | 2018-04-04 12:58:41 +0000 | [diff] [blame] | 39 | Analysis |
Clement Courbet | ac74acd | 2018-04-04 11:37:06 +0000 | [diff] [blame] | 40 | CodeGen |
Clement Courbet | 908dd38 | 2018-04-04 12:58:41 +0000 | [diff] [blame] | 41 | Core |
Clement Courbet | ac74acd | 2018-04-04 11:37:06 +0000 | [diff] [blame] | 42 | ExecutionEngine |
Clement Courbet | 559d1e3 | 2018-05-15 07:40:21 +0000 | [diff] [blame] | 43 | GlobalISel |
Clement Courbet | ac74acd | 2018-04-04 11:37:06 +0000 | [diff] [blame] | 44 | MC |
Clement Courbet | 4273e1e | 2018-06-15 07:30:45 +0000 | [diff] [blame] | 45 | MCDisassembler |
Clement Courbet | ac74acd | 2018-04-04 11:37:06 +0000 | [diff] [blame] | 46 | MCJIT |
Clement Courbet | 908dd38 | 2018-04-04 12:58:41 +0000 | [diff] [blame] | 47 | Object |
Clement Courbet | 4273e1e | 2018-06-15 07:30:45 +0000 | [diff] [blame] | 48 | ObjectYAML |
Clement Courbet | ac74acd | 2018-04-04 11:37:06 +0000 | [diff] [blame] | 49 | Support |
50 | ) | ||||
Nico Weber | b09a8c9 | 2018-09-15 19:04:27 +0000 | [diff] [blame] | 51 | |
52 | if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM) | ||||
53 | list(APPEND libs pfm) | ||||
54 | endif() | ||||
55 | |||||
56 | target_link_libraries(LLVMExegesis ${libs}) | ||||
57 | set_target_properties(LLVMExegesis PROPERTIES FOLDER "Libraries") |