[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / tools / llvm-exegesis / lib / CMakeLists.txt
blob2ca0ce4f905a0e20bf11e637c4a7ef84f23cb7e5
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 set(LLVM_LINK_COMPONENTS
23   Analysis
24   CodeGen
25   Core
26   ExecutionEngine
27   GlobalISel
28   MC
29   MCDisassembler
30   MCJIT
31   MCParser
32   Object
33   ObjectYAML
34   RuntimeDyld
35   Support
36   )
38 set(libs)
39 if(LLVM_ENABLE_LIBPFM AND HAVE_LIBPFM)
40   list(APPEND libs pfm)
41 endif()
43 add_llvm_library(LLVMExegesis
44   DISABLE_LLVM_LINK_LLVM_DYLIB
45   STATIC
46   Analysis.cpp
47   Assembler.cpp
48   BenchmarkResult.cpp
49   BenchmarkRunner.cpp
50   Clustering.cpp
51   CodeTemplate.cpp
52   Error.cpp
53   LatencyBenchmarkRunner.cpp
54   LlvmState.cpp
55   MCInstrDescView.cpp
56   ParallelSnippetGenerator.cpp
57   PerfHelper.cpp
58   RegisterAliasing.cpp
59   RegisterValue.cpp
60   SchedClassResolution.cpp
61   SerialSnippetGenerator.cpp
62   SnippetFile.cpp
63   SnippetGenerator.cpp
64   SnippetRepetitor.cpp
65   Target.cpp
66   UopsBenchmarkRunner.cpp
68   LINK_LIBS ${libs}
70   DEPENDS
71   intrinsics_gen
72   )