Lines Matching refs:analyses
31 // Register all the basic analyses with the managers.
185 LLVM provides many analyses that passes can use, such as a dominator tree.
187 infrastructure to cache analyses and reuse them when possible.
190 query for analyses. Querying for an analysis will cause the manager to check if
199 manager that only provides function-level analyses. This works for many
202 analyses for the functions inside the SCC. Or it may want to look at some
228 The first reason is that running analyses across outer level IR in inner level
232 could keep outer level analyses up to date rather than computing them on demand
234 updates all outer level analyses, and so far this hasn't been necessary and
235 there isn't infrastructure for this (aside from function analyses in loop passes
236 as described below). Self-updating analyses that gracefully degrade also handle
245 concurrency was supported. A related limitation is that outer level IR analyses
247 inner level IR. Outer analyses unused by inner passes can and often will be
249 inner pass manager finishes, so accessing mutable analyses would give invalid
252 The exception to not being able to access outer level analyses is accessing
253 function analyses in loop passes. Loop passes often use function analyses such
255 loop is in, and that includes some function analyses the loop analyses depend
258 make sure the function analyses that loop passes use are valid, they are
260 necessary. There is a set of common function analyses that loop passes and
261 analyses have access to which is passed into loop passes as a
262 ``LoopStandardAnalysisResults`` parameter. Other mutable function analyses are
276 types of analyses it preserves and what types it does not. When transforming
277 IR, a pass either has the option to update analyses alongside the IR
278 transformation, or tell the analysis manager that analyses are no longer
285 proper analyses invalidated.
289 // We've made no transformations that can affect any analyses.
292 // We've made transformations and don't want to bother to update any analyses.
300 …// We haven't made any control flow changes, any analyses that only care about the control flow ar…
326 One thing to note when accessing inner level IR analyses is cached results for
328 as the key for cached analyses. Take care in the pass to either clear the
329 results for that function or not use inner analyses at all.
332 analysis manager proxy which will clear all cached analyses, conservatively
333 assuming that there are invalid addresses used as keys for cached analyses.
334 However, if you'd like to be more selective about which analyses are
338 to make sure all the right analyses are invalidated.
344 analyses on the IR unit it runs on are not preserved (see
361 ``FooAnalysis``, or if ``PreservedAnalyses`` preserves all analyses (implicit
363 analyses, or ``PreservedAnalyses`` preserves all analyses that only care
379 If an analysis depends on other analyses, those analyses also need to be
396 complexity. For example, when we invalidate all analyses in a module pass,
397 we have to make sure that we also invalidate function analyses accessible via
408 analyses are also invalidated. This actually happens with alias analysis
480 For a list of available passes and analyses, including the IR unit (module,