[Alignment][NFC] Support compile time constants
[llvm-core.git] / include / llvm / Transforms / Scalar / LoopUnrollAndJamPass.h
blob7920269b0fb27f0f2dac15fb17cb8ddaed2942c0
1 //===- LoopUnrollAndJamPass.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_LOOPUNROLLANDJAMPASS_H
10 #define LLVM_TRANSFORMS_SCALAR_LOOPUNROLLANDJAMPASS_H
12 #include "llvm/Analysis/LoopAnalysisManager.h"
13 #include "llvm/Analysis/LoopInfo.h"
14 #include "llvm/IR/PassManager.h"
16 namespace llvm {
18 class Loop;
19 struct LoopStandardAnalysisResults;
20 class LPMUpdater;
22 /// A simple loop rotation transformation.
23 class LoopUnrollAndJamPass : public PassInfoMixin<LoopUnrollAndJamPass> {
24 const int OptLevel;
26 public:
27 explicit LoopUnrollAndJamPass(int OptLevel = 2) : OptLevel(OptLevel) {}
28 PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM,
29 LoopStandardAnalysisResults &AR, LPMUpdater &U);
32 } // end namespace llvm
34 #endif // LLVM_TRANSFORMS_SCALAR_LOOPUNROLLANDJAMPASS_H