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
61 FunctionPropertiesAnalysis.cpp
65 IRSimilarityIdentifier.cpp
68 ImportedFunctionsInliningStatistics.cpp
69 IndirectCallPromotionAnalysis.cpp
73 InlineSizeEstimatorAnalysis.cpp
75 InstructionPrecedenceTracking.cpp
76 InstructionSimplify.cpp
77 InteractiveModelRunner.cpp
80 LazyBranchProbabilityInfo.cpp
81 LazyBlockFrequencyInfo.cpp
87 LoopAccessAnalysis.cpp
88 LoopAnalysisManager.cpp
91 LoopUnrollAnalyzer.cpp
97 MemoryDependenceAnalysis.cpp
102 ModelUnderTrainingRunner.cpp
103 ModuleDebugInfoPrinter.cpp
104 ModuleSummaryAnalysis.cpp
106 NoInferenceModelRunner.cpp
107 ObjCARCAliasAnalysis.cpp
108 ObjCARCAnalysisUtils.cpp
110 OptimizationRemarkEmitter.cpp
111 OverflowInstAnalysis.cpp
115 ProfileSummaryInfo.cpp
120 ReplayInlineAdvisor.cpp
122 ScalarEvolutionAliasAnalysis.cpp
123 ScalarEvolutionDivision.cpp
124 ScalarEvolutionNormalization.cpp
126 StackSafetyAnalysis.cpp
128 SyntheticCountsUtils.cpp
130 TargetLibraryInfo.cpp
131 TargetTransformInfo.cpp
135 TypeBasedAliasAnalysis.cpp
136 TypeMetadataUtils.cpp
137 UniformityAnalysis.cpp
140 ValueLatticeUtils.cpp
144 ${GeneratedMLSources}
146 ADDITIONAL_HEADER_DIRS
147 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis