121
|
1 //===- LoopInstSimplify.h - Loop Inst Simplify Pass -------------*- C++ -*-===//
|
120
|
2 //
|
|
3 // The LLVM Compiler Infrastructure
|
|
4 //
|
|
5 // This file is distributed under the University of Illinois Open Source
|
|
6 // License. See LICENSE.TXT for details.
|
|
7 //
|
|
8 //===----------------------------------------------------------------------===//
|
|
9 //
|
|
10 // This pass performs lightweight instruction simplification on loop bodies.
|
|
11 //
|
|
12 //===----------------------------------------------------------------------===//
|
|
13
|
|
14 #ifndef LLVM_TRANSFORMS_SCALAR_LOOPINSTSIMPLIFY_H
|
|
15 #define LLVM_TRANSFORMS_SCALAR_LOOPINSTSIMPLIFY_H
|
|
16
|
121
|
17 #include "llvm/Analysis/LoopAnalysisManager.h"
|
120
|
18 #include "llvm/IR/PassManager.h"
|
|
19
|
|
20 namespace llvm {
|
|
21
|
121
|
22 class Loop;
|
|
23 class LPMUpdater;
|
|
24
|
120
|
25 /// Performs Loop Inst Simplify Pass.
|
|
26 class LoopInstSimplifyPass : public PassInfoMixin<LoopInstSimplifyPass> {
|
|
27 public:
|
121
|
28 PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM,
|
|
29 LoopStandardAnalysisResults &AR, LPMUpdater &U);
|
120
|
30 };
|
121
|
31
|
120
|
32 } // end namespace llvm
|
|
33
|
|
34 #endif // LLVM_TRANSFORMS_SCALAR_LOOPINSTSIMPLIFY_H
|