1 if (DEFINED LLVM_HAVE_TF_AOT OR LLVM_HAVE_TFLITE)
2 include(TensorFlowCompile)
3 set(LLVM_INLINER_MODEL_PATH_DEFAULT "models/inliner-Oz")
5 set(LLVM_INLINER_MODEL_CURRENT_URL "<UNSPECIFIED>" CACHE STRING "URL to download the LLVM inliner model")
7 if (DEFINED LLVM_HAVE_TF_AOT)
9 ${LLVM_INLINER_MODEL_PATH}
10 ${LLVM_INLINER_MODEL_CURRENT_URL}
11 ${LLVM_INLINER_MODEL_PATH_DEFAULT}
12 "models/gen-inline-oz-test-model.py"
16 llvm::InlinerSizeModel
21 list(APPEND MLLinkDeps
22 tensorflow-lite::tensorflow-lite)
26 add_llvm_component_library(LLVMAnalysis
28 AliasAnalysisEvaluator.cpp
31 AssumeBundleQueries.cpp
33 BasicAliasAnalysis.cpp
34 BlockFrequencyInfo.cpp
35 BlockFrequencyInfoImpl.cpp
36 BranchProbabilityInfo.cpp
56 DependenceAnalysis.cpp
57 DependenceGraphBuilder.cpp
58 DevelopmentModeInlineAdvisor.cpp
64 DXILMetadataAnalysis.cpp
65 FunctionPropertiesAnalysis.cpp
69 IRSimilarityIdentifier.cpp
72 ImportedFunctionsInliningStatistics.cpp
73 IndirectCallPromotionAnalysis.cpp
77 InlineSizeEstimatorAnalysis.cpp
79 InstructionPrecedenceTracking.cpp
80 InstructionSimplify.cpp
81 InteractiveModelRunner.cpp
82 LastRunTrackingAnalysis.cpp
83 LazyBranchProbabilityInfo.cpp
84 LazyBlockFrequencyInfo.cpp
90 LoopAccessAnalysis.cpp
91 LoopAnalysisManager.cpp
94 LoopUnrollAnalyzer.cpp
100 MemoryDependenceAnalysis.cpp
102 MemoryProfileInfo.cpp
105 ModelUnderTrainingRunner.cpp
106 ModuleDebugInfoPrinter.cpp
107 ModuleSummaryAnalysis.cpp
109 NoInferenceModelRunner.cpp
110 ObjCARCAliasAnalysis.cpp
111 ObjCARCAnalysisUtils.cpp
113 OptimizationRemarkEmitter.cpp
114 OverflowInstAnalysis.cpp
118 ProfileSummaryInfo.cpp
123 ReplayInlineAdvisor.cpp
125 ScalarEvolutionAliasAnalysis.cpp
126 ScalarEvolutionDivision.cpp
127 ScalarEvolutionNormalization.cpp
129 StackSafetyAnalysis.cpp
131 SyntheticCountsUtils.cpp
133 TargetLibraryInfo.cpp
134 TargetTransformInfo.cpp
138 TypeBasedAliasAnalysis.cpp
139 TypeMetadataUtils.cpp
140 UniformityAnalysis.cpp
143 ValueLatticeUtils.cpp
146 ${GeneratedMLSources}
148 ADDITIONAL_HEADER_DIRS
149 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis
167 include(CheckCXXSymbolExists)
168 check_cxx_symbol_exists(logf128 math.h HAS_LOGF128)
170 target_compile_definitions(LLVMAnalysis PRIVATE HAS_LOGF128)