1 //===- Transforms/GCOVProfiler.h - GCOVProfiler 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 //===----------------------------------------------------------------------===//
10 /// This file provides the interface for the GCOV style profiler pass.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_TRANSFORMS_GCOVPROFILER_H
14 #define LLVM_TRANSFORMS_GCOVPROFILER_H
16 #include "llvm/IR/PassManager.h"
17 #include "llvm/Transforms/Instrumentation.h"
20 /// The gcov-style instrumentation pass
21 class GCOVProfilerPass : public PassInfoMixin<GCOVProfilerPass> {
23 GCOVProfilerPass(const GCOVOptions &Options = GCOVOptions::getDefault()) : GCOVOpts(Options) { }
24 PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
30 } // End llvm namespace