[InstCombine] Signed saturation patterns
[llvm-core.git] / tools / llvm-exegesis / lib / CMakeLists.txt
blobe5b5d5659115bee11509e46cec5e9c8a4e96381f
1 set(TARGETS_TO_APPEND "")
3 if (LLVM_TARGETS_TO_BUILD MATCHES "X86")
4   add_subdirectory(X86)
5   set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} X86")
6 endif()
7 if (LLVM_TARGETS_TO_BUILD MATCHES "AArch64")
8   add_subdirectory(AArch64)
9   set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} AArch64")
10 endif()
11 if (LLVM_TARGETS_TO_BUILD MATCHES "PowerPC")
12   add_subdirectory(PowerPC)
13   set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} PowerPC")
14 endif()
15 if (LLVM_TARGETS_TO_BUILD MATCHES "Mips")
16   add_subdirectory(Mips)
17   set(TARGETS_TO_APPEND "${TARGETS_TO_APPEND} Mips")
18 endif()
20 set(LLVM_EXEGESIS_TARGETS "${LLVM_EXEGESIS_TARGETS} ${TARGETS_TO_APPEND}" PARENT_SCOPE)
22 add_library(LLVMExegesis
23   STATIC
24   Analysis.cpp
25   Assembler.cpp
26   BenchmarkResult.cpp
27   BenchmarkRunner.cpp
28   Clustering.cpp
29   CodeTemplate.cpp
30   Latency.cpp
31   LlvmState.cpp
32   MCInstrDescView.cpp
33   PerfHelper.cpp
34   RegisterAliasing.cpp
35   RegisterValue.cpp
36   SchedClassResolution.cpp
37   SnippetFile.cpp
38   SnippetGenerator.cpp
39   SnippetRepetitor.cpp
40   Target.cpp
41   Uops.cpp
42   )
44 llvm_update_compile_flags(LLVMExegesis)
45 llvm_map_components_to_libnames(libs
46   Analysis
47   CodeGen
48   Core
49   ExecutionEngine
50   GlobalISel
51   MC
52   MCDisassembler
53   MCJIT
54   MCParser
55   Object
56   ObjectYAML
57   Support
58   )
60 if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
61   list(APPEND libs pfm)
62 endif()
64 target_link_libraries(LLVMExegesis ${libs})
65 set_target_properties(LLVMExegesis PROPERTIES FOLDER "Libraries")