LLVM  8.0.1
CGProfile.h
Go to the documentation of this file.
1 //===- Transforms/Instrumentation/CGProfile.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 LLVM's Call Graph Profile pass.
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_TRANSFORMS_CGPROFILE_H
14 #define LLVM_TRANSFORMS_CGPROFILE_H
15 
16 #include "llvm/ADT/MapVector.h"
17 #include "llvm/IR/PassManager.h"
18 
19 namespace llvm {
20 class CGProfilePass : public PassInfoMixin<CGProfilePass> {
21 public:
23 
24 private:
25  void addModuleFlags(
26  Module &M,
27  MapVector<std::pair<Function *, Function *>, uint64_t> &Counts) const;
28 };
29 } // end namespace llvm
30 
31 #endif // LLVM_TRANSFORMS_CGPROFILE_H
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
This class implements a map that also provides access to all stored values in a deterministic order...
Definition: MapVector.h:38
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
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
Definition: CGProfile.cpp:27
A container for analyses that lazily runs them and caches their results.
This header defines various interfaces for pass management in LLVM.