[Alignment][NFC] Support compile time constants
[llvm-core.git] / include / llvm / Transforms / Scalar / LoopAccessAnalysisPrinter.h
blob3f250fc1ce8c3fc701f45dda62b94597423ac316
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_TRANSFORMS_SCALAR_LOOPACCESSANALYSISPRINTER_H
10 #define LLVM_TRANSFORMS_SCALAR_LOOPACCESSANALYSISPRINTER_H
12 #include "llvm/Support/raw_ostream.h"
13 #include "llvm/Transforms/Scalar/LoopPassManager.h"
15 namespace llvm {
17 /// Printer pass for the \c LoopAccessInfo results.
18 class LoopAccessInfoPrinterPass
19 : public PassInfoMixin<LoopAccessInfoPrinterPass> {
20 raw_ostream &OS;
22 public:
23 explicit LoopAccessInfoPrinterPass(raw_ostream &OS) : OS(OS) {}
24 PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM,
25 LoopStandardAnalysisResults &AR, LPMUpdater &U);
28 } // End llvm namespace
30 #endif