1 //===- LoopUnrollAndJamPass.h -----------------------------------*- C++ -*-===//
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
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"
19 struct LoopStandardAnalysisResults
;
22 /// A simple loop rotation transformation.
23 class LoopUnrollAndJamPass
: public PassInfoMixin
<LoopUnrollAndJamPass
> {
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