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
55 DependenceAnalysis.cpp
56 DependenceGraphBuilder.cpp
57 DevelopmentModeInlineAdvisor.cpp
62 FunctionPropertiesAnalysis.cpp
66 IRSimilarityIdentifier.cpp
69 ImportedFunctionsInliningStatistics.cpp
70 IndirectCallPromotionAnalysis.cpp
74 InlineSizeEstimatorAnalysis.cpp
76 InstructionPrecedenceTracking.cpp
77 InstructionSimplify.cpp
78 InteractiveModelRunner.cpp
81 LazyBranchProbabilityInfo.cpp
82 LazyBlockFrequencyInfo.cpp
88 LoopAccessAnalysis.cpp
89 LoopAnalysisManager.cpp
92 LoopUnrollAnalyzer.cpp
98 MemoryDependenceAnalysis.cpp
100 MemoryProfileInfo.cpp
103 ModelUnderTrainingRunner.cpp
104 ModuleDebugInfoPrinter.cpp
105 ModuleSummaryAnalysis.cpp
107 NoInferenceModelRunner.cpp
108 ObjCARCAliasAnalysis.cpp
109 ObjCARCAnalysisUtils.cpp
111 OptimizationRemarkEmitter.cpp
112 OverflowInstAnalysis.cpp
116 ProfileSummaryInfo.cpp
121 ReplayInlineAdvisor.cpp
123 ScalarEvolutionAliasAnalysis.cpp
124 ScalarEvolutionDivision.cpp
125 ScalarEvolutionNormalization.cpp
127 StackSafetyAnalysis.cpp
129 SyntheticCountsUtils.cpp
131 TargetLibraryInfo.cpp
132 TargetTransformInfo.cpp
136 TypeBasedAliasAnalysis.cpp
137 TypeMetadataUtils.cpp
138 UniformityAnalysis.cpp
141 ValueLatticeUtils.cpp
144 ${GeneratedMLSources}
146 ADDITIONAL_HEADER_DIRS
147 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis