Lines Matching refs:GlobalVariable
242 GlobalVariable *RegionCounters = nullptr;
243 GlobalVariable *DataVar = nullptr;
244 GlobalVariable *RegionBitmaps = nullptr;
249 DenseMap<GlobalVariable *, PerFunctionProfileData> ProfileDataMap;
252 DenseMap<GlobalVariable *, GlobalVariable *> VTableDataMap;
258 std::vector<GlobalVariable *> ReferencedNames;
261 std::vector<GlobalVariable *> ReferencedVTables;
262 GlobalVariable *NamesVar = nullptr;
307 void lowerCoverageData(GlobalVariable *CoverageNamesVar);
315 GlobalVariable *getOrCreateBiasVar(StringRef VarName);
328 GlobalVariable *getOrCreateRegionCounters(InstrProfCntrInstBase *Inc);
331 GlobalVariable *createRegionCounters(InstrProfCntrInstBase *Inc,
351 GlobalVariable *getOrCreateRegionBitmaps(InstrProfMCDCBitmapInstBase *Inc);
358 GlobalVariable *createRegionBitmaps(InstrProfMCDCBitmapInstBase *Inc,
363 void maybeSetComdat(GlobalVariable *GV, GlobalObject *GO, StringRef VarName);
366 GlobalVariable *setupProfileSection(InstrProfInstBase *Inc,
373 void getOrCreateVTableProfData(GlobalVariable *GV);
933 GlobalVariable *CoverageNamesVar = in lower()
967 for (GlobalVariable &GV : M.globals()) in lower()
1026 GlobalVariable *Name = Ind->getName(); in computeNumValueSiteCounts()
1041 GlobalVariable *Name = Ind->getName(); in lowerValueProfileInst()
1046 GlobalVariable *DataVar = It->second.DataVar; in lowerValueProfileInst()
1080 GlobalVariable *InstrLowerer::getOrCreateBiasVar(StringRef VarName) { in getOrCreateBiasVar()
1081 GlobalVariable *Bias = M.getGlobalVariable(VarName); in getOrCreateBiasVar()
1090 Bias = new GlobalVariable(M, Int64Ty, false, GlobalValue::LinkOnceODRLinkage, in getOrCreateBiasVar()
1092 Bias->setVisibility(GlobalVariable::HiddenVisibility); in getOrCreateBiasVar()
1251 void InstrLowerer::lowerCoverageData(GlobalVariable *CoverageNamesVar) { in lowerCoverageData()
1257 assert(isa<GlobalVariable>(V) && "Missing reference to function name"); in lowerCoverageData()
1258 GlobalVariable *Name = cast<GlobalVariable>(V); in lowerCoverageData()
1437 void InstrLowerer::maybeSetComdat(GlobalVariable *GV, GlobalObject *GO, in maybeSetComdat()
1481 static inline bool shouldRecordVTableAddr(GlobalVariable *GV) { in shouldRecordVTableAddr()
1499 static inline Constant *getVTableAddrForProfData(GlobalVariable *GV) { in getVTableAddrForProfData()
1509 void InstrLowerer::getOrCreateVTableProfData(GlobalVariable *GV) { in getOrCreateVTableProfData()
1560 new GlobalVariable(M, DataTy, /*constant=*/false, Linkage, in getOrCreateVTableProfData()
1579 GlobalVariable *InstrLowerer::setupProfileSection(InstrProfInstBase *Inc, in setupProfileSection()
1581 GlobalVariable *NamePtr = Inc->getName(); in setupProfileSection()
1606 GlobalVariable *Ptr; in setupProfileSection()
1633 GlobalVariable *
1639 auto GV = new GlobalVariable(M, BitmapTy, false, Linkage, in createRegionBitmaps()
1645 GlobalVariable *
1647 GlobalVariable *NamePtr = Inc->getName(); in getOrCreateRegionBitmaps()
1660 GlobalVariable *
1665 GlobalVariable *GV; in createRegionCounters()
1672 GV = new GlobalVariable(M, CounterArrTy, false, Linkage, in createRegionCounters()
1678 GV = new GlobalVariable(M, CounterTy, false, Linkage, in createRegionCounters()
1685 GlobalVariable *
1687 GlobalVariable *NamePtr = Inc->getName(); in getOrCreateRegionCounters()
1746 GlobalVariable *NamePtr = Inc->getName(); in createDataVariable()
1788 auto *ValuesVar = new GlobalVariable( in createDataVariable()
1839 new GlobalVariable(M, DataTy, false, Linkage, nullptr, DataVarName); in createDataVariable()
1841 GlobalVariable *BitmapPtr = PD.RegionBitmaps; in createDataVariable()
1927 auto *VNodesVar = new GlobalVariable( in emitVNodes()
1954 NamesVar = new GlobalVariable(M, NamesVal->getType(), true, in emitNameData()
1989 GlobalVariable *VTableNamesVar = in emitVTableNames()
1990 new GlobalVariable(M, VTableNamesVal->getType(), true /* constant */, in emitVTableNames()
2017 Function::Create(RuntimeRegisterTy, GlobalVariable::ExternalLinkage, in emitRegistration()
2033 Function::Create(NamesRegisterTy, GlobalVariable::ExternalLinkage, in emitRegistration()
2054 new GlobalVariable(M, Int32Ty, false, GlobalValue::ExternalLinkage, in emitRuntimeHook()
2147 auto SamplingVar = new GlobalVariable( in createProfileSamplingVar()