annotate include/llvm/Transforms/Scalar/IVUsersPrinter.h @ 148:63bd29f05246

merged
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 14 Aug 2019 19:46:37 +0900
parents c2174574ed3a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 //===- IVUsersPrinter.h - Induction Variable Users Printing -----*- C++ -*-===//
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 //
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 121
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 121
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 121
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 //
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 #ifndef LLVM_TRANSFORMS_SCALAR_IVUSERSPRINTER_H
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 #define LLVM_TRANSFORMS_SCALAR_IVUSERSPRINTER_H
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 #include "llvm/Analysis/IVUsers.h"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 #include "llvm/Support/raw_ostream.h"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 #include "llvm/Transforms/Scalar/LoopPassManager.h"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 namespace llvm {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 /// Printer pass for the \c IVUsers for a loop.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 class IVUsersPrinterPass : public PassInfoMixin<IVUsersPrinterPass> {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 raw_ostream &OS;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22 public:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 explicit IVUsersPrinterPass(raw_ostream &OS) : OS(OS) {}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM,
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25 LoopStandardAnalysisResults &AR, LPMUpdater &U);
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26 };
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29 #endif