2016-05-28 01:20:16 +02:00
|
|
|
//===- Transforms/SampleProfile.h - SamplePGO pass--------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// 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"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2016-06-05 07:18:20 +02:00
|
|
|
/// The sample profiler data loader pass.
|
2016-05-28 01:20:16 +02:00
|
|
|
class SampleProfileLoaderPass : public PassInfoMixin<SampleProfileLoaderPass> {
|
|
|
|
public:
|
2016-08-09 02:28:38 +02:00
|
|
|
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
|
2016-05-28 01:20:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // End llvm namespace
|
|
|
|
#endif
|