brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · cd04a77 Raw
89 lines · plain
1set(LLVM_LINK_COMPONENTS2  Analysis3  AsmParser4  CodeGen5  Core6  Instrumentation7  Passes8  Support9  TargetParser10  TransformUtils11  IPO12  )13 14set(ANALYSIS_TEST_SOURCES15  AliasAnalysisTest.cpp16  AliasSetTrackerTest.cpp17  AssumeBundleQueriesTest.cpp18  BasicAliasAnalysisTest.cpp19  BlockFrequencyInfoTest.cpp20  BranchProbabilityInfoTest.cpp21  CallGraphTest.cpp22  CaptureTrackingTest.cpp23  CFGTest.cpp24  CGSCCPassManagerTest.cpp25  ConstraintSystemTest.cpp26  CtxProfAnalysisTest.cpp27  DDGTest.cpp28  DomTreeUpdaterTest.cpp29  DXILResourceTest.cpp30  EphemeralValuesCacheTest.cpp31  GraphWriterTest.cpp32  GlobalsModRefTest.cpp33  FunctionPropertiesAnalysisTest.cpp34  InlineCostTest.cpp35  IR2VecTest.cpp36  IRSimilarityIdentifierTest.cpp37  IVDescriptorsTest.cpp38  LastRunTrackingAnalysisTest.cpp39  LazyCallGraphTest.cpp40  LoadsTest.cpp41  LoopInfoTest.cpp42  LoopNestTest.cpp43  MemoryBuiltinsTest.cpp44  MemoryProfileInfoTest.cpp45  MemorySSATest.cpp46  MLModelRunnerTest.cpp47  PhiValuesTest.cpp48  PluginInlineAdvisorAnalysisTest.cpp49  PluginInlineOrderAnalysisTest.cpp50  ProfileSummaryInfoTest.cpp51  ReplaceWithVecLibTest.cpp52  ScalarEvolutionTest.cpp53  SparsePropagation.cpp54  TargetLibraryInfoTest.cpp55  TensorSpecTest.cpp56  TBAATest.cpp57  UnrollAnalyzerTest.cpp58  ValueLatticeTest.cpp59  ValueTrackingTest.cpp60  VectorUtilsTest.cpp61  )62 63set(MLGO_TESTS TFUtilsTest.cpp)64 65if (LLVM_HAVE_TFLITE)66  LIST(APPEND ANALYSIS_TEST_SOURCES ${MLGO_TESTS})67else()68  LIST(APPEND LLVM_OPTIONAL_SOURCES ${MLGO_TESTS})69endif()70 71add_llvm_unittest_with_input_files(AnalysisTests72  ${ANALYSIS_TEST_SOURCES}73 74  EXPORT_SYMBOLS75  )76 77add_dependencies(AnalysisTests intrinsics_gen)78 79target_link_libraries(AnalysisTests PRIVATE LLVMTestingSupport)80 81# On AIX, enable run-time linking to allow symbols from the plugins shared82# objects to be properly bound.83if(CMAKE_SYSTEM_NAME STREQUAL "AIX")84  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-brtl")85endif()86 87add_subdirectory(InlineAdvisorPlugin)88add_subdirectory(InlineOrderPlugin)89