12#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_MEMPROFUSE_H
13#define LLVM_TRANSFORMS_INSTRUMENTATION_MEMPROFUSE_H
21#include <unordered_map>
24class IndexedInstrProfReader;
26class TargetLibraryInfo;
35 std::string MemoryProfileFile,
43 annotateGlobalVariables(
Module &M,
45 std::string MemoryProfileFileName;
66 std::unordered_map<LineLocation, LineLocation, LineLocationHash>;
This header defines various interfaces for pass management in LLVM.
This file defines the RefCountedBase, ThreadSafeRefCountedBase, and IntrusiveRefCntPtr classes.
Machine Check Debug Module
A container for analyses that lazily runs them and caches their results.
Reader for the indexed binary instrprof format.
A smart pointer to a reference-counted object that inherits from RefCountedBase or ThreadSafeRefCount...
LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
A Module instance is used to store all the information related to an LLVM module.
A set of analyses that are preserved following a run of a transformation pass.
Provides information about what library functions are available for the current target.
An efficient, type-erasing, non-owning reference to a callable.
Encapsulates the data access profile data and the methods to operate on it.
LLVM_ABI DenseMap< uint64_t, LocToLocMap > computeUndriftMap(Module &M, IndexedInstrProfReader *MemProfReader, const TargetLibraryInfo &TLI)
LLVM_ABI DenseMap< uint64_t, SmallVector< CallEdgeTy, 0 > > extractCallsFromIR(Module &M, const TargetLibraryInfo &TLI, function_ref< bool(uint64_t)> IsPresentInProfile=[](uint64_t) { return true;})
std::unordered_map< LineLocation, LineLocation, LineLocationHash > LocToLocMap
This is an optimization pass for GlobalISel generic memory operations.
A CRTP mix-in to automatically provide informational APIs needed for passes.
uint64_t operator()(const LineLocation &Loc) const
uint64_t getHashCode() const