Debian Codegraph @

llvm/unittests/Analysis/CMakeLists.txt

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