[docs] Fix build-docs.sh
[llvm-project.git] / llvm / unittests / Analysis / CMakeLists.txt
bloba748949ad4c2f5a643c6b205dd7f7c6a8c1436c8
1 set(LLVM_LINK_COMPONENTS
2   Analysis
3   AsmParser
4   Core
5   Support
6   TransformUtils
7   )
9 set(MLGO_TESTS TFUtilsTest.cpp TrainingLoggerTest.cpp)
10 if (DEFINED LLVM_HAVE_TF_API)
11   LIST(APPEND EXTRA_TESTS ${MLGO_TESTS})
12 else()
13   LIST(APPEND LLVM_OPTIONAL_SOURCES ${MLGO_TESTS})
14 endif()
16 add_llvm_unittest_with_input_files(AnalysisTests
17   AliasAnalysisTest.cpp
18   AliasSetTrackerTest.cpp
19   AssumeBundleQueriesTest.cpp
20   BasicAliasAnalysisTest.cpp
21   BlockFrequencyInfoTest.cpp
22   BranchProbabilityInfoTest.cpp
23   CallGraphTest.cpp
24   CaptureTrackingTest.cpp
25   CFGTest.cpp
26   CGSCCPassManagerTest.cpp
27   ConstraintSystemTest.cpp
28   DDGTest.cpp
29   DivergenceAnalysisTest.cpp
30   DomTreeUpdaterTest.cpp
31   GlobalsModRefTest.cpp
32   FunctionPropertiesAnalysisTest.cpp
33   InlineCostTest.cpp
34   IRSimilarityIdentifierTest.cpp
35   IVDescriptorsTest.cpp
36   LazyCallGraphTest.cpp
37   LoadsTest.cpp
38   LoopInfoTest.cpp
39   LoopNestTest.cpp
40   MemoryBuiltinsTest.cpp
41   MemoryProfileInfoTest.cpp
42   MemorySSATest.cpp
43   MLModelRunnerTest.cpp
44   PhiValuesTest.cpp
45   ProfileSummaryInfoTest.cpp
46   ScalarEvolutionTest.cpp
47   VectorFunctionABITest.cpp
48   SparsePropagation.cpp
49   TargetLibraryInfoTest.cpp
50   TensorSpecTest.cpp
51   TBAATest.cpp
52   UnrollAnalyzerTest.cpp
53   ValueLatticeTest.cpp
54   ValueTrackingTest.cpp
55   VectorUtilsTest.cpp
56   ${EXTRA_TESTS}
57   )
59  target_link_libraries(AnalysisTests PRIVATE LLVMTestingSupport)