1 //===- HotColdSplitting.h ---- Outline Cold Regions -------------*- 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
6 //===----------------------------------------------------------------------===//
8 // This pass outlines cold regions to a separate function.
10 //===----------------------------------------------------------------------===//
12 #ifndef LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H
13 #define LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H
15 #include "llvm/IR/PassManager.h"
21 /// Pass to outline cold regions.
22 class HotColdSplittingPass
: public PassInfoMixin
<HotColdSplittingPass
> {
24 PreservedAnalyses
run(Module
&M
, ModuleAnalysisManager
&AM
);
27 } // end namespace llvm
29 #endif // LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H