Lines Matching refs:GV

121 void Mangler::getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV,  in getNameWithPrefix()  argument
124 assert(GV != nullptr && "Invalid Global Value"); in getNameWithPrefix()
125 if (GV->hasPrivateLinkage()) { in getNameWithPrefix()
132 const DataLayout &DL = GV->getDataLayout(); in getNameWithPrefix()
133 if (!GV->hasName()) { in getNameWithPrefix()
136 unsigned &ID = AnonGlobalIDs[GV]; in getNameWithPrefix()
145 StringRef Name = GV->getName(); in getNameWithPrefix()
150 const Function *MSFunc = dyn_cast_or_null<Function>(GV->getAliaseeObject()); in getNameWithPrefix()
189 const GlobalValue *GV, in getNameWithPrefix() argument
192 getNameWithPrefix(OS, GV, CannotUsePrivateLabel); in getNameWithPrefix()
214 void llvm::emitLinkerFlagsForGlobalCOFF(raw_ostream &OS, const GlobalValue *GV, in emitLinkerFlagsForGlobalCOFF() argument
216 if (GV->hasDLLExportStorageClass() && !GV->isDeclaration()) { in emitLinkerFlagsForGlobalCOFF()
223 bool NeedQuotes = GV->hasName() && !canBeUnquotedInDirective(GV->getName()); in emitLinkerFlagsForGlobalCOFF()
229 Mangler.getNameWithPrefix(FlagOS, GV, false); in emitLinkerFlagsForGlobalCOFF()
231 if (Flag[0] == GV->getDataLayout().getGlobalPrefix()) in emitLinkerFlagsForGlobalCOFF()
236 Mangler.getNameWithPrefix(OS, GV, false); in emitLinkerFlagsForGlobalCOFF()
245 getArm64ECDemangledFunctionName(GV->getName())) in emitLinkerFlagsForGlobalCOFF()
251 if (!GV->getValueType()->isFunctionTy()) { in emitLinkerFlagsForGlobalCOFF()
258 if (GV->hasHiddenVisibility() && !GV->isDeclaration() && TT.isOSCygMing()) { in emitLinkerFlagsForGlobalCOFF()
262 bool NeedQuotes = GV->hasName() && !canBeUnquotedInDirective(GV->getName()); in emitLinkerFlagsForGlobalCOFF()
268 Mangler.getNameWithPrefix(FlagOS, GV, false); in emitLinkerFlagsForGlobalCOFF()
270 if (Flag[0] == GV->getDataLayout().getGlobalPrefix()) in emitLinkerFlagsForGlobalCOFF()
280 void llvm::emitLinkerFlagsForUsedCOFF(raw_ostream &OS, const GlobalValue *GV, in emitLinkerFlagsForUsedCOFF() argument
286 bool NeedQuotes = GV->hasName() && !canBeUnquotedInDirective(GV->getName()); in emitLinkerFlagsForUsedCOFF()
289 M.getNameWithPrefix(OS, GV, false); in emitLinkerFlagsForUsedCOFF()