Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | struct PerFunctionProfileData { | ||||
GlobalVariable *RegionCounters = nullptr; | GlobalVariable *RegionCounters = nullptr; | ||||
GlobalVariable *DataVar = nullptr; | GlobalVariable *DataVar = nullptr; | ||||
PerFunctionProfileData() { | PerFunctionProfileData() { | ||||
memset(NumValueSites, 0, sizeof(uint32_t) * (IPVK_Last + 1)); | memset(NumValueSites, 0, sizeof(uint32_t) * (IPVK_Last + 1)); | ||||
} | } | ||||
}; | }; | ||||
DenseMap<GlobalVariable *, PerFunctionProfileData> ProfileDataMap; | DenseMap<GlobalVariable *, PerFunctionProfileData> ProfileDataMap; | ||||
// If runtime relocation is enabled, this maps functions to the instruction | |||||
// that produces the profile relocation bias. | |||||
DenseMap<const Function *, Instruction *> FunctionToProfileBiasMap; | |||||
std::vector<GlobalValue *> CompilerUsedVars; | std::vector<GlobalValue *> CompilerUsedVars; | ||||
std::vector<GlobalValue *> UsedVars; | std::vector<GlobalValue *> UsedVars; | ||||
std::vector<GlobalVariable *> ReferencedNames; | std::vector<GlobalVariable *> ReferencedNames; | ||||
GlobalVariable *NamesVar; | GlobalVariable *NamesVar; | ||||
size_t NamesSize; | size_t NamesSize; | ||||
// Is this lowering for the context-sensitive instrumentation. | // Is this lowering for the context-sensitive instrumentation. | ||||
bool IsCS; | bool IsCS; | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |