1//===- IVUsersPrinter.h - Induction Variable Users Printing -----*- 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_IVUSERSPRINTER_H
10#define LLVM_TRANSFORMS_SCALAR_IVUSERSPRINTER_H
11
12#include "llvm/Analysis/LoopAnalysisManager.h"
13#include "llvm/IR/PassManager.h"
14
15namespace llvm {
16class LPMUpdater;
17class Loop;
18class raw_ostream;
19
20/// Printer pass for the \c IVUsers for a loop.
21class IVUsersPrinterPass : public PassInfoMixin<IVUsersPrinterPass> {
22 raw_ostream &OS;
23
24public:
25 explicit IVUsersPrinterPass(raw_ostream &OS) : OS(OS) {}
26 PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM,
27 LoopStandardAnalysisResults &AR, LPMUpdater &U);
28 static bool isRequired() { return true; }
29};
30}
31
32#endif
33

source code of llvm/include/llvm/Transforms/Scalar/IVUsersPrinter.h