Lines Matching refs:GVar
214 const auto *GVar = cast<GlobalVariable>(GO); in getKindForGlobal() local
217 if (GVar->isThreadLocal()) { in getKindForGlobal()
218 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) { in getKindForGlobal()
221 if (GVar->hasLocalLinkage()) { in getKindForGlobal()
230 if (GVar->hasCommonLinkage()) in getKindForGlobal()
235 if (isSuitableForBSS(GVar) && !TM.Options.NoZerosInBSS) { in getKindForGlobal()
236 if (GVar->hasLocalLinkage()) in getKindForGlobal()
238 else if (GVar->hasExternalLinkage()) in getKindForGlobal()
245 if (GVar->hasSection()) in getKindForGlobal()
246 if (MDNode *MD = GVar->getMetadata(LLVMContext::MD_exclude)) in getKindForGlobal()
252 if (GVar->isConstant()) { in getKindForGlobal()
256 const Constant *C = GVar->getInitializer(); in getKindForGlobal()
261 if (!GVar->hasGlobalUnnamedAddr()) in getKindForGlobal()
287 GVar->getDataLayout().getTypeAllocSize(C->getType())) { in getKindForGlobal()
327 if (auto *GVar = dyn_cast<GlobalVariable>(GO)) { in SectionForGlobal() local
328 auto Attrs = GVar->getAttributes(); in SectionForGlobal()