reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/TargetTransformInfoImpl.h
  180     if (F->hasLocalLinkage() || !F->hasName())
include/llvm/IR/GlobalValue.h
  150     if (hasLocalLinkage() ||
  243     assert((!hasLocalLinkage() || V == DefaultVisibility) &&
include/llvm/Transforms/IPO/Attributor.h
  823     assert(F.hasLocalLinkage() &&
lib/Analysis/CallGraph.cpp
   64   if (!F->hasLocalLinkage() || F->hasAddressTaken())
lib/Analysis/GlobalsModRef.cpp
  289     if (F.hasLocalLinkage())
  301     if (GV.hasLocalLinkage()) {
  930     if (GV->hasLocalLinkage())
lib/Analysis/InlineCost.cpp
  974       F.hasLocalLinkage() && F.hasOneUse() && &F == Call.getCalledFunction();
 1904       F.hasLocalLinkage() && F.hasOneUse() && &F == Call.getCalledFunction();
lib/Analysis/InstructionSimplify.cpp
 2451           return (GV->hasLocalLinkage() || GV->hasHiddenVisibility() ||
lib/Analysis/LazyCallGraph.cpp
  166     if (F.hasLocalLinkage())
  179     if (A.hasLocalLinkage())
lib/Analysis/Lint.cpp
  218   Assert(F.hasName() || F.hasLocalLinkage(),
lib/Analysis/ModuleSummaryAnalysis.cpp
  137   return GV.hasSection() && GV.hasLocalLinkage();
  662     if (V->hasLocalLinkage()) {
lib/Analysis/ValueLatticeUtils.cpp
   20   return F->hasLocalLinkage() && !F->hasAddressTaken();
   28   if (GV->isConstant() || !GV->hasLocalLinkage() ||
lib/Analysis/ValueTracking.cpp
 2798   if (!F || F->hasLocalLinkage() || !TLI->getLibFunc(*F, Func))
lib/Bitcode/Reader/BitcodeReader.cpp
 3081   if (GV->hasLocalLinkage() ||
 3256   if (!Func->hasLocalLinkage())
 3368     if (!NewGA->hasLocalLinkage())
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1310     assert(GIS.hasLocalLinkage() && "Invalid alias or ifunc linkage");
 1589           if (GV->hasLocalLinkage())
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
 1019     SymbolKind ProcKind = GV->hasLocalLinkage() ? SymbolKind::S_LPROC32_ID
lib/CodeGen/SelectionDAG/FastISel.cpp
 1621     if (F && !F->hasLocalLinkage() && F->hasName() &&
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 7559     if (!I.isNoBuiltin() && !I.isStrictFP() && !F->hasLocalLinkage() &&
lib/CodeGen/TargetFrameLoweringImpl.cpp
  138   if (!F.hasLocalLinkage() || F.hasAddressTaken() ||
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  402       StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
 1081       StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
 1107     StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
 1175                                                  !GV->hasLocalLinkage());
lib/ExecutionEngine/ExecutionEngine.cpp
  379   if (!GV || GV->isDeclaration() || GV->hasLocalLinkage()) return;
 1199         if (GV.hasLocalLinkage() || GV.isDeclaration() ||
lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
  142       if (GV.isDeclaration() || GV.hasLocalLinkage() ||
lib/ExecutionEngine/Orc/ExecutionUtils.cpp
  103     if (CtorDtor.Func->hasLocalLinkage()) {
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
  267     else if (GV.hasLocalLinkage())
  272     if (GV.hasLocalLinkage()) {
lib/ExecutionEngine/Orc/Layer.cpp
   35       if (G.hasName() && !G.isDeclaration() && !G.hasLocalLinkage() &&
lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp
   27   if (!GV.hasLocalLinkage() && !GV.hasHiddenVisibility())
lib/IR/AsmWriter.cpp
 3197   bool Implicit = GV.hasLocalLinkage() ||
lib/IR/Function.cpp
 1442   if (!hasLinkOnceLinkage() && !hasLocalLinkage() &&
lib/IR/Module.cpp
  193     if (AllowLocal || !Result->hasLocalLinkage())
lib/IR/Verifier.cpp
  591   if (GV.hasLocalLinkage())
lib/LTO/LTO.cpp
  651   if (!GV.hasLocalLinkage())
  999       if (!GV || GV->hasLocalLinkage() || GV->isDeclaration())
lib/LTO/LTOCodeGenerator.cpp
  448       if (!GV.hasAvailableExternallyLinkage() && !GV.hasLocalLinkage() &&
  483     if (!GV.hasLocalLinkage() || !GV.hasName())
lib/LTO/LTOModule.cpp
  440   if (def->hasLocalLinkage())
lib/Linker/IRMover.cpp
  455     if (!SrcGV->hasName() || SrcGV->hasLocalLinkage())
  465     if (DGV->hasLocalLinkage())
  550   if (GV->hasLocalLinkage() || GV->getName() == Name)
  943   if (ValuesToLink.count(&SGV) || SGV.hasLocalLinkage())
lib/Linker/LinkModules.cpp
   94     if (DGV->hasLocalLinkage())
  344   if (DGV && !GV.hasLocalLinkage() && !GV.hasAppendingLinkage()) {
  373       (GV.hasLocalLinkage() || GV.hasLinkOnceLinkage() ||
lib/Object/IRSymtab.cpp
  177       if (GV->hasLocalLinkage()) {
lib/Object/ModuleSymbolTable.cpp
  193   else if (GV->hasHiddenVisibility() && !GV->hasLocalLinkage())
  205   if (!GV->hasLocalLinkage())
lib/Object/RecordStreamer.cpp
  200           else if (GV->hasLocalLinkage())
lib/ProfileData/InstrProf.cpp
 1074       IRInstrVar->hasLocalLinkage())
lib/Target/AArch64/AArch64BranchTargets.cpp
   86     if (&MBB == &*MF.begin() && (F.hasAddressTaken() || !F.hasLocalLinkage()))
lib/Target/ARM/ARMISelLowering.cpp
 3342       !GVar->hasLocalLinkage())
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
  133          << (GO->hasLocalLinkage() ? "local_linkage " : "")
  170          << (GO->hasLocalLinkage() ? "local_linkage " : "")
  235   bool IsLocal = GVar->hasLocalLinkage();
lib/Target/Lanai/LanaiTargetObjectFile.cpp
   90   if (GVA->hasLocalLinkage())
lib/Target/Mips/MipsCallLowering.cpp
  577     if (!Info.Callee.getGlobal()->hasLocalLinkage())
lib/Target/Mips/MipsFastISel.cpp
  426        (GV->hasLocalLinkage() && !isa<Function>(GV)))) {
lib/Target/Mips/MipsISelLowering.cpp
 1985   if (GV->hasLocalLinkage())
 3093       IsTailCall &= (InternalLinkage || G->getGlobal()->hasLocalLinkage() ||
lib/Target/Mips/MipsInstructionSelector.cpp
  573       if (GVal->hasLocalLinkage()) {
lib/Target/Mips/MipsTargetObjectFile.cpp
  126   if (!LocalSData && GVA->hasLocalLinkage())
lib/Target/NVPTX/NVPTXAssignValidGlobalNames.cpp
   55     if (GV.hasLocalLinkage()) {
   66     if (F.hasLocalLinkage())
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  353         if (!F->hasLocalLinkage() && F->hasName() && LibInfo &&
lib/Target/Sparc/SparcTargetObjectFile.cpp
   37       StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
lib/Target/TargetLoweringObjectFile.cpp
  169     if (GVar->hasLocalLinkage())
lib/Target/X86/X86AsmPrinter.cpp
   69     bool Local = MF.getFunction().hasLocalLinkage();
lib/Target/X86/X86ISelLowering.cpp
 3647     if (!G || (!G->getGlobal()->hasLocalLinkage() &&
 3873       if (G && !G->getGlobal()->hasLocalLinkage() &&
lib/Target/X86/X86IndirectBranchTracking.cpp
  118        !MF.getFunction().hasLocalLinkage()) &&
lib/Target/XCore/XCoreISelLowering.cpp
  258       (GVar && GVar->isConstant() && GV->hasLocalLinkage()))
lib/Target/XCore/XCoreTargetObjectFile.cpp
  111   bool UseCPRel = GO->hasLocalLinkage();
lib/Transforms/IPO/ArgumentPromotion.cpp
  878   if (!F->hasLocalLinkage())
lib/Transforms/IPO/Attributor.cpp
 2292           if (F->hasLocalLinkage())
 4264   if (RequireAllCallSites && !Fn.hasLocalLinkage()) {
 4631       if (F.hasLocalLinkage())
 4944     if (F.hasLocalLinkage()) {
lib/Transforms/IPO/ConstantMerge.cpp
   60   if (!A.hasLocalLinkage() && B.hasLocalLinkage())
   60   if (!A.hasLocalLinkage() && B.hasLocalLinkage())
   63   if (A.hasLocalLinkage() && !B.hasLocalLinkage())
   63   if (A.hasLocalLinkage() && !B.hasLocalLinkage())
  129   assert(Old->hasLocalLinkage() &&
  161       if (GV->use_empty() && GV->hasLocalLinkage()) {
  209       if (!GV->hasLocalLinkage())
lib/Transforms/IPO/DeadArgumentElimination.cpp
  124   if (Fn.isDeclaration() || !Fn.hasLocalLinkage()) return false;
  277   if (Fn.hasLocalLinkage() && !Fn.getFunctionType()->isVarArg())
  539   if (!F.hasLocalLinkage() && (!ShouldHackArguments || F.isIntrinsic())) {
lib/Transforms/IPO/ExtractGV.cpp
   26   bool Local = GV.hasLocalLinkage();
lib/Transforms/IPO/GlobalOpt.cpp
  467   assert(GV->hasLocalLinkage());
 1768     if (!GV.hasLocalLinkage() && NotDiscardableComdats.count(C))
 2078     auto NewUnnamedAddr = GV.hasLocalLinkage() ? GlobalValue::UnnamedAddr::Global
 2088   if (!GV.hasLocalLinkage())
 2227         if (!CalledFn->hasLocalLinkage())
 2272     if (!F->hasName() && !F->isDeclaration() && !F->hasLocalLinkage())
 2296     if (!F->hasLocalLinkage())
 2361     if (!GV->hasName() && !GV->isDeclaration() && !GV->hasLocalLinkage())
 2713   if (!GA.hasLocalLinkage())
 2738   if (!Target->hasLocalLinkage())
 2765     if (!J->hasName() && !J->isDeclaration() && !J->hasLocalLinkage())
lib/Transforms/IPO/GlobalSplit.cpp
   43   if (!GV.hasLocalLinkage())
lib/Transforms/IPO/IPConstantPropagation.cpp
  301         if (F.hasLocalLinkage())
lib/Transforms/IPO/Inliner.cpp
  311   if (!Caller->hasLocalLinkage() && !Caller->hasLinkOnceODRLinkage())
  339   bool ApplyLastCallBonus = Caller->hasLocalLinkage() && !Caller->hasOneUse();
  719       if (Callee && Callee->use_empty() && Callee->hasLocalLinkage() &&
  827     if (!F->hasLocalLinkage()) {
 1115       if (Callee.hasLocalLinkage()) {
lib/Transforms/IPO/Internalize.cpp
  102   if (GV.hasLocalLinkage())
  122     if (GV.hasLocalLinkage())
  125     if (GV.hasLocalLinkage())
lib/Transforms/IPO/LowerTypeTests.cpp
 1544         if (!F->hasLocalLinkage())
 1787       if (F.hasLocalLinkage())
 1890         if (F && F->hasLocalLinkage()) {
 1962         if (!CrossDsoCfi || !IsJumpTableCanonical || F->hasLocalLinkage())
lib/Transforms/IPO/MergeFunctions.cpp
  759   assert(F->hasLocalLinkage() || F->hasExternalLinkage()
  889   if (F->hasLocalLinkage() != G->hasLocalLinkage()) {
  889   if (F->hasLocalLinkage() != G->hasLocalLinkage()) {
  892     return !F->hasLocalLinkage();
lib/Transforms/IPO/StripSymbols.cpp
  147     if (!GV->hasLocalLinkage()) return;   // Don't delete non-static globals.
  165     if (!isa<GlobalValue>(V) || cast<GlobalValue>(V)->hasLocalLinkage()) {
  212     if (I->hasLocalLinkage() && llvmUsedValues.count(&*I) == 0)
  218     if (I.hasLocalLinkage() && llvmUsedValues.count(&I) == 0)
  280       if (GV->hasLocalLinkage())
lib/Transforms/IPO/SyntheticCountsPropagation.cpp
   84     } else if (F.hasLocalLinkage() && !MayHaveIndirectCalls(F)) {
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
   40     if (!ExportGV.hasLocalLinkage())
  299     if ((!F.hasLocalLinkage() || F.hasAddressTaken()) && HasTypeMetadata(&F))
lib/Transforms/IPO/WholeProgramDevirt.cpp
  941   if (TheFn->hasLocalLinkage()) {
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1988       assert(G->hasLocalLinkage());
 1992     if (!InternalSuffix.empty() && G->hasLocalLinkage()) {
 2347     if (NewGlobal->hasLocalLinkage()) {
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  884           F.hasLocalLinkage()
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1470                                cast<GlobalValue>(P.first)->hasLocalLinkage());
lib/Transforms/Instrumentation/InstrProfiling.cpp
  692   if (!F->hasLinkOnceLinkage() && !F->hasLocalLinkage() &&
  706   if (F->hasLocalLinkage() && F->hasComdat())
lib/Transforms/Instrumentation/Instrumentation.cpp
   88   if (T.isOSBinFormatELF() && F.hasLocalLinkage()) {
lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
  111       if (CalledFunc->hasLocalLinkage() ||
lib/Transforms/Utils/FunctionImportUtils.cpp
   44   assert(SGV->hasLocalLinkage());
   83   if (!GV.hasLocalLinkage())
  101   if (SGV->hasLocalLinkage() && (DoPromote || isPerformingImport()))
  116     if (SGV->hasLocalLinkage() && DoPromote)
  256   if (GV.hasLocalLinkage() &&
  266     if (!GV.hasLocalLinkage())
lib/Transforms/Utils/Local.cpp
 2895   if (F && !F->hasLocalLinkage() && F->hasName() &&
lib/Transforms/Utils/NameAnonGlobals.cpp
   41       if (F.isDeclaration() || F.hasLocalLinkage() || !F.hasName())
   47       if (GV.isDeclaration() || GV.hasLocalLinkage() || !GV.hasName())
lib/Transforms/Utils/SplitModule.cpp
  143     if (GV.hasLocalLinkage())
  205                         << ((*MI)->hasLocalLinkage() ? " l " : " e ") << "\n");
  216   if (GV->hasLocalLinkage()) {
tools/bugpoint/ExtractFunction.cpp
  250   if (!GV || GV->isDeclaration() || GV->hasLocalLinkage() || !GV->use_empty())
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 3594   if (Fn->hasLocalLinkage())
 4375         Var->hasLocalLinkage());
 4434         Var->hasLocalLinkage(),
tools/clang/lib/CodeGen/CodeGenModule.cpp
  761   if (GV->hasLocalLinkage()) {
  777   if (GV->hasLocalLinkage())
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
  281     if (ForVTable && !Thunk->hasLocalLinkage())
 2535   if (!Wrapper->hasLocalLinkage())