Lines Matching refs:GlobalVariable
276 GlobalVariable *RegionCounters = nullptr;
277 GlobalVariable *DataVar = nullptr;
278 GlobalVariable *RegionBitmaps = nullptr;
283 DenseMap<GlobalVariable *, PerFunctionProfileData> ProfileDataMap;
286 DenseMap<GlobalVariable *, GlobalVariable *> VTableDataMap;
292 std::vector<GlobalVariable *> ReferencedNames;
295 std::vector<GlobalVariable *> ReferencedVTables;
296 GlobalVariable *NamesVar = nullptr;
337 void lowerCoverageData(GlobalVariable *CoverageNamesVar);
345 GlobalVariable *getOrCreateBiasVar(StringRef VarName);
358 GlobalVariable *getOrCreateRegionCounters(InstrProfCntrInstBase *Inc);
361 GlobalVariable *createRegionCounters(InstrProfCntrInstBase *Inc,
373 GlobalVariable *getOrCreateRegionBitmaps(InstrProfMCDCBitmapInstBase *Inc);
380 GlobalVariable *createRegionBitmaps(InstrProfMCDCBitmapInstBase *Inc,
385 void maybeSetComdat(GlobalVariable *GV, GlobalObject *GO, StringRef VarName);
388 GlobalVariable *setupProfileSection(InstrProfInstBase *Inc,
395 void getOrCreateVTableProfData(GlobalVariable *GV);
944 GlobalVariable *CoverageNamesVar = in lower()
978 for (GlobalVariable &GV : M.globals()) in lower()
1037 GlobalVariable *Name = Ind->getName(); in computeNumValueSiteCounts()
1052 GlobalVariable *Name = Ind->getName(); in lowerValueProfileInst()
1057 GlobalVariable *DataVar = It->second.DataVar; in lowerValueProfileInst()
1095 GlobalVariable *InstrLowerer::getOrCreateBiasVar(StringRef VarName) { in getOrCreateBiasVar()
1096 GlobalVariable *Bias = M.getGlobalVariable(VarName); in getOrCreateBiasVar()
1105 Bias = new GlobalVariable(M, Int64Ty, false, GlobalValue::LinkOnceODRLinkage, in getOrCreateBiasVar()
1107 Bias->setVisibility(GlobalVariable::HiddenVisibility); in getOrCreateBiasVar()
1219 void InstrLowerer::lowerCoverageData(GlobalVariable *CoverageNamesVar) { in lowerCoverageData()
1225 assert(isa<GlobalVariable>(V) && "Missing reference to function name"); in lowerCoverageData()
1226 GlobalVariable *Name = cast<GlobalVariable>(V); in lowerCoverageData()
1436 void InstrLowerer::maybeSetComdat(GlobalVariable *GV, GlobalObject *GO, in maybeSetComdat()
1480 static inline bool shouldRecordVTableAddr(GlobalVariable *GV) { in shouldRecordVTableAddr()
1498 static inline Constant *getVTableAddrForProfData(GlobalVariable *GV) { in getVTableAddrForProfData()
1506 void InstrLowerer::getOrCreateVTableProfData(GlobalVariable *GV) { in getOrCreateVTableProfData()
1557 new GlobalVariable(M, DataTy, /*constant=*/false, Linkage, in getOrCreateVTableProfData()
1576 GlobalVariable *InstrLowerer::setupProfileSection(InstrProfInstBase *Inc, in setupProfileSection()
1578 GlobalVariable *NamePtr = Inc->getName(); in setupProfileSection()
1603 GlobalVariable *Ptr; in setupProfileSection()
1630 GlobalVariable *
1636 auto GV = new GlobalVariable(M, BitmapTy, false, Linkage, in createRegionBitmaps()
1642 GlobalVariable *
1644 GlobalVariable *NamePtr = Inc->getName(); in getOrCreateRegionBitmaps()
1657 GlobalVariable *
1662 GlobalVariable *GV; in createRegionCounters()
1669 GV = new GlobalVariable(M, CounterArrTy, false, Linkage, in createRegionCounters()
1675 GV = new GlobalVariable(M, CounterTy, false, Linkage, in createRegionCounters()
1682 GlobalVariable *
1684 GlobalVariable *NamePtr = Inc->getName(); in getOrCreateRegionCounters()
1743 GlobalVariable *NamePtr = Inc->getName(); in createDataVariable()
1785 auto *ValuesVar = new GlobalVariable( in createDataVariable()
1841 new GlobalVariable(M, DataTy, false, Linkage, nullptr, DataVarName); in createDataVariable()
1843 GlobalVariable *BitmapPtr = PD.RegionBitmaps; in createDataVariable()
1929 auto *VNodesVar = new GlobalVariable( in emitVNodes()
1954 NamesVar = new GlobalVariable(M, NamesVal->getType(), true, in emitNameData()
1990 GlobalVariable *VTableNamesVar = in emitVTableNames()
1991 new GlobalVariable(M, VTableNamesVal->getType(), true /* constant */, in emitVTableNames()
2018 Function::Create(RuntimeRegisterTy, GlobalVariable::ExternalLinkage, in emitRegistration()
2037 Function::Create(NamesRegisterTy, GlobalVariable::ExternalLinkage, in emitRegistration()
2060 new GlobalVariable(M, Int32Ty, false, GlobalValue::ExternalLinkage, in emitRuntimeHook()
2156 auto SamplingVar = new GlobalVariable( in createProfileSamplingVar()