[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / lib / Analysis / CMakeLists.txt
blob9d8c9cfda66c92150fea660a0bfee7a15b424556
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)
8     tf_find_and_compile(
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"
13       serve
14       action
15       InlinerSizeModel
16       llvm::InlinerSizeModel
17     )
18   endif()
20   if (LLVM_HAVE_TFLITE)
21     list(APPEND MLLinkDeps
22       tensorflow-lite::tensorflow-lite)
23   endif()
24 endif()
26 add_llvm_component_library(LLVMAnalysis
27   AliasAnalysis.cpp
28   AliasAnalysisEvaluator.cpp
29   AliasSetTracker.cpp
30   Analysis.cpp
31   AssumeBundleQueries.cpp
32   AssumptionCache.cpp
33   BasicAliasAnalysis.cpp
34   BlockFrequencyInfo.cpp
35   BlockFrequencyInfoImpl.cpp
36   BranchProbabilityInfo.cpp
37   CFG.cpp
38   CFGPrinter.cpp
39   CFGSCCPrinter.cpp
40   CGSCCPassManager.cpp
41   CallGraph.cpp
42   CallGraphSCCPass.cpp
43   CallPrinter.cpp
44   CaptureTracking.cpp
45   CmpInstAnalysis.cpp
46   CostModel.cpp
47   CodeMetrics.cpp
48   ConstantFolding.cpp
49   CycleAnalysis.cpp
50   DDG.cpp
51   DDGPrinter.cpp
52   ConstraintSystem.cpp
53   Delinearization.cpp
54   DemandedBits.cpp
55   DependenceAnalysis.cpp
56   DependenceGraphBuilder.cpp
57   DevelopmentModeInlineAdvisor.cpp
58   DomPrinter.cpp
59   DomTreeUpdater.cpp
60   DominanceFrontier.cpp
61   FunctionPropertiesAnalysis.cpp
62   GlobalsModRef.cpp
63   GuardUtils.cpp
64   HeatUtils.cpp
65   IRSimilarityIdentifier.cpp
66   IVDescriptors.cpp
67   IVUsers.cpp
68   ImportedFunctionsInliningStatistics.cpp
69   IndirectCallPromotionAnalysis.cpp
70   InlineCost.cpp
71   InlineAdvisor.cpp
72   InlineOrder.cpp
73   InlineSizeEstimatorAnalysis.cpp
74   InstCount.cpp
75   InstructionPrecedenceTracking.cpp
76   InstructionSimplify.cpp
77   InteractiveModelRunner.cpp
78   Interval.cpp
79   IntervalPartition.cpp
80   LazyBranchProbabilityInfo.cpp
81   LazyBlockFrequencyInfo.cpp
82   LazyCallGraph.cpp
83   LazyValueInfo.cpp
84   Lint.cpp
85   Loads.cpp
86   Local.cpp
87   LoopAccessAnalysis.cpp
88   LoopAnalysisManager.cpp
89   LoopCacheAnalysis.cpp
90   LoopNestAnalysis.cpp
91   LoopUnrollAnalyzer.cpp
92   LoopInfo.cpp
93   LoopPass.cpp
94   MLInlineAdvisor.cpp
95   MemDerefPrinter.cpp
96   MemoryBuiltins.cpp
97   MemoryDependenceAnalysis.cpp
98   MemoryLocation.cpp
99   MemoryProfileInfo.cpp
100   MemorySSA.cpp
101   MemorySSAUpdater.cpp
102   ModelUnderTrainingRunner.cpp
103   ModuleDebugInfoPrinter.cpp
104   ModuleSummaryAnalysis.cpp
105   MustExecute.cpp
106   NoInferenceModelRunner.cpp
107   ObjCARCAliasAnalysis.cpp
108   ObjCARCAnalysisUtils.cpp
109   ObjCARCInstKind.cpp
110   OptimizationRemarkEmitter.cpp
111   OverflowInstAnalysis.cpp
112   PHITransAddr.cpp
113   PhiValues.cpp
114   PostDominators.cpp
115   ProfileSummaryInfo.cpp
116   PtrUseVisitor.cpp
117   RegionInfo.cpp
118   RegionPass.cpp
119   RegionPrinter.cpp
120   ReplayInlineAdvisor.cpp
121   ScalarEvolution.cpp
122   ScalarEvolutionAliasAnalysis.cpp
123   ScalarEvolutionDivision.cpp
124   ScalarEvolutionNormalization.cpp
125   StackLifetime.cpp
126   StackSafetyAnalysis.cpp
127   StructuralHash.cpp
128   SyntheticCountsUtils.cpp
129   TFLiteUtils.cpp
130   TargetLibraryInfo.cpp
131   TargetTransformInfo.cpp
132   TensorSpec.cpp
133   Trace.cpp
134   TrainingLogger.cpp
135   TypeBasedAliasAnalysis.cpp
136   TypeMetadataUtils.cpp
137   UniformityAnalysis.cpp
138   ScopedNoAliasAA.cpp
139   ValueLattice.cpp
140   ValueLatticeUtils.cpp
141   ValueTracking.cpp
142   VectorUtils.cpp
143   VFABIDemangling.cpp
144   ${GeneratedMLSources}
146   ADDITIONAL_HEADER_DIRS
147   ${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis
149   DEPENDS
150   intrinsics_gen
151   ${MLDeps}
153   LINK_LIBS
154   ${MLLinkDeps}
156   LINK_COMPONENTS
157   BinaryFormat
158   Core
159   Object
160   ProfileData
161   Support
162   TargetParser
163   )