[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Analysis / CMakeLists.txt
blobf3e5b81645982a7f13ae6e285e8a4cf94db652e5
1 if (DEFINED LLVM_HAVE_TF_AOT OR DEFINED LLVM_HAVE_TF_API)
2   include(TensorFlowCompile)
3   set(LLVM_INLINER_MODEL_PATH_DEFAULT "models/inliner-Oz")
5   # This url points to the most recent most which is known to be compatible with
6   # LLVM. When better models are published, this url should be updated to aid
7   # discoverability.
8   set(LLVM_INLINER_MODEL_CURRENT_URL "https://github.com/google/ml-compiler-opt/releases/download/inlining-Oz-v1.1/inlining-Oz-99f0063-v1.1.tar.gz")
10   if (DEFINED LLVM_HAVE_TF_AOT)
11     # If the path is empty, autogenerate the model
12     if (NOT DEFINED LLVM_INLINER_MODEL_PATH OR "${LLVM_INLINER_MODEL_PATH}" STREQUAL "")
13       set(LLVM_INLINER_MODEL_PATH "autogenerate")
14       message(WARNING "LLVM_INLINER_MODEL_PATH was not set: autogenerating a model to finish the build.")
15     endif()
17     tf_find_and_compile(
18       ${LLVM_INLINER_MODEL_PATH}
19       ${LLVM_INLINER_MODEL_CURRENT_URL}
20       ${LLVM_INLINER_MODEL_PATH_DEFAULT}
21       "models/inlining/config.py"
22       serve
23       action
24       InlinerSizeModel
25       llvm::InlinerSizeModel
26     )
27   endif()
29   if (DEFINED LLVM_HAVE_TF_API)
30     list(APPEND MLLinkDeps ${tensorflow_c_api} ${tensorflow_fx})
31   endif()
32 endif()
34 add_llvm_component_library(LLVMAnalysis
35   AliasAnalysis.cpp
36   AliasAnalysisEvaluator.cpp
37   AliasAnalysisSummary.cpp
38   AliasSetTracker.cpp
39   Analysis.cpp
40   AssumeBundleQueries.cpp
41   AssumptionCache.cpp
42   BasicAliasAnalysis.cpp
43   BlockFrequencyInfo.cpp
44   BlockFrequencyInfoImpl.cpp
45   BranchProbabilityInfo.cpp
46   CFG.cpp
47   CFGPrinter.cpp
48   CFLAndersAliasAnalysis.cpp
49   CFLSteensAliasAnalysis.cpp
50   CGSCCPassManager.cpp
51   CallGraph.cpp
52   CallGraphSCCPass.cpp
53   CallPrinter.cpp
54   CaptureTracking.cpp
55   CmpInstAnalysis.cpp
56   CostModel.cpp
57   CodeMetrics.cpp
58   ConstantFolding.cpp
59   DDG.cpp
60   DDGPrinter.cpp
61   ConstraintSystem.cpp
62   Delinearization.cpp
63   DemandedBits.cpp
64   DependenceAnalysis.cpp
65   DependenceGraphBuilder.cpp
66   DevelopmentModeInlineAdvisor.cpp
67   DivergenceAnalysis.cpp
68   DomPrinter.cpp
69   DomTreeUpdater.cpp
70   DominanceFrontier.cpp
71   EHPersonalities.cpp
72   FunctionPropertiesAnalysis.cpp
73   GlobalsModRef.cpp
74   GuardUtils.cpp
75   HeatUtils.cpp
76   IRSimilarityIdentifier.cpp
77   IVDescriptors.cpp
78   IVUsers.cpp
79   ImportedFunctionsInliningStatistics.cpp
80   IndirectCallPromotionAnalysis.cpp
81   InlineCost.cpp
82   InlineAdvisor.cpp
83   InlineSizeEstimatorAnalysis.cpp
84   InstCount.cpp
85   InstructionPrecedenceTracking.cpp
86   InstructionSimplify.cpp
87   Interval.cpp
88   IntervalPartition.cpp
89   LazyBranchProbabilityInfo.cpp
90   LazyBlockFrequencyInfo.cpp
91   LazyCallGraph.cpp
92   LazyValueInfo.cpp
93   LegacyDivergenceAnalysis.cpp
94   Lint.cpp
95   Loads.cpp
96   LoopAccessAnalysis.cpp
97   LoopAnalysisManager.cpp
98   LoopCacheAnalysis.cpp
99   LoopNestAnalysis.cpp
100   LoopUnrollAnalyzer.cpp
101   LoopInfo.cpp
102   LoopPass.cpp
103   MLInlineAdvisor.cpp
104   MemDepPrinter.cpp
105   MemDerefPrinter.cpp
106   MemoryBuiltins.cpp
107   MemoryDependenceAnalysis.cpp
108   MemoryLocation.cpp
109   MemorySSA.cpp
110   MemorySSAUpdater.cpp
111   ModuleDebugInfoPrinter.cpp
112   ModuleSummaryAnalysis.cpp
113   MustExecute.cpp
114   ObjCARCAliasAnalysis.cpp
115   ObjCARCAnalysisUtils.cpp
116   ObjCARCInstKind.cpp
117   OptimizationRemarkEmitter.cpp
118   OverflowInstAnalysis.cpp
119   PHITransAddr.cpp
120   PhiValues.cpp
121   PostDominators.cpp
122   ProfileSummaryInfo.cpp
123   PtrUseVisitor.cpp
124   RegionInfo.cpp
125   RegionPass.cpp
126   RegionPrinter.cpp
127   ReleaseModeModelRunner.cpp
128   ReplayInlineAdvisor.cpp
129   ScalarEvolution.cpp
130   ScalarEvolutionAliasAnalysis.cpp
131   ScalarEvolutionDivision.cpp
132   ScalarEvolutionNormalization.cpp
133   StackLifetime.cpp
134   StackSafetyAnalysis.cpp
135   SyncDependenceAnalysis.cpp
136   SyntheticCountsUtils.cpp
137   TFUtils.cpp
138   TargetLibraryInfo.cpp
139   TargetTransformInfo.cpp
140   Trace.cpp
141   TypeBasedAliasAnalysis.cpp
142   TypeMetadataUtils.cpp
143   ScopedNoAliasAA.cpp
144   ValueLattice.cpp
145   ValueLatticeUtils.cpp
146   ValueTracking.cpp
147   VectorUtils.cpp
148   VFABIDemangling.cpp
149   ${GeneratedMLSources}
151   ADDITIONAL_HEADER_DIRS
152   ${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis
154   DEPENDS
155   intrinsics_gen
156   ${MLDeps}
158   LINK_LIBS
159   ${MLLinkDeps}
161   LINK_COMPONENTS
162   BinaryFormat
163   Core
164   Object
165   ProfileData
166   Support
167   )