diff options
Diffstat (limited to 'include/llvm/Transforms/SampleProfile.h')
| -rw-r--r-- | include/llvm/Transforms/SampleProfile.h | 17 | 
1 files changed, 13 insertions, 4 deletions
| diff --git a/include/llvm/Transforms/SampleProfile.h b/include/llvm/Transforms/SampleProfile.h index c984fe74ba93..f5a8590e14a1 100644 --- a/include/llvm/Transforms/SampleProfile.h +++ b/include/llvm/Transforms/SampleProfile.h @@ -1,4 +1,4 @@ -//===- Transforms/SampleProfile.h - SamplePGO pass--------------*- C++ -*-===// +//===- Transforms/SampleProfile.h - SamplePGO pass --------------*- C++ -*-===//  //  //                     The LLVM Compiler Infrastructure  // @@ -6,26 +6,35 @@  // License. See LICENSE.TXT for details.  //  //===----------------------------------------------------------------------===// +//  /// \file  /// This file provides the interface for the sampled PGO loader pass. +//  //===----------------------------------------------------------------------===//  #ifndef LLVM_TRANSFORMS_SAMPLEPROFILE_H  #define LLVM_TRANSFORMS_SAMPLEPROFILE_H  #include "llvm/IR/PassManager.h" +#include <string>  namespace llvm { +class Module; +  /// The sample profiler data loader pass.  class SampleProfileLoaderPass : public PassInfoMixin<SampleProfileLoaderPass> {  public: +  SampleProfileLoaderPass(std::string File = "", bool IsThinLTOPreLink = false) +      : ProfileFileName(File), IsThinLTOPreLink(IsThinLTOPreLink) {} +    PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); -  SampleProfileLoaderPass(std::string File = "") : ProfileFileName(File) {}  private:    std::string ProfileFileName; +  bool IsThinLTOPreLink;  }; -} // End llvm namespace -#endif +} // end namespace llvm + +#endif // LLVM_TRANSFORMS_SAMPLEPROFILE_H | 
