LLVM: lib/Transforms/Scalar/LoopAccessAnalysisPrinter.cpp Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
14
15using namespace llvm;
16
17#define DEBUG_TYPE "loop-accesses"
18
23 OS << "Printing analysis 'Loop Access Analysis' for function '" << F.getName()
24 << "':\n";
25
28 while (!Worklist.empty()) {
30 OS.indent(2) << L->getHeader()->getName() << ":\n";
31 LAIs.getInfo(*L, AllowPartial).print(OS, 4);
32 }
34}
This file provides a priority worklist.
PassT::Result & getResult(IRUnitT &IR, ExtraArgTs... ExtraArgs)
Get the result of an analysis pass for a given IR unit.
This analysis provides dependence information for the memory accesses of a loop.
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Definition LoopAccessAnalysisPrinter.cpp:19
Analysis pass that exposes the LoopInfo for a function.
Represents a single loop in the control flow graph.
A set of analyses that are preserved following a run of a transformation pass.
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
bool empty() const
Determine if the PriorityWorklist is empty or not.
A version of PriorityWorklist that selects small size optimized data structures for the vector and ma...
This is an optimization pass for GlobalISel generic memory operations.
LLVM_TEMPLATE_ABI void appendLoopsToWorklist(RangeT &&, SmallPriorityWorklist< Loop *, 4 > &)
Utility that implements appending of loops onto a worklist given a range.
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.