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 //===----------------------------------------------------------------------===// 11 12 #ifndef LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H 13 #define LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H 14 15 #include "llvm/IR/PassManager.h" 16 17 namespace llvm { 18 19 class Module; 20 21 /// Pass to outline cold regions. 22 class HotColdSplittingPass : public PassInfoMixin<HotColdSplittingPass> { 23 public: 24 PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); 25 }; 26 27 } // end namespace llvm 28 29 #endif // LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H 30 31