[Alignment][NFC] Use Align with TargetLowering::setMinFunctionAlignment
[llvm-core.git] / include / llvm / Transforms / IPO / HotColdSplitting.h
blob73668844590d74f3b9e80d4b743087a83258c4fe
1 //===- HotColdSplitting.h ---- Outline Cold Regions -------------*- 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 // This pass outlines cold regions to a separate function.
9 //
10 //===----------------------------------------------------------------------===//
12 #ifndef LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H
13 #define LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H
15 #include "llvm/IR/PassManager.h"
17 namespace llvm {
19 class Module;
21 /// Pass to outline cold regions.
22 class HotColdSplittingPass : public PassInfoMixin<HotColdSplittingPass> {
23 public:
24 PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
27 } // end namespace llvm
29 #endif // LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H