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