Lines Matching refs:GV

66 X86Subtarget::classifyGlobalReference(const GlobalValue *GV) const {  in classifyGlobalReference()
67 return classifyGlobalReference(GV, *GV->getParent()); in classifyGlobalReference()
71 X86Subtarget::classifyLocalReference(const GlobalValue *GV) const { in classifyLocalReference()
76 if (AllowTaggedGlobals && CM != CodeModel::Large && GV && !isa<Function>(GV)) in classifyLocalReference()
93 if (GV) in classifyLocalReference()
94 return TM.isLargeGlobalValue(GV) ? X86II::MO_GOTOFF : X86II::MO_NO_FLAG; in classifyLocalReference()
115 if (GV && (GV->isDeclarationForLinker() || GV->hasCommonLinkage())) in classifyLocalReference()
124 unsigned char X86Subtarget::classifyGlobalReference(const GlobalValue *GV, in classifyGlobalReference() argument
131 if (GV) { in classifyGlobalReference()
132 if (std::optional<ConstantRange> CR = GV->getAbsoluteSymbolRange()) { in classifyGlobalReference()
143 if (TM.shouldAssumeDSOLocal(M, GV)) in classifyGlobalReference()
144 return classifyLocalReference(GV); in classifyGlobalReference()
148 if (!GV) in classifyGlobalReference()
150 if (GV->hasDLLImportStorageClass()) in classifyGlobalReference()
167 if (AllowTaggedGlobals && GV && !isa<Function>(GV)) in classifyGlobalReference()
186 X86Subtarget::classifyGlobalFunctionReference(const GlobalValue *GV) const { in classifyGlobalFunctionReference()
187 return classifyGlobalFunctionReference(GV, *GV->getParent()); in classifyGlobalFunctionReference()
191 X86Subtarget::classifyGlobalFunctionReference(const GlobalValue *GV, in classifyGlobalFunctionReference() argument
193 if (TM.shouldAssumeDSOLocal(M, GV)) in classifyGlobalFunctionReference()
201 if (!GV) in classifyGlobalFunctionReference()
203 if (GV->hasDLLImportStorageClass()) in classifyGlobalFunctionReference()
208 const Function *F = dyn_cast_or_null<Function>(GV); in classifyGlobalFunctionReference()
222 if (!is64Bit() && !GV && TM.getRelocationModel() == Reloc::Static) in classifyGlobalFunctionReference()