1 | //===- PGOForceFunctionAttrs.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_INSTRUMENTATION_PGOFORCEFUNCTIONATTRS_H |
10 | #define LLVM_TRANSFORMS_INSTRUMENTATION_PGOFORCEFUNCTIONATTRS_H |
11 | |
12 | #include "llvm/IR/PassManager.h" |
13 | #include "llvm/Support/PGOOptions.h" |
14 | |
15 | namespace llvm { |
16 | |
17 | struct PGOForceFunctionAttrsPass |
18 | : public PassInfoMixin<PGOForceFunctionAttrsPass> { |
19 | PGOForceFunctionAttrsPass(PGOOptions::ColdFuncOpt ColdType) |
20 | : ColdType(ColdType) {} |
21 | PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); |
22 | |
23 | private: |
24 | PGOOptions::ColdFuncOpt ColdType; |
25 | }; |
26 | |
27 | } // namespace llvm |
28 | |
29 | #endif // LLVM_TRANSFORMS_INSTRUMENTATION_PGOFORCEFUNCTIONATTRS_H |
30 |