LLVM  15.0.0git
LoopAccessAnalysisPrinter.h
Go to the documentation of this file.
1 //===- llvm/Analysis/LoopAccessAnalysisPrinter.h ----------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_TRANSFORMS_SCALAR_LOOPACCESSANALYSISPRINTER_H
10 #define LLVM_TRANSFORMS_SCALAR_LOOPACCESSANALYSISPRINTER_H
12 #include "llvm/IR/PassManager.h"
13 
14 namespace llvm {
15 
16 class LPMUpdater;
17 class Loop;
18 class raw_ostream;
19 /// Printer pass for the \c LoopAccessInfo results.
21  : public PassInfoMixin<LoopAccessInfoPrinterPass> {
22  raw_ostream &OS;
23 
24 public:
25  explicit LoopAccessInfoPrinterPass(raw_ostream &OS) : OS(OS) {}
28 };
29 
30 } // End llvm namespace
31 
32 #endif
llvm::PreservedAnalyses
A set of analyses that are preserved following a run of a transformation pass.
Definition: PassManager.h:152
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::PassInfoMixin
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:371
llvm::Loop
Represents a single loop in the control flow graph.
Definition: LoopInfo.h:546
llvm::LoopStandardAnalysisResults
The adaptor from a function pass to a loop pass computes these analyses and makes them available to t...
Definition: LoopAnalysisManager.h:51
llvm::LoopAccessInfoPrinterPass::LoopAccessInfoPrinterPass
LoopAccessInfoPrinterPass(raw_ostream &OS)
Definition: LoopAccessAnalysisPrinter.h:25
LoopAnalysisManager.h
llvm::LoopAccessInfoPrinterPass::run
PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM, LoopStandardAnalysisResults &AR, LPMUpdater &U)
Definition: LoopAccessAnalysisPrinter.cpp:17
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:54
llvm::LPMUpdater
This class provides an interface for updating the loop pass manager based on mutations to the loop ne...
Definition: LoopPassManager.h:262
PassManager.h
llvm::LoopAccessInfoPrinterPass
Printer pass for the LoopAccessInfo results.
Definition: LoopAccessAnalysisPrinter.h:20
llvm::AnalysisManager
A container for analyses that lazily runs them and caches their results.
Definition: InstructionSimplify.h:42