1import("//third-party/unittest/unittest.gni") 2 3unittest("AnalysisTests") { 4 deps = [ 5 "//llvm/lib/Analysis", 6 "//llvm/lib/AsmParser", 7 "//llvm/lib/IR", 8 "//llvm/lib/Passes", 9 "//llvm/lib/Support", 10 "//llvm/lib/TargetParser", 11 "//llvm/lib/Testing/Support", 12 "//llvm/lib/Transforms/Utils", 13 ] 14 sources = [ 15 "AliasAnalysisTest.cpp", 16 "AliasSetTrackerTest.cpp", 17 "AssumeBundleQueriesTest.cpp", 18 "BasicAliasAnalysisTest.cpp", 19 "BlockFrequencyInfoTest.cpp", 20 "BranchProbabilityInfoTest.cpp", 21 "CFGTest.cpp", 22 "CGSCCPassManagerTest.cpp", 23 "CallGraphTest.cpp", 24 "CaptureTrackingTest.cpp", 25 "ConstraintSystemTest.cpp", 26 "CtxProfAnalysisTest.cpp", 27 "DDGTest.cpp", 28 "DXILResourceTest.cpp", 29 "DomTreeUpdaterTest.cpp", 30 "FunctionPropertiesAnalysisTest.cpp", 31 "GlobalsModRefTest.cpp", 32 "GraphWriterTest.cpp", 33 "IRSimilarityIdentifierTest.cpp", 34 "IVDescriptorsTest.cpp", 35 "InlineCostTest.cpp", 36 "LastRunTrackingAnalysisTest.cpp", 37 "LazyCallGraphTest.cpp", 38 "LoadsTest.cpp", 39 "LoopInfoTest.cpp", 40 "LoopNestTest.cpp", 41 "MLModelRunnerTest.cpp", 42 "MemoryBuiltinsTest.cpp", 43 "MemoryProfileInfoTest.cpp", 44 "MemorySSATest.cpp", 45 "PhiValuesTest.cpp", 46 "PluginInlineAdvisorAnalysisTest.cpp", 47 "PluginInlineOrderAnalysisTest.cpp", 48 "ProfileSummaryInfoTest.cpp", 49 "ReplaceWithVecLibTest.cpp", 50 "ScalarEvolutionTest.cpp", 51 "SparsePropagation.cpp", 52 "TBAATest.cpp", 53 "TargetLibraryInfoTest.cpp", 54 "TensorSpecTest.cpp", 55 "UnrollAnalyzerTest.cpp", 56 "ValueLatticeTest.cpp", 57 "ValueTrackingTest.cpp", 58 "VectorUtilsTest.cpp", 59 ] 60 61 # If plugins are disabled, this test will disable itself at runtime. 62 # Otherwise, reconfiguring with plugins disabled will leave behind a stale 63 # executable. 64 if (host_os != "win") { 65 deps += [ 66 "InlineAdvisorPlugin", 67 "InlineOrderPlugin", 68 ] 69 } 70 71 # Support plugins. 72 # FIXME: Disable dead stripping once other binaries are dead-stripped. 73 if (host_os != "mac" && host_os != "win") { 74 # Corresponds to export_executable_symbols() in cmake. 75 ldflags = [ "-rdynamic" ] 76 } 77} 78