Home
last modified time | relevance | path

Searched refs:hasLocalLinkage (Results 1 – 25 of 64) sorted by relevance

123

/external/llvm/lib/Transforms/IPO/
DConstantMerge.cpp82 if (!A.hasLocalLinkage() && B.hasLocalLinkage()) in IsBetterCanonical()
85 if (A.hasLocalLinkage() && !B.hasLocalLinkage()) in IsBetterCanonical()
126 if (GV->use_empty() && GV->hasLocalLinkage()) { in runOnModule()
173 if (!GV->hasLocalLinkage()) in runOnModule()
214 assert(Replacements[i].first->hasLocalLinkage() && in runOnModule()
DStripSymbols.cpp149 if (!GV->hasLocalLinkage()) return; // Don't delete non-static globals. in RemoveDeadConstant()
167 if (!isa<GlobalValue>(V) || cast<GlobalValue>(V)->hasLocalLinkage()) { in StripSymtab()
214 if (I->hasLocalLinkage() && llvmUsedValues.count(&*I) == 0) in StripSymbolNames()
220 if (I->hasLocalLinkage() && llvmUsedValues.count(&*I) == 0) in StripSymbolNames()
273 if (GV->hasLocalLinkage()) in runOnModule()
DInternalize.cpp127 if (!GV.hasLocalLinkage() && ExternalNames.count(GV.getName())) in isExternallyVisible()
145 if (GV.hasLocalLinkage()) in maybeInternalize()
148 if (GV.hasLocalLinkage()) in maybeInternalize()
DInliner.cpp393 if (Caller->hasLocalLinkage() || Caller->hasLinkOnceODRLinkage()) { in shouldInline()
398 bool callerWillBeRemoved = Caller->hasLocalLinkage(); in shouldInline()
624 if (Callee && Callee->use_empty() && Callee->hasLocalLinkage() && in runOnSCC()
714 if (!F->hasLocalLinkage()) { in removeDeadFunctions()
DExtractGV.cpp29 bool Local = GV.hasLocalLinkage(); in makeVisible()
DGlobalOpt.cpp479 assert(GV->hasLocalLinkage() && !GV->isConstant()); in SRAGlobal()
1708 if (!GV->hasLocalLinkage()) in ProcessGlobal()
2041 if (!F->hasName() && !F->isDeclaration() && !F->hasLocalLinkage()) in OptimizeFunctions()
2047 if ((!inComdat || F->hasLocalLinkage()) && F->isDefTriviallyDead()) { in OptimizeFunctions()
2051 } else if (F->hasLocalLinkage()) { in OptimizeFunctions()
2083 if (!GV->hasName() && !GV->isDeclaration() && !GV->hasLocalLinkage()) in OptimizeGlobalVars()
2096 if (NotDiscardableComdats.count(C) && !GV->hasLocalLinkage()) in OptimizeGlobalVars()
2958 if (!GA.hasLocalLinkage()) in mayHaveOtherReferences()
2983 if (!Target->hasLocalLinkage()) in hasUsesToReplace()
3007 if (!J->hasName() && !J->isDeclaration() && !J->hasLocalLinkage()) in OptimizeGlobalAliases()
DIPConstantPropagation.cpp68 if (I->hasLocalLinkage()) in runOnModule()
/external/llvm/lib/Linker/
DLinkModules.cpp110 if (DGV->hasLocalLinkage()) in getLinkedToGlobal()
200 assert(SGV->hasLocalLinkage()); in doPromoteLocalToGlobal()
229 if (SGV->hasLocalLinkage() && in getName()
243 if (SGV->hasLocalLinkage() && doPromoteLocalToGlobal(SGV)) in getLinkage()
575 if (DGV && !GV.hasLocalLinkage() && !GV.hasAppendingLinkage()) { in linkIfNeeded()
612 (GV.hasLocalLinkage() || GV.hasLinkOnceLinkage() || in linkIfNeeded()
649 if (!GV2->hasLocalLinkage() && shouldInternalizeLinkedSymbols()) in addLazyFor()
656 if (GV.hasLocalLinkage() && in processGlobalForThinLTO()
660 if (!GV.hasLocalLinkage()) in processGlobalForThinLTO()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUAlwaysInlinePass.cpp41 if (!F.hasLocalLinkage() && !F.isDeclaration() && !F.use_empty() && in runOnModule()
55 if (F.hasLocalLinkage() && !F.hasFnAttribute(Attribute::NoInline)) { in runOnModule()
/external/llvm/lib/Target/X86/
DX86Subtarget.cpp87 if (!GV->hasLocalLinkage() && GV->hasDefaultVisibility()) in ClassifyGlobalReference()
96 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility()) in ClassifyGlobalReference()
/external/llvm/lib/Target/NVPTX/
DNVPTXAssignValidGlobalNames.cpp55 if (GV.hasLocalLinkage()) { in runOnModule()
/external/llvm/lib/Target/Sparc/
DSparcTargetObjectFile.cpp33 StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage()); in getTTypeGlobalReference()
/external/llvm/lib/Target/SystemZ/
DSystemZSubtarget.cpp53 return GV->hasLocalLinkage() || !GV->hasDefaultVisibility(); in bindsLocally()
/external/llvm/include/llvm/IR/
DGlobalValue.h147 assert((!hasLocalLinkage() || V == DefaultVisibility) && in setVisibility()
282 bool hasLocalLinkage() const { return isLocalLinkage(Linkage); } in hasLocalLinkage() function
/external/llvm/include/llvm/ExecutionEngine/
DJITSymbolFlags.h69 if (!GV.hasLocalLinkage() && !GV.hasHiddenVisibility()) in flagsFromGlobalValue()
/external/llvm/lib/Transforms/Utils/
DSplitModule.cpp30 if (GV->hasLocalLinkage()) { in externalize()
/external/llvm/lib/Target/AArch64/
DAArch64Subtarget.cpp97 return GV->hasLocalLinkage() ? AArch64II::MO_NO_FLAG : AArch64II::MO_GOT; in ClassifyGlobalReference()
/external/llvm/lib/Object/
DIRObjectFile.cpp222 else if (GV->hasHiddenVisibility() && !GV->hasLocalLinkage()) in getSymbolFlags()
230 if (!GV->hasLocalLinkage()) in getSymbolFlags()
/external/llvm/lib/Target/Mips/
DMipsTargetObjectFile.cpp101 if (!LocalSData && GV->hasLocalLinkage()) in IsGlobalInSmallSectionImpl()
/external/llvm/lib/Transforms/Scalar/
DPartiallyInlineLibCalls.cpp81 if (CalledFunc->hasLocalLinkage() || !CalledFunc->hasName() || in runOnFunction()
/external/llvm/lib/Target/
DTargetMachine.cpp110 bool isLocal = GV->hasLocalLinkage(); in getTLSModel()
DTargetLoweringObjectFile.cpp157 if (GVar->hasLocalLinkage()) in getKindForGlobal()
/external/llvm/lib/Target/PowerPC/
DPPCSubtarget.cpp232 if (!GV->hasLocalLinkage() && in classifyGlobalReference()
/external/llvm/lib/Analysis/
DGlobalsModRef.cpp274 if (F.hasLocalLinkage()) in AnalyzeGlobals()
286 if (GV.hasLocalLinkage()) { in AnalyzeGlobals()
915 if (GV->hasLocalLinkage()) in getModRefInfo()
/external/llvm/lib/Target/ARM/
DARMSubtarget.cpp284 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility()) in GVIsIndirectSymbol()

123