Lines Matching refs:GV
52 auto *GV = dyn_cast<GlobalVariable>(GO); in isLargeGlobalValue() local
55 if (!GV) in isLargeGlobalValue()
58 if (GV->isThreadLocal()) in isLargeGlobalValue()
63 if (auto CM = GV->getCodeModel()) { in isLargeGlobalValue()
74 if (GV->hasSection()) { in isLargeGlobalValue()
75 StringRef Name = GV->getSection(); in isLargeGlobalValue()
86 if (!GV->getValueType()->isSized()) in isLargeGlobalValue()
88 const DataLayout &DL = GV->getParent()->getDataLayout(); in isLargeGlobalValue()
89 uint64_t Size = DL.getTypeSizeInBits(GV->getValueType()) / 8; in isLargeGlobalValue()
140 static TLSModel::Model getSelectedTLSModel(const GlobalValue *GV) { in getSelectedTLSModel() argument
141 switch (GV->getThreadLocalMode()) { in getSelectedTLSModel()
158 const GlobalValue *GV) const { in shouldAssumeDSOLocal()
170 if (!GV) in shouldAssumeDSOLocal()
174 if (GV->isDSOLocal()) in shouldAssumeDSOLocal()
179 if (GV->hasDLLImportStorageClass()) in shouldAssumeDSOLocal()
187 if (TT.isWindowsGNUEnvironment() && GV->isDeclarationForLinker() && in shouldAssumeDSOLocal()
188 isa<GlobalVariable>(GV)) in shouldAssumeDSOLocal()
194 if (GV->hasExternalWeakLinkage()) in shouldAssumeDSOLocal()
207 return GV->isStrongDefinitionForLinker(); in shouldAssumeDSOLocal()
218 TLSModel::Model TargetMachine::getTLSModel(const GlobalValue *GV) const { in getTLSModel()
219 bool IsPIE = GV->getParent()->getPIELevel() != PIELevel::Default; in getTLSModel()
222 bool IsLocal = shouldAssumeDSOLocal(*GV->getParent(), GV); in getTLSModel()
238 TLSModel::Model SelectedModel = getSelectedTLSModel(GV); in getTLSModel()
256 const GlobalValue *GV, Mangler &Mang, in getNameWithPrefix() argument
258 if (MayAlwaysUsePrivate || !GV->hasPrivateLinkage()) { in getNameWithPrefix()
261 Mang.getNameWithPrefix(Name, GV, false); in getNameWithPrefix()
265 TLOF->getNameWithPrefix(Name, GV, *this); in getNameWithPrefix()
268 MCSymbol *TargetMachine::getSymbol(const GlobalValue *GV) const { in getSymbol()
271 if (MCSymbol *TargetSymbol = TLOF->getTargetSymbol(GV, *this)) in getSymbol()
275 getNameWithPrefix(NameStr, GV, TLOF->getMangler()); in getSymbol()