15#ifndef LLVM_TRANSFORMS_IPO_MEMPROF_CONTEXT_DISAMBIGUATION_H
16#define LLVM_TRANSFORMS_IPO_MEMPROF_CONTEXT_DISAMBIGUATION_H
50 bool applyImport(
Module &M);
53 bool initializeIndirectCallPromotionInfo(
Module &M);
57 struct ICallAnalysisData {
59 std::vector<InstrProfValueData> CandidateProfileData;
86 void performICP(
Module &M,
ArrayRef<std::unique_ptr<ValueToValueMapTy>> VMaps,
95 std::unique_ptr<ModuleSummaryIndex> ImportSummaryForTesting;
103 std::unique_ptr<InstrProfSymtab> Symtab;
104 std::unique_ptr<ICallPromotionAnalysis> ICallAnalysis;
108 std::optional<DenseMap<GlobalValue::GUID, Function *>>
109 AliaseeGUIDToImportedAlias;
114 bool isSamplePGO =
false);
This file defines the DenseMap class.
This header defines various interfaces for pass management in LLVM.
ModuleSummaryIndex.h This file contains the declarations the classes that hold the module index and s...
Represent a constant reference to an array (0 or more elements consecutively in memory),...
Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to callin...
Function and variable summary information to aid decisions and implementation of importing.
uint64_t GUID
Declare a type to represent a global unique identifier for a global value.
This is an important class for using LLVM in a threaded context.
LLVM_ABI MemProfContextDisambiguation(const ModuleSummaryIndex *Summary=nullptr, bool isSamplePGO=false)
LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
Strips MemProf attributes and metadata.
LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
Class to hold module path string table and global value map, and encapsulate methods for operating on...
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.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
A wrapper around a string literal that serves as a proxy for constructing global tables of StringRefs...
Represent a constant reference to a string, i.e.
bool contains(StringRef Other) const
Return true if the given string is a substring of *this, and false otherwise.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
LLVM_ABI StringRef getName() const
Return a constant reference to the value's name.
An efficient, type-erasing, non-owning reference to a callable.
This is an optimization pass for GlobalISel generic memory operations.
bool isMemProfClone(const GlobalValue &GV)
Returns true if GV is a MemProf context-disambiguated clone.
constexpr StringLiteral MemProfCloneSuffix
AnalysisManager< Module > ModuleAnalysisManager
Convenience typedef for the Module analysis manager.
Summary of memprof callsite metadata.
A CRTP mix-in for passes that can be skipped.