LLVM  8.0.1
GCOVProfiler.h
Go to the documentation of this file.
1 //===- Transforms/Instrumentation/GCOVProfiler.h ----------------*- 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 //===----------------------------------------------------------------------===//
9 /// \file
10 /// This file provides the interface for the GCOV style profiler pass.
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_TRANSFORMS_GCOVPROFILER_H
14 #define LLVM_TRANSFORMS_GCOVPROFILER_H
15 
16 #include "llvm/IR/PassManager.h"
18 
19 namespace llvm {
20 /// The gcov-style instrumentation pass
21 class GCOVProfilerPass : public PassInfoMixin<GCOVProfilerPass> {
22 public:
23  GCOVProfilerPass(const GCOVOptions &Options = GCOVOptions::getDefault()) : GCOVOpts(Options) { }
25 
26 private:
27  GCOVOptions GCOVOpts;
28 };
29 
30 } // End llvm namespace
31 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
A Module instance is used to store all the information related to an LLVM module. ...
Definition: Module.h:65
static GCOVOptions getDefault()
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:366
A set of analyses that are preserved following a run of a transformation pass.
Definition: PassManager.h:154
The gcov-style instrumentation pass.
Definition: GCOVProfiler.h:21
GCOVProfilerPass(const GCOVOptions &Options=GCOVOptions::getDefault())
Definition: GCOVProfiler.h:23
A container for analyses that lazily runs them and caches their results.
This header defines various interfaces for pass management in LLVM.
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)