1 set(LLVM_LINK_COMPONENTS
14 set(ANALYSIS_TEST_SOURCES
16 AliasSetTrackerTest.cpp
17 AssumeBundleQueriesTest.cpp
18 BasicAliasAnalysisTest.cpp
19 BlockFrequencyInfoTest.cpp
20 BranchProbabilityInfoTest.cpp
22 CaptureTrackingTest.cpp
24 CGSCCPassManagerTest.cpp
25 ConstraintSystemTest.cpp
26 CtxProfAnalysisTest.cpp
28 DomTreeUpdaterTest.cpp
32 FunctionPropertiesAnalysisTest.cpp
34 IRSimilarityIdentifierTest.cpp
36 LastRunTrackingAnalysisTest.cpp
41 MemoryBuiltinsTest.cpp
42 MemoryProfileInfoTest.cpp
46 PluginInlineAdvisorAnalysisTest.cpp
47 PluginInlineOrderAnalysisTest.cpp
48 ProfileSummaryInfoTest.cpp
49 ReplaceWithVecLibTest.cpp
50 ScalarEvolutionTest.cpp
52 TargetLibraryInfoTest.cpp
55 UnrollAnalyzerTest.cpp
61 set(MLGO_TESTS TFUtilsTest.cpp)
64 LIST(APPEND ANALYSIS_TEST_SOURCES ${MLGO_TESTS})
66 LIST(APPEND LLVM_OPTIONAL_SOURCES ${MLGO_TESTS})
69 add_llvm_unittest_with_input_files(AnalysisTests
70 ${ANALYSIS_TEST_SOURCES}
75 add_dependencies(AnalysisTests intrinsics_gen)
77 target_link_libraries(AnalysisTests PRIVATE LLVMTestingSupport)
79 # On AIX, enable run-time linking to allow symbols from the plugins shared
80 # objects to be properly bound.
81 if(CMAKE_SYSTEM_NAME STREQUAL "AIX")
82 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-brtl")
85 add_subdirectory(InlineAdvisorPlugin)
86 add_subdirectory(InlineOrderPlugin)