Deleted Added
full compact
SampleProfile.h (341825) SampleProfile.h (344779)
1//===- SampleProfile.h - SamplePGO pass ---------- --------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 11 unchanged lines hidden (view full) ---

20
21namespace llvm {
22
23class Module;
24
25/// The sample profiler data loader pass.
26class SampleProfileLoaderPass : public PassInfoMixin<SampleProfileLoaderPass> {
27public:
1//===- SampleProfile.h - SamplePGO pass ---------- --------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 11 unchanged lines hidden (view full) ---

20
21namespace llvm {
22
23class Module;
24
25/// The sample profiler data loader pass.
26class SampleProfileLoaderPass : public PassInfoMixin<SampleProfileLoaderPass> {
27public:
28 SampleProfileLoaderPass(std::string File = "", bool IsThinLTOPreLink = false)
29 : ProfileFileName(File), IsThinLTOPreLink(IsThinLTOPreLink) {}
28 SampleProfileLoaderPass(std::string File = "", std::string RemappingFile = "",
29 bool IsThinLTOPreLink = false)
30 : ProfileFileName(File), ProfileRemappingFileName(RemappingFile),
31 IsThinLTOPreLink(IsThinLTOPreLink) {}
30
31 PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
32
33private:
34 std::string ProfileFileName;
32
33 PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
34
35private:
36 std::string ProfileFileName;
37 std::string ProfileRemappingFileName;
35 bool IsThinLTOPreLink;
36};
37
38} // end namespace llvm
39
40#endif // LLVM_TRANSFORMS_SAMPLEPROFILE_H
38 bool IsThinLTOPreLink;
39};
40
41} // end namespace llvm
42
43#endif // LLVM_TRANSFORMS_SAMPLEPROFILE_H