1 //===- SampleProfile.h - SamplePGO pass ---------- --------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// This file provides the interface for the sampled PGO loader pass.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_TRANSFORMS_IPO_SAMPLEPROFILE_H
16 #define LLVM_TRANSFORMS_IPO_SAMPLEPROFILE_H
18 #include "llvm/IR/PassManager.h"
25 /// The sample profiler data loader pass.
26 class SampleProfileLoaderPass : public PassInfoMixin<SampleProfileLoaderPass> {
28 SampleProfileLoaderPass(std::string File = "", bool IsThinLTOPreLink = false)
29 : ProfileFileName(File), IsThinLTOPreLink(IsThinLTOPreLink) {}
31 PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
34 std::string ProfileFileName;
35 bool IsThinLTOPreLink;
38 } // end namespace llvm
40 #endif // LLVM_TRANSFORMS_SAMPLEPROFILE_H