LLVM  14.0.0git
LoopUnrollAndJamPass.h
Go to the documentation of this file.
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 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_TRANSFORMS_SCALAR_LOOPUNROLLANDJAMPASS_H
10 #define LLVM_TRANSFORMS_SCALAR_LOOPUNROLLANDJAMPASS_H
11 
12 #include "llvm/IR/PassManager.h"
14 
15 namespace llvm {
16 class Function;
17 
18 /// A simple loop rotation transformation.
19 class LoopUnrollAndJamPass : public PassInfoMixin<LoopUnrollAndJamPass> {
20  const int OptLevel;
21 
22 public:
23  explicit LoopUnrollAndJamPass(int OptLevel = 2) : OptLevel(OptLevel) {}
26 };
27 
28 } // end namespace llvm
29 
30 #endif // LLVM_TRANSFORMS_SCALAR_LOOPUNROLLANDJAMPASS_H
llvm::PreservedAnalyses
A set of analyses that are preserved following a run of a transformation pass.
Definition: PassManager.h:155
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::PassInfoMixin
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:374
llvm::LoopStandardAnalysisResults
The adaptor from a function pass to a loop pass computes these analyses and makes them available to t...
Definition: LoopAnalysisManager.h:52
llvm::LPMUpdater
This class provides an interface for updating the loop pass manager based on mutations to the loop ne...
Definition: LoopPassManager.h:263
LoopPassManager.h
llvm::ReplayInlineScope::Function
@ Function
llvm::LoopUnrollAndJamPass
A simple loop rotation transformation.
Definition: LoopUnrollAndJamPass.h:19
llvm::LoopUnrollAndJamPass::run
PreservedAnalyses run(LoopNest &L, LoopAnalysisManager &AM, LoopStandardAnalysisResults &AR, LPMUpdater &U)
Definition: LoopUnrollAndJamPass.cpp:527
PassManager.h
llvm::AnalysisManager
A container for analyses that lazily runs them and caches their results.
Definition: InstructionSimplify.h:44
llvm::LoopNest
This class represents a loop nest and can be used to query its properties.
Definition: LoopNestAnalysis.h:28
llvm::LoopUnrollAndJamPass::LoopUnrollAndJamPass
LoopUnrollAndJamPass(int OptLevel=2)
Definition: LoopUnrollAndJamPass.h:23