[Alignment][NFC] Remove AllocaInst::setAlignment(unsigned)
[llvm-core.git] / tools / llvm-exegesis / lib / CMakeLists.txt
blob03a5f717dad6942a92cd2160f8ee1f1c537459cd
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()
16 set(LLVM_EXEGESIS_TARGETS "${LLVM_EXEGESIS_TARGETS} ${TARGETS_TO_APPEND}" PARENT_SCOPE)
18 add_library(LLVMExegesis
19   STATIC
20   Analysis.cpp
21   Assembler.cpp
22   BenchmarkResult.cpp
23   BenchmarkRunner.cpp
24   Clustering.cpp
25   CodeTemplate.cpp
26   Latency.cpp
27   LlvmState.cpp
28   MCInstrDescView.cpp
29   PerfHelper.cpp
30   RegisterAliasing.cpp
31   RegisterValue.cpp
32   SchedClassResolution.cpp
33   SnippetFile.cpp
34   SnippetGenerator.cpp
35   SnippetRepetitor.cpp
36   Target.cpp
37   Uops.cpp
38   )
40 llvm_update_compile_flags(LLVMExegesis)
41 llvm_map_components_to_libnames(libs
42   Analysis
43   CodeGen
44   Core
45   ExecutionEngine
46   GlobalISel
47   MC
48   MCDisassembler
49   MCJIT
50   Object
51   ObjectYAML
52   Support
53   )
55 if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
56   list(APPEND libs pfm)
57 endif()
59 target_link_libraries(LLVMExegesis ${libs})
60 set_target_properties(LLVMExegesis PROPERTIES FOLDER "Libraries")