Lines Matching refs:GV

59   auto *GV = dyn_cast<GlobalVariable>(GO);  in isLargeGlobalValue()  local
66 if (!GV) { in isLargeGlobalValue()
76 if (GV->isThreadLocal()) in isLargeGlobalValue()
81 if (auto CM = GV->getCodeModel()) { in isLargeGlobalValue()
92 if (GV->hasSection()) { in isLargeGlobalValue()
93 StringRef Name = GV->getSection(); in isLargeGlobalValue()
101 if (!GV->getValueType()->isSized()) in isLargeGlobalValue()
105 if (GV->isDeclaration() && (GV->getName() == "__ehdr_start" || in isLargeGlobalValue()
106 GV->getName().starts_with("__start_") || in isLargeGlobalValue()
107 GV->getName().starts_with("__stop_"))) in isLargeGlobalValue()
109 const DataLayout &DL = GV->getDataLayout(); in isLargeGlobalValue()
110 uint64_t Size = DL.getTypeAllocSize(GV->getValueType()); in isLargeGlobalValue()
161 static TLSModel::Model getSelectedTLSModel(const GlobalValue *GV) { in getSelectedTLSModel() argument
162 switch (GV->getThreadLocalMode()) { in getSelectedTLSModel()
178 bool TargetMachine::shouldAssumeDSOLocal(const GlobalValue *GV) const { in shouldAssumeDSOLocal()
190 if (!GV) in shouldAssumeDSOLocal()
194 if (GV->isDSOLocal()) in shouldAssumeDSOLocal()
199 if (GV->hasDLLImportStorageClass()) in shouldAssumeDSOLocal()
207 if (TT.isWindowsGNUEnvironment() && GV->isDeclarationForLinker() && in shouldAssumeDSOLocal()
208 isa<GlobalVariable>(GV)) in shouldAssumeDSOLocal()
214 if (GV->hasExternalWeakLinkage()) in shouldAssumeDSOLocal()
227 return GV->isStrongDefinitionForLinker(); in shouldAssumeDSOLocal()
238 TLSModel::Model TargetMachine::getTLSModel(const GlobalValue *GV) const { in getTLSModel()
239 bool IsPIE = GV->getParent()->getPIELevel() != PIELevel::Default; in getTLSModel()
242 bool IsLocal = shouldAssumeDSOLocal(GV); in getTLSModel()
258 TLSModel::Model SelectedModel = getSelectedTLSModel(GV); in getTLSModel()
276 const GlobalValue *GV, Mangler &Mang, in getNameWithPrefix() argument
278 if (MayAlwaysUsePrivate || !GV->hasPrivateLinkage()) { in getNameWithPrefix()
281 Mang.getNameWithPrefix(Name, GV, false); in getNameWithPrefix()
285 TLOF->getNameWithPrefix(Name, GV, *this); in getNameWithPrefix()
288 MCSymbol *TargetMachine::getSymbol(const GlobalValue *GV) const { in getSymbol()
291 if (MCSymbol *TargetSymbol = TLOF->getTargetSymbol(GV, *this)) in getSymbol()
295 getNameWithPrefix(NameStr, GV, TLOF->getMangler()); in getSymbol()