59 for (
Loop *
L : PreOrderLoops)
78 bool AreLoopAnalysesPreserved =
93 if (
auto *OuterProxy =
95 for (
const auto &OuterInvalidationPair :
96 OuterProxy->getOuterInvalidations()) {
97 AnalysisKey *OuterAnalysisID = OuterInvalidationPair.first;
98 const auto &InnerAnalysisIDs = OuterInvalidationPair.second;
102 for (
AnalysisKey *InnerAnalysisID : InnerAnalysisIDs)
103 InnerPA->
abandon(InnerAnalysisID);
110 InnerAM->invalidate(*
L, *InnerPA);
116 if (!AreLoopAnalysesPreserved)
117 InnerAM->invalidate(*
L, PA);
void abandon()
Mark an analysis as abandoned.
PreservedAnalyses getLoopPassPreservedAnalyses()
Returns the minimum set of Analyses that all loop passes must preserve.
This is the interface for a simple mod/ref and alias analysis over globals.
The adaptor from a function pass to a loop pass computes these analyses and makes them available to t...
Analysis pass which computes a DominatorTree.
This is the interface for a SCEV-based alias analysis.
PassT::Result & getResult(IRUnitT &IR, ExtraArgTs...ExtraArgs)
Get the result of an analysis pass for a given IR unit.
Analysis pass that exposes the LoopInfo for a function.
auto reverse(ContainerTy &&C, typename std::enable_if< has_rbegin< ContainerTy >::value >::type *=nullptr) -> decltype(make_range(C.rbegin(), C.rend()))
This header provides classes for managing per-loop analyses.
Result run(IRUnitT &IR, AnalysisManager< IRUnitT, ExtraArgTs...> &AM, ExtraArgTs...)
Run the analysis pass and create our proxy result object.
A set of analyses that are preserved following a run of a transformation pass.
A manager for alias analyses.
PreservedAnalysisChecker getChecker() const
Build a checker for this PreservedAnalyses and the specified analysis type.
Analysis pass providing a never-invalidated alias analysis result.
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.
Analysis pass providing a never-invalidated alias analysis result.
A function analysis which provides an AssumptionCache.
An analysis over an "inner" IR unit that provides access to an analysis manager over a "outer" IR uni...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
bool invalidate(IRUnitT &IR, const PreservedAnalyses &PA, typename AnalysisManager< IRUnitT, ExtraArgTs...>::Invalidator &Inv)
Handler for invalidation of the outer IR unit, IRUnitT.
Analysis pass that exposes the ScalarEvolution for a function.
Analysis pass providing a never-invalidated alias analysis result.
Represents a single loop in the control flow graph.
void preserve()
Mark an analysis as preserved.
API to communicate dependencies between analyses during invalidation.
This templated class represents "all analyses that operate over \<a particular IR unit\>" (e...
bool allAnalysesInSetPreserved() const
Directly test whether a set of analyses is preserved.
This is the interface for LLVM's primary stateless and local alias analysis.
A container for analyses that lazily runs them and caches their results.
bool invalidate(IRUnitT &IR, const PreservedAnalyses &PA)
Trigger the invalidation of some other analysis pass if not already handled and return whether it was...
A special type used by analysis passes to provide an address that identifies that particular analysis...
An analysis over an "outer" IR unit that provides access to an analysis manager over an "inner" IR un...