[ARM] Add support for MVE pre and post inc loads and stores
[llvm-core.git] / tools / llvm-exegesis / lib / CMakeLists.txt
blobef1a411d9ef2617c2784d8f47eee86e0a4b0f1a0
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   SnippetGenerator.cpp
34   Target.cpp
35   Uops.cpp
36   )
38 llvm_update_compile_flags(LLVMExegesis)
39 llvm_map_components_to_libnames(libs
40   Analysis
41   CodeGen
42   Core
43   ExecutionEngine
44   GlobalISel
45   MC
46   MCDisassembler
47   MCJIT
48   Object
49   ObjectYAML
50   Support
51   )
53 if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
54   list(APPEND libs pfm)
55 endif()
57 target_link_libraries(LLVMExegesis ${libs})
58 set_target_properties(LLVMExegesis PROPERTIES FOLDER "Libraries")