Bump version to 19.1.0-rc3
[llvm-project.git] / llvm / unittests / Analysis / CMakeLists.txt
blobb1aeaa6e71fd4cf9511899bb0fe1306404ddf308
1 set(LLVM_LINK_COMPONENTS
2   Analysis
3   AsmParser
4   CodeGen
5   Core
6   Passes
7   Support
8   TargetParser
9   TransformUtils
10   IPO
11   )
13 set(ANALYSIS_TEST_SOURCES
14   AliasAnalysisTest.cpp
15   AliasSetTrackerTest.cpp
16   AssumeBundleQueriesTest.cpp
17   BasicAliasAnalysisTest.cpp
18   BlockFrequencyInfoTest.cpp
19   BranchProbabilityInfoTest.cpp
20   CallGraphTest.cpp
21   CaptureTrackingTest.cpp
22   CFGTest.cpp
23   CGSCCPassManagerTest.cpp
24   ConstraintSystemTest.cpp
25   DDGTest.cpp
26   DomTreeUpdaterTest.cpp
27   GlobalsModRefTest.cpp
28   FunctionPropertiesAnalysisTest.cpp
29   InlineCostTest.cpp
30   IRSimilarityIdentifierTest.cpp
31   IVDescriptorsTest.cpp
32   LazyCallGraphTest.cpp
33   LoadsTest.cpp
34   LoopInfoTest.cpp
35   LoopNestTest.cpp
36   MemoryBuiltinsTest.cpp
37   MemoryProfileInfoTest.cpp
38   MemorySSATest.cpp
39   MLModelRunnerTest.cpp
40   PhiValuesTest.cpp
41   PluginInlineAdvisorAnalysisTest.cpp
42   PluginInlineOrderAnalysisTest.cpp
43   ProfileSummaryInfoTest.cpp
44   ReplaceWithVecLibTest.cpp
45   ScalarEvolutionTest.cpp
46   SparsePropagation.cpp
47   TargetLibraryInfoTest.cpp
48   TensorSpecTest.cpp
49   TBAATest.cpp
50   UnrollAnalyzerTest.cpp
51   ValueLatticeTest.cpp
52   ValueTrackingTest.cpp
53   VectorUtilsTest.cpp
54   )
56 set(MLGO_TESTS TFUtilsTest.cpp)
58 if (LLVM_HAVE_TFLITE)
59   LIST(APPEND ANALYSIS_TEST_SOURCES ${MLGO_TESTS})
60 else()
61   LIST(APPEND LLVM_OPTIONAL_SOURCES ${MLGO_TESTS})
62 endif()
64 add_llvm_unittest_with_input_files(AnalysisTests
65   ${ANALYSIS_TEST_SOURCES}
66   )
68 add_dependencies(AnalysisTests intrinsics_gen)
70 target_link_libraries(AnalysisTests PRIVATE LLVMTestingSupport)
72 # On AIX, enable run-time linking to allow symbols from the plugins shared
73 # objects to be properly bound.
74 if(CMAKE_SYSTEM_NAME STREQUAL "AIX")
75   set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-brtl")
76 endif()
78 # Export symbols from the plugins shared objects.
79 if(NOT WIN32)
80   export_executable_symbols_for_plugins(AnalysisTests)
81 endif()
83 add_subdirectory(InlineAdvisorPlugin)
84 add_subdirectory(InlineOrderPlugin)