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

References

examples/BrainF/BrainF.cpp
   86                                  Function::ExternalLinkage, "brainf", module);
examples/BrainF/BrainFDriver.cpp
   81       Function::Create(main_func_fty, Function::ExternalLinkage, "main", mod);
examples/Fibonacci/fibonacci.cpp
   57       Function::Create(FibFTy, Function::ExternalLinkage, "fib", M);
examples/HowToUseJIT/HowToUseJIT.cpp
   74                        Function::ExternalLinkage, "add1", M);
  104                        Function::ExternalLinkage, "foo", M);
examples/HowToUseLLJIT/HowToUseLLJIT.cpp
   31                        Function::ExternalLinkage, "add1", M.get());
examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp
 1042       Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp
 1042       Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp
 1041       Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp
 1027       Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp
 1051       Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
examples/Kaleidoscope/Chapter3/toy.cpp
  473       Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
examples/Kaleidoscope/Chapter4/toy.cpp
  501       Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
examples/Kaleidoscope/Chapter5/toy.cpp
  775       Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
examples/Kaleidoscope/Chapter6/toy.cpp
  887       Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
examples/Kaleidoscope/Chapter7/toy.cpp
 1047       Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
examples/Kaleidoscope/Chapter8/toy.cpp
 1046       Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
examples/Kaleidoscope/Chapter9/toy.cpp
 1213       Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
examples/ModuleMaker/ModuleMaker.cpp
   43   Function *F = Function::Create(FT, Function::ExternalLinkage, "main", M);
examples/ParallelJIT/ParallelJIT.cpp
   56                        Function::ExternalLinkage, "add1", M);
   87       Function::Create(FibFTy, Function::ExternalLinkage, "fib", M);
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
  669                                   GlobalValue::ExternalLinkage, A->getName(),
  672         return new GlobalVariable(*M, Ty, false, GlobalValue::ExternalLinkage,
include/llvm/IR/Function.h
  640     setLinkage(ExternalLinkage);
include/llvm/IR/GlobalValue.h
  139     case ExternalLinkage:
  301     return Linkage == ExternalLinkage;
  359     case ExternalLinkage:
include/llvm/LinkAllPasses.h
  232       llvm::Function::Create(nullptr, llvm::GlobalValue::ExternalLinkage)->viewCFGOnly();
lib/AsmParser/LLParser.cpp
 1081     GV = new GlobalVariable(*M, Ty, false, GlobalValue::ExternalLinkage, nullptr,
 1801     return GlobalValue::ExternalLinkage;
 1823     return GlobalValue::ExternalLinkage;
 5324   case GlobalValue::ExternalLinkage:
 5479     Fn = Function::Create(FT, GlobalValue::ExternalLinkage, AddrSpace,
 8017     AddGlobalValueToIndex(Name, GUID, GlobalValue::ExternalLinkage, ID,
 8067       /*Linkage=*/GlobalValue::ExternalLinkage, /*NotEligibleToImport=*/false,
 8137       /*Linkage=*/GlobalValue::ExternalLinkage, /*NotEligibleToImport=*/false,
 8193       /*Linkage=*/GlobalValue::ExternalLinkage, /*NotEligibleToImport=*/false,
lib/Bitcode/Reader/BitcodeReader.cpp
  918     return GlobalValue::ExternalLinkage;
  924     return GlobalValue::ExternalLinkage; // Obsolete DLLImportLinkage
  926     return GlobalValue::ExternalLinkage; // Obsolete DLLExportLinkage
  940     return GlobalValue::ExternalLinkage; // Obsolete LinkOnceODRAutoHideLinkage
 3220       Function::Create(cast<FunctionType>(FTy), GlobalValue::ExternalLinkage,
lib/Bitcode/Writer/BitcodeWriter.cpp
  971   case GlobalValue::ExternalLinkage:
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  421   case GlobalValue::ExternalLinkage:
lib/CodeGen/GlobalMerge.cpp
  498                                             ? GlobalValue::ExternalLinkage
lib/CodeGen/MIRParser/MIRParser.cpp
  264                        Function::ExternalLinkage, Name, M);
lib/CodeGen/MachineOutliner.cpp
 1101                                  Function::ExternalLinkage, FunctionName, M);
lib/CodeGen/TargetLoweringBase.cpp
 1696         *M, StackPtrTy, false, GlobalValue::ExternalLinkage, nullptr,
 1783                        GlobalVariable::ExternalLinkage,
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
 1895   case GlobalValue::ExternalLinkage:
lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
   22     GV.setLinkage(GlobalValue::ExternalLinkage);
lib/ExecutionEngine/Orc/ExecutionUtils.cpp
  104       CtorDtor.Func->setLinkage(GlobalValue::ExternalLinkage);
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
  230   auto IP = new GlobalVariable(M, &PT, false, GlobalValue::ExternalLinkage,
  273       GV.setLinkage(GlobalValue::ExternalLinkage);
lib/ExecutionEngine/Orc/OrcMCJITReplacement.h
  276         Ctor.Func->setLinkage(GlobalValue::ExternalLinkage);
  284         Dtor.Func->setLinkage(GlobalValue::ExternalLinkage);
lib/ExecutionEngine/Orc/Speculation.cpp
   76         Function::Create(RuntimeCallTy, Function::LinkageTypes::ExternalLinkage,
   79         M, SpeculatorVTy, false, GlobalValue::LinkageTypes::ExternalLinkage,
lib/FuzzMutate/IRMutator.cpp
   30                                  GlobalValue::ExternalLinkage, "f", &M);
lib/IR/AsmWriter.cpp
 2915   case GlobalValue::ExternalLinkage:
 2945   if (LT == GlobalValue::ExternalLinkage)
lib/IR/Core.cpp
 1830   case GlobalValue::ExternalLinkage:
 1862     GV->setLinkage(GlobalValue::ExternalLinkage);
 2070                                  GlobalValue::ExternalLinkage, nullptr, Name));
 2077                                  GlobalValue::ExternalLinkage, nullptr, Name,
 2203                                   GlobalValue::ExternalLinkage, Name,
 2257                                GlobalValue::ExternalLinkage, Name, unwrap(M)));
 2502                                   GlobalValue::ExternalLinkage,
lib/IR/Module.cpp
  149     Function *New = Function::Create(Ty, GlobalVariable::ExternalLinkage,
  227     return new GlobalVariable(*this, Ty, false, GlobalVariable::ExternalLinkage,
lib/IR/ModuleSummaryIndex.cpp
  270   case GlobalValue::ExternalLinkage:
lib/LTO/LTO.cpp
  393         S->setLinkage(GlobalValue::ExternalLinkage);
  820           Sym.getIRName(), GlobalValue::ExternalLinkage, ""));
lib/Linker/IRMover.cpp
  628                          SGVar->isConstant(), GlobalValue::ExternalLinkage,
  659                        GlobalValue::ExternalLinkage, SF->getName(), &DstM);
  675                               GlobalValue::ExternalLinkage, SGIS->getName(),
  679                               GlobalValue::ExternalLinkage, SGIS->getName(),
  698                            GlobalValue::ExternalLinkage, SGV->getName(), &DstM);
  702           /*isConstant*/ false, GlobalValue::ExternalLinkage,
lib/Linker/LinkModules.cpp
  444       Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage, "", &M);
  448                              GlobalValue::ExternalLinkage,
lib/ProfileData/InstrProf.cpp
  273   return getPGOFuncName(F.getName(), GlobalValue::ExternalLinkage, "");
  316            Linkage == GlobalValue::ExternalLinkage)
 1145     IRLevelVersionVariable->setLinkage(GlobalValue::ExternalLinkage);
 1161     ProfileNameVar->setLinkage(GlobalValue::ExternalLinkage);
lib/Target/AMDGPU/AMDGPUOpenCLEnqueuedBlockLowering.cpp
  122           /*isConstant=*/false, GlobalValue::ExternalLinkage,
  138         F.setLinkage(GlobalValue::ExternalLinkage);
lib/Target/ARM/ARMFastISel.cpp
 2191                                        GlobalValue::ExternalLinkage, nullptr,
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  859     GV = new GlobalVariable(M, VarType, false, GlobalVariable::ExternalLinkage,
lib/Target/BPF/BTFDebug.cpp
 1099         (Linkage != GlobalValue::ExternalLinkage || !Global.hasSection()))
 1102     uint32_t GVarInfo = Linkage == GlobalValue::ExternalLinkage
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  360       FTy, GlobalValue::ExternalLinkage,
  470       Function::Create(FTy, GlobalValue::ExternalLinkage, "__invoke_" + Sig, M);
  643                        GlobalValue::ExternalLinkage, "getTempRet0", &M);
  646       GlobalValue::ExternalLinkage, "setTempRet0", &M);
  657     ResumeF = Function::Create(ResumeFTy, GlobalValue::ExternalLinkage,
  663     EHTypeIDF = Function::Create(EHTypeIDTy, GlobalValue::ExternalLinkage,
  681                                           GlobalValue::ExternalLinkage,
  696           Function::Create(FTy, GlobalValue::ExternalLinkage, "saveSetjmp", &M);
  702           Function::Create(FTy, GlobalValue::ExternalLinkage, "testSetjmp", &M);
  706       EmLongjmpF = Function::Create(FTy, GlobalValue::ExternalLinkage,
lib/Target/XCore/XCoreAsmPrinter.cpp
  130   case GlobalValue::ExternalLinkage:
lib/Transforms/Coroutines/CoroSplit.cpp
  664   NewF->setLinkage(llvm::GlobalValue::ExternalLinkage);
lib/Transforms/IPO/ArgumentPromotion.cpp
 1159           OldF->setLinkage(Function::ExternalLinkage);
lib/Transforms/IPO/BlockExtractor.cpp
  228       F.setLinkage(GlobalValue::ExternalLinkage);
lib/Transforms/IPO/ElimAvailExtern.cpp
   46     GV.setLinkage(GlobalValue::ExternalLinkage);
lib/Transforms/IPO/ExtractGV.cpp
   28     GV.setLinkage(GlobalValue::ExternalLinkage);
  136             Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage,
  142               new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage,
lib/Transforms/IPO/FunctionImport.cpp
  919     V->setLinkage(GlobalValue::ExternalLinkage);
  927                            GlobalValue::ExternalLinkage, GV.getAddressSpace(),
  932                              /*isConstant*/ false, GlobalValue::ExternalLinkage,
 1242         S->setLinkage(GlobalValue::ExternalLinkage);
lib/Transforms/IPO/LowerTypeTests.cpp
  909         GlobalAlias::create(Int8Ty, 0, GlobalValue::ExternalLinkage,
 1057                                          GlobalValue::ExternalLinkage,
 1070     FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage,
 1075     F->setLinkage(GlobalValue::ExternalLinkage);
 1076     FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage,
 1087             F->getFunctionType(), GlobalValue::ExternalLinkage,
 1521               F->getValueType(), 0, GlobalValue::ExternalLinkage,
 1904               GlobalVariable::ExternalLinkage,
 1913           F->setLinkage(GlobalValue::ExternalLinkage);
 1922           F->setLinkage(GlobalValue::ExternalLinkage);
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
   63     ExportGV.setLinkage(GlobalValue::ExternalLinkage);
  157         Function::Create(EmptyFT, GlobalValue::ExternalLinkage,
lib/Transforms/IPO/WholeProgramDevirt.cpp
  957     TheFn->setLinkage(GlobalValue::ExternalLinkage);
 1054     JT = Function::Create(FT, Function::ExternalLinkage,
 1242   GlobalAlias *GA = GlobalAlias::create(Int8Ty, 0, GlobalValue::ExternalLinkage,
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  424                                     GlobalValue::ExternalLinkage, nullptr,
 1262                                    GlobalValue::ExternalLinkage, Initializer,
 1352       new GlobalVariable(M, Int8Arr0Ty, true, GlobalVariable::ExternalLinkage,
 1357       new GlobalVariable(M, Int8Arr0Ty, true, GlobalVariable::ExternalLinkage,
lib/Transforms/Instrumentation/InstrProfiling.cpp
  958       Function::Create(RuntimeRegisterTy, GlobalVariable::ExternalLinkage,
  971         Function::Create(NamesRegisterTy, GlobalVariable::ExternalLinkage,
  993       new GlobalVariable(*M, Int32Ty, false, GlobalValue::ExternalLinkage,
lib/Transforms/Instrumentation/MemorySanitizer.cpp
  750     return new GlobalVariable(M, Ty, false, GlobalVariable::ExternalLinkage,
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  306       new GlobalVariable(M, Ty, false, GlobalVariable::ExternalLinkage, nullptr,
  310       new GlobalVariable(M, Ty, false, GlobalVariable::ExternalLinkage,
lib/Transforms/Utils/CloneModule.cpp
   94                               GlobalValue::ExternalLinkage,
   98             *New, I->getValueType(), false, GlobalValue::ExternalLinkage,
  126       GV->setLinkage(GlobalValue::ExternalLinkage);
  150       F->setLinkage(GlobalValue::ExternalLinkage);
lib/Transforms/Utils/FunctionImportUtils.cpp
  117       return GlobalValue::ExternalLinkage;
  127   case GlobalValue::ExternalLinkage:
  141       return GlobalValue::ExternalLinkage;
  164       return GlobalValue::ExternalLinkage;
  182         return GlobalValue::ExternalLinkage;
lib/Transforms/Utils/SplitModule.cpp
  217     GV->setLinkage(GlobalValue::ExternalLinkage);
lib/Transforms/Vectorize/LoopVectorize.cpp
 4312               Function::Create(FTy, Function::ExternalLinkage, VFnName, M);
tools/bugpoint/CrashDebugger.cpp
  168       I.setLinkage(GlobalValue::ExternalLinkage);
  962       GV.setLinkage(GlobalValue::ExternalLinkage);
tools/bugpoint/ExtractFunction.cpp
  133     I->setLinkage(GlobalValue::ExternalLinkage);
  311     I->setLinkage(GlobalValue::ExternalLinkage);
  316     I->setLinkage(GlobalValue::ExternalLinkage);
tools/bugpoint/Miscompilation.cpp
  798                            GlobalValue::ExternalLinkage, "main", Test.get());
  802                                                 GlobalValue::ExternalLinkage,
tools/clang/lib/CodeGen/CGBlocks.cpp
 2968       GV->setLinkage(llvm::GlobalValue::ExternalLinkage);
 2971       GV->setLinkage(llvm::GlobalValue::ExternalLinkage);
tools/clang/lib/CodeGen/CGCUDANV.cpp
  563         /*isConstant=*/true, llvm::GlobalValue::ExternalLinkage, nullptr,
  698     llvm::GlobalAlias::create(llvm::GlobalValue::ExternalLinkage,
tools/clang/lib/CodeGen/CGDebugInfo.cpp
  946           CGM.getVTableLinkage(RD) == llvm::GlobalValue::ExternalLinkage)
tools/clang/lib/CodeGen/CGExpr.cpp
 2503   case llvm::GlobalValue::ExternalLinkage:
tools/clang/lib/CodeGen/CGGPUBuiltin.cpp
   40       VprintfFuncType, llvm::GlobalVariable::ExternalLinkage, "vprintf", &M);
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 1010               llvm::GlobalValue::ExternalLinkage, nullptr, Sym);
 1211         IdTy, false, llvm::GlobalValue::ExternalLinkage,
 1296           llvm::GlobalValue::ExternalLinkage, nullptr, Name);
 1366         llvm::GlobalValue::ExternalLinkage, nullptr, SymName);
 1407         CGM.getPointerAlign(), false, llvm::GlobalValue::ExternalLinkage);
 1507         llvm::GlobalValue::ExternalLinkage, nullptr, StringRef("__start_") +
 1512         llvm::GlobalValue::ExternalLinkage, nullptr, StringRef("__stop_") +
 1680               llvm::GlobalValue::ExternalLinkage, nullptr, Name);
 1766             llvm::GlobalValue::ExternalLinkage, nullptr, SuperClassName);
 1843             false, llvm::GlobalValue::ExternalLinkage,
 1927         CGM.getPointerAlign(), false, llvm::GlobalValue::ExternalLinkage);
 1973         classStruct->getType(), false, llvm::GlobalValue::ExternalLinkage,
 2078                                              llvm::GlobalValue::ExternalLinkage,
 2110                                            llvm::GlobalValue::ExternalLinkage,
 2399                                  llvm::GlobalValue::ExternalLinkage,
 2427                                       llvm::GlobalValue::ExternalLinkage,
 2973                                    llvm::GlobalValue::ExternalLinkage);
 3398                              llvm::GlobalValue::ExternalLinkage,
 3454         OffsetVar->setLinkage(llvm::GlobalValue::ExternalLinkage);
 3457           false, llvm::GlobalValue::ExternalLinkage,
 3560         offset->setLinkage(llvm::GlobalValue::ExternalLinkage);
 3564                 false, llvm::GlobalValue::ExternalLinkage, offsetValue, Name);
 4033             llvm::GlobalValue::ExternalLinkage, nullptr, Name);
tools/clang/lib/CodeGen/CGObjCMac.cpp
 5069         DefinedClasses[i]->setLinkage(llvm::GlobalVariable::ExternalLinkage);
 6095         DefinedClasses[i]->setLinkage(llvm::GlobalVariable::ExternalLinkage);
 6096         DefinedMetaClasses[i]->setLinkage(llvm::GlobalVariable::ExternalLinkage);
 6376                                  llvm::GlobalValue::ExternalLinkage, nullptr,
 6386                                    llvm::GlobalValue::ExternalLinkage, nullptr,
 6734                                  false, llvm::GlobalValue::ExternalLinkage,
 6875                                      false, llvm::GlobalValue::ExternalLinkage,
 7263            : llvm::GlobalValue::ExternalLinkage;
 7637                                    llvm::GlobalValue::ExternalLinkage, nullptr,
 7700                                        false, llvm::GlobalValue::ExternalLinkage,
 7715                                  llvm::GlobalValue::ExternalLinkage, nullptr,
 7731                                           ? llvm::GlobalValue::ExternalLinkage
tools/clang/lib/CodeGen/CGVTT.cpp
  124       Name, ArrayType, llvm::GlobalValue::ExternalLinkage, Align);
tools/clang/lib/CodeGen/CGVTables.cpp
  528     ThunkFn = llvm::Function::Create(ThunkFnTy, llvm::Function::ExternalLinkage,
  855         return llvm::GlobalVariable::ExternalLinkage;
  903                  : llvm::GlobalVariable::ExternalLinkage;
tools/clang/lib/CodeGen/CodeGenModule.cpp
 3123         Entry->setLinkage(llvm::Function::ExternalLinkage);
 3175       llvm::Function::Create(FTy, llvm::Function::ExternalLinkage,
 3365           F->setLinkage(llvm::GlobalValue::ExternalLinkage);
 3416         Entry->setLinkage(llvm::Function::ExternalLinkage);
 3464       llvm::GlobalValue::ExternalLinkage, nullptr, MangledName, nullptr,
 4221       return llvm::Function::ExternalLinkage;
 4223       return D->hasAttr<CUDAGlobalAttr>() ? llvm::Function::ExternalLinkage
 4244   return llvm::GlobalVariable::ExternalLinkage;
 4548       llvm::GlobalIFunc::create(DeclTy, 0, llvm::Function::ExternalLinkage,
 4685             GV->setLinkage(llvm::GlobalValue::ExternalLinkage);
 4687           GV->setLinkage(llvm::GlobalValue::ExternalLinkage);
 5066   if (Linkage == llvm::GlobalVariable::ExternalLinkage) {
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 1765       Name, VTableType, llvm::GlobalValue::ExternalLinkage,
 2618         Wrapper->setLinkage(llvm::Function::ExternalLinkage);
 2894                                   llvm::GlobalValue::ExternalLinkage, nullptr,
 3312           return llvm::GlobalValue::ExternalLinkage;
 3848           Type, llvm::GlobalValue::ExternalLinkage,
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  528                                         llvm::GlobalValue::ExternalLinkage,
 1830       VFTableLinkage = llvm::GlobalValue::ExternalLinkage;
 1985       llvm::Function::Create(ThunkTy, llvm::Function::ExternalLinkage,
 2355       /*isConstant=*/false, llvm::GlobalVariable::ExternalLinkage,
 3416                                   llvm::GlobalVariable::ExternalLinkage,
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
  177         M, getEntryTy(), /*isConstant*/ true, GlobalValue::ExternalLinkage,
  181         M, getEntryTy(), /*isConstant*/ true, GlobalValue::ExternalLinkage,
  193         M, DummyInit->getType(), true, GlobalVariable::ExternalLinkage,
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  111   llvm_function.setLinkage(GlobalValue::ExternalLinkage);
  346       GlobalValue::ExternalLinkage, nullptr, /* no initializer */
 1107       GlobalValue::ExternalLinkage, nullptr, /* no initializer */
tools/lli/lli.cpp
  322                        GlobalValue::ExternalLinkage, "__main", M.get());
tools/llvm-link/llvm-link.cpp
  311             S->setLinkage(GlobalValue::ExternalLinkage);
tools/llvm-stress/llvm-stress.cpp
  169   auto *Func = Function::Create(FuncTy, GlobalValue::ExternalLinkage, Name, M);
tools/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp
   30     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
  180     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
  200     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
  216     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
tools/polly/lib/CodeGen/LoopGeneratorsKMP.cpp
   40     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
  280     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
  299     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
  324     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
  363     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
  385     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
  425     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
tools/polly/lib/CodeGen/PerfMonitor.cpp
   26     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
tools/polly/lib/CodeGen/RuntimeDebugBuilder.cpp
   26     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
   47     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
  250     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
  275     GlobalValue::LinkageTypes Linkage = Function::ExternalLinkage;
unittests/Analysis/AliasAnalysisTest.cpp
  170   auto *F = Function::Create(FTy, Function::ExternalLinkage, "f", M);
unittests/Analysis/BasicAliasAnalysisTest.cpp
   73       GlobalValue::ExternalLinkage, "F", &M);
  107       GlobalValue::ExternalLinkage, "F", &M);
unittests/Analysis/DivergenceAnalysisTest.cpp
   81   Function *F = Function::Create(FTy, Function::ExternalLinkage, "f", M);
unittests/Analysis/MemoryBuiltinsTest.cpp
   30       GlobalValue::ExternalLinkage, "F", &M);
unittests/Analysis/MemorySSATest.cpp
   77       GlobalValue::ExternalLinkage, "F", &M);
  115       GlobalValue::ExternalLinkage, "F", &M);
  205       GlobalValue::ExternalLinkage, "F", &M);
  249       GlobalValue::ExternalLinkage, "F", &M);
  299       GlobalValue::ExternalLinkage, "F", &M);
  335       GlobalValue::ExternalLinkage, "F", &M);
  381       GlobalValue::ExternalLinkage, "F", &M);
  425       GlobalValue::ExternalLinkage, "F", &M);
  480       GlobalValue::ExternalLinkage, "F", &M);
  525       GlobalValue::ExternalLinkage, "F", &M);
  598                        GlobalValue::ExternalLinkage, "F", &M);
  629                        GlobalValue::ExternalLinkage, "F", &M);
  659                        GlobalValue::ExternalLinkage, "F", &M);
  703                        GlobalValue::ExternalLinkage, "F", &M);
  767                        GlobalValue::ExternalLinkage, "F", &M);
  796                        GlobalValue::ExternalLinkage, "F", &M);
  827                        GlobalValue::ExternalLinkage, "F", &M);
  886       GlobalValue::ExternalLinkage, "F", &M);
  925       GlobalValue::ExternalLinkage, "F", &M);
  970       GlobalValue::ExternalLinkage, "F", &M);
 1005                        GlobalValue::ExternalLinkage, "F", &M);
 1048                        GlobalValue::ExternalLinkage, "F", &M);
 1099                        GlobalValue::ExternalLinkage, "F", &M);
 1141                        GlobalValue::ExternalLinkage, "F", &M);
 1222       GlobalValue::ExternalLinkage, "F", &M);
 1271                        GlobalValue::ExternalLinkage, "F", &M);
 1336                        GlobalValue::ExternalLinkage, "F", &M);
 1413       GlobalValue::ExternalLinkage, "F", &M);
 1469       GlobalValue::ExternalLinkage, "F", &M);
 1541       GlobalValue::ExternalLinkage, "F", &M);
unittests/Analysis/OrderedInstructionsTest.cpp
   28   Function *F = Function::Create(FTy, Function::ExternalLinkage, "f", M);
unittests/Analysis/PhiValuesTest.cpp
   30                                  Function::ExternalLinkage, "f", M);
   97                                  Function::ExternalLinkage, "f", M);
unittests/Analysis/ScalarEvolutionTest.cpp
   71   Function *F = Function::Create(FTy, Function::ExternalLinkage, "f", M);
   77   Value *V0 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V0");
   78   Value *V1 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V1");
   79   Value *V2 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V2");
  120   Function *F = Function::Create(FTy, Function::ExternalLinkage, "f", M);
  154   Function *F = Function::Create(FTy, Function::ExternalLinkage, "f", M);
  337   Function *F = Function::Create(FTy, Function::ExternalLinkage, "f", M);
  407   Function *F = Function::Create(FTy, Function::ExternalLinkage, "f", M);
  445   Function *F = Function::Create(FTy, Function::ExternalLinkage, "f", M);
  679   Function *F = Function::Create(FTy, Function::ExternalLinkage, "foo", M);
  758   Function *F = Function::Create(FTy, Function::ExternalLinkage, "foo", NIM);
  832   Function *F = Function::Create(FTy, Function::ExternalLinkage, "foo", NIM);
  930   Function *F = Function::Create(FTy, Function::ExternalLinkage, "foo", NIM);
  991       Function::Create(FTy, Function::ExternalLinkage, "addrecphitest", M);
 1048       Function::Create(FTy, Function::ExternalLinkage, "addrecphitest", M);
 1102   Function *F = Function::Create(FTy, Function::ExternalLinkage, "f", M);
 1158   Function *F = Function::Create(FTy, Function::ExternalLinkage, "foo", NIM);
 1219   Function *F = Function::Create(FTy, Function::ExternalLinkage, "func", M);
 1271   Function *F = Function::Create(FTy, Function::ExternalLinkage, "func", M);
 1321   Function *F = Function::Create(FTy, Function::ExternalLinkage, "func", M);
 1372   Function *F = Function::Create(FTy, Function::ExternalLinkage, "func", M);
 1422   Function *F = Function::Create(FTy, Function::ExternalLinkage, "func", M);
unittests/Analysis/TBAATest.cpp
   36   auto *F = Function::Create(FTy, Function::ExternalLinkage, Name, M);
unittests/Analysis/VectorUtilsTest.cpp
   72             Function::ExternalLinkage, "f", M.get())),
unittests/CodeGen/MachineInstrTest.cpp
  157   auto F = Function::Create(Type, GlobalValue::ExternalLinkage, "Test", &M);
unittests/ExecutionEngine/ExecutionEngineTest.cpp
   42                               GlobalValue::ExternalLinkage, nullptr, Name);
unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
   49         Function::Create(FT, GlobalValue::ExternalLinkage, Name, M);
  114         Function::Create(FTy, GlobalValue::ExternalLinkage, Name, M);
  121                                         GlobalValue::ExternalLinkage,
  136                                                 GlobalValue::ExternalLinkage,
unittests/ExecutionEngine/Orc/LegacyRTDyldObjectLinkingLayerTest.cpp
   82     new GlobalVariable(*M, Int32Ty, false, GlobalValue::ExternalLinkage,
unittests/ExecutionEngine/Orc/OrcTestCommon.h
  171     return Function::Create(FTy, GlobalValue::ExternalLinkage, Name, M.get());
unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp
   78       new GlobalVariable(*M, Int32Ty, false, GlobalValue::ExternalLinkage,
  188           GlobalValue::ExternalLinkage, "bar", &M);
unittests/FuzzMutate/OperationsTest.cpp
  180                                  GlobalValue::ExternalLinkage, "f", &M);
  250                                  GlobalValue::ExternalLinkage, "f", &M);
  288                                  GlobalValue::ExternalLinkage, "f", &M);
unittests/IR/BasicBlockTest.cpp
  101   Function *F = Function::Create(FT, Function::ExternalLinkage, "", M);
unittests/IR/CFGBuilder.cpp
   26   F = Function::Create(FTy, Function::ExternalLinkage, FunctionName, M.get());
unittests/IR/ConstantsTest.cpp
  335                                         GlobalValue::ExternalLinkage, nullptr);
  342       new GlobalVariable(*M, ArrayTy, false, GlobalValue::ExternalLinkage, A0G);
  355                                     GlobalValue::ExternalLinkage, nullptr);
  357                                     GlobalValue::ExternalLinkage, nullptr);
  365       new GlobalVariable(*M, IntTy, false, GlobalValue::ExternalLinkage, Int1);
  385       new GlobalVariable(*M, PtrTy, false, GlobalValue::ExternalLinkage, GEP);
  389                                     GlobalValue::ExternalLinkage, nullptr);
  390   auto *Alias = GlobalAlias::create(IntTy, 0, GlobalValue::ExternalLinkage,
  472                                GlobalValue::ExternalLinkage, nullptr);
  484       FuncType, GlobalValue::ExternalLinkage, "", TheModule));
  575       new GlobalVariable(IntType, true, GlobalValue::ExternalLinkage));
unittests/IR/FunctionTest.cpp
   24       Function::Create(FTy, GlobalValue::ExternalLinkage, "F"));
   52       Function::Create(FTy, GlobalValue::ExternalLinkage, "F1"));
   54       Function::Create(FTy, GlobalValue::ExternalLinkage, "F1"));
  127                        llvm::GlobalValue::ExternalLinkage, "F", &M);
  145       FuncType, GlobalValue::ExternalLinkage));
unittests/IR/IRBuilderTest.cpp
   32     F = Function::Create(FTy, Function::ExternalLinkage, "", M.get());
   35                             GlobalValue::ExternalLinkage, nullptr);
  178                             true, GlobalValue::ExternalLinkage, nullptr);
  544       Function::Create(CalleeTy, Function::ExternalLinkage, "", M.get());
  550       Function::Create(CalleeTy, Function::ExternalLinkage, "", M.get());
  589                                          GlobalValue::ExternalLinkage, nullptr);
  735                                  Function::ExternalLinkage, "", M.get());
  801       Function::Create(CalleeTy, Function::ExternalLinkage, "", M.get());
unittests/IR/InstructionsTest.cpp
   74     F = Function::Create(FTy, Function::ExternalLinkage, "", M.get());
unittests/IR/LegacyPassManagerTest.cpp
  491         /*Linkage=*/GlobalValue::ExternalLinkage,
  499         /*Linkage=*/GlobalValue::ExternalLinkage,
  507         /*Linkage=*/GlobalValue::ExternalLinkage,
  515         /*Linkage=*/GlobalValue::ExternalLinkage,
unittests/IR/ManglerTest.cpp
   56   EXPECT_EQ(mangleFunc("foo", llvm::GlobalValue::ExternalLinkage,
   59   EXPECT_EQ(mangleFunc("?foo", llvm::GlobalValue::ExternalLinkage,
   76   EXPECT_EQ(mangleFunc("foo", llvm::GlobalValue::ExternalLinkage,
   79   EXPECT_EQ(mangleFunc("?foo", llvm::GlobalValue::ExternalLinkage,
   87   EXPECT_EQ(mangleFunc("stdcall", llvm::GlobalValue::ExternalLinkage,
   90   EXPECT_EQ(mangleFunc("fastcall", llvm::GlobalValue::ExternalLinkage,
   93   EXPECT_EQ(mangleFunc("vectorcall", llvm::GlobalValue::ExternalLinkage,
   98   EXPECT_EQ(mangleFunc("?fastcall", llvm::GlobalValue::ExternalLinkage,
  112   EXPECT_EQ(mangleFunc("foo", llvm::GlobalValue::ExternalLinkage,
  115   EXPECT_EQ(mangleFunc("?foo", llvm::GlobalValue::ExternalLinkage,
  123   EXPECT_EQ(mangleFunc("stdcall", llvm::GlobalValue::ExternalLinkage,
  126   EXPECT_EQ(mangleFunc("fastcall", llvm::GlobalValue::ExternalLinkage,
  129   EXPECT_EQ(mangleFunc("vectorcall", llvm::GlobalValue::ExternalLinkage,
  134   EXPECT_EQ(mangleFunc("?vectorcall", llvm::GlobalValue::ExternalLinkage,
unittests/IR/MetadataTest.cpp
  122         Function::ExternalLinkage, Name, M);
  349   auto *F0 = Function::Create(FTy, GlobalValue::ExternalLinkage, "F0", &M);
  350   auto *F1 = Function::Create(FTy, GlobalValue::ExternalLinkage, "F1", &M);
  374                        GlobalValue::ExternalLinkage, "llvm.intrinsic", &M);
  377   auto *F0 = Function::Create(FTy, GlobalValue::ExternalLinkage, "F0", &M);
  378   auto *F1 = Function::Create(FTy, GlobalValue::ExternalLinkage, "F1", &M);
  408   auto *F0 = Function::Create(FTy, GlobalValue::ExternalLinkage, "F0", &M);
  409   auto *F1 = Function::Create(FTy, GlobalValue::ExternalLinkage, "F1", &M);
  492       new GlobalVariable(Ty, false, GlobalValue::ExternalLinkage));
  731       new GlobalVariable(Ty, false, GlobalValue::ExternalLinkage));
  754       new GlobalVariable(Ty, false, GlobalValue::ExternalLinkage));
  767       new GlobalVariable(Ty, false, GlobalValue::ExternalLinkage));
 2531       new GlobalVariable(Ty, false, GlobalValue::ExternalLinkage));
 2537       new GlobalVariable(Ty, false, GlobalValue::ExternalLinkage));
 2592       new GlobalVariable(Ty, false, GlobalValue::ExternalLinkage));
 2598       new GlobalVariable(Ty, false, GlobalValue::ExternalLinkage));
 2609       new GlobalVariable(Ty, false, GlobalValue::ExternalLinkage));
unittests/IR/ModuleTest.cpp
   34     GlobalValue::LinkageTypes L = GlobalValue::ExternalLinkage;
unittests/IR/PatternMatch.cpp
   44             Function::ExternalLinkage, "f", M.get())),
unittests/IR/UserTest.cpp
  125       RetVoidTy, GlobalValue::ExternalLinkage, "PersonalityFn", &M);
  127       Function::Create(RetVoidTy, GlobalValue::ExternalLinkage, "TestFn", &M);
unittests/IR/ValueTest.cpp
   56                          GlobalValue::ExternalLinkage,
   78                          GlobalValue::ExternalLinkage,
   99       new GlobalVariable(*M, Int32Ty, true, GlobalValue::ExternalLinkage,
unittests/IR/VerifierTest.cpp
   29   Function *F = Function::Create(FTy, Function::ExternalLinkage, "foo", M);
   52   Function *F = Function::Create(FTy, Function::ExternalLinkage, "foo", M);
   70   Function *F1 = Function::Create(FTy, Function::ExternalLinkage, "foo1", M1);
   71   Function *F2 = Function::Create(FTy, Function::ExternalLinkage, "foo2", M2);
   72   Function *F3 = Function::Create(FTy, Function::ExternalLinkage, "foo3", M3);
  174                        GlobalValue::ExternalLinkage, nullptr, "g");
  177                                Function::ExternalLinkage, "f", M);
unittests/IR/WaymarkTest.cpp
   30       Function::Create(FT, GlobalValue::ExternalLinkage));
unittests/Linker/LinkModulesTest.cpp
   32     F = Function::Create(FTy, Function::ExternalLinkage, "ba_func", M.get());
  139       Function::Create(FTy, Function::ExternalLinkage, FuncName, M);
unittests/ProfileData/InstrProfTest.cpp
  292       Function::Create(FTy, Function::ExternalLinkage, "caller", M.get());
  895   Function::Create(FTy, Function::ExternalLinkage, "Gfoo", M.get());
  896   Function::Create(FTy, Function::ExternalLinkage, "Gblah", M.get());
  897   Function::Create(FTy, Function::ExternalLinkage, "Gbar", M.get());
unittests/Transforms/Utils/CloningTest.cpp
  165   Function *F1 = Function::Create(FT1, Function::ExternalLinkage);
  170   Function *F2 = Function::Create(FT1, Function::ExternalLinkage);
  190   Function *F1 = Function::Create(FT1, Function::ExternalLinkage);
  196   Function *F2 = Function::Create(FT1, Function::ExternalLinkage);
  214   Function *F = Function::Create(FT, Function::ExternalLinkage);
  263   Function *F = Function::Create(FT, Function::ExternalLinkage);
  316   Function *F = Function::Create(FT, Function::ExternalLinkage);
  726         *OldM, Type::getInt32Ty(C), false, GlobalValue::ExternalLinkage,
  735     auto *PersFn = Function::Create(FuncType, GlobalValue::ExternalLinkage,
unittests/Transforms/Utils/FunctionComparatorTest.cpp
   30                          GlobalValue::ExternalLinkage, "F", &M);
unittests/Transforms/Utils/IntegerDivisionTest.cpp
   30                                  GlobalValue::ExternalLinkage, "F", &M);
   60                                  GlobalValue::ExternalLinkage, "F", &M);
   90                                  GlobalValue::ExternalLinkage, "F", &M);
  120                                  GlobalValue::ExternalLinkage, "F", &M);
  151                                  GlobalValue::ExternalLinkage, "F", &M);
  181                                  GlobalValue::ExternalLinkage, "F", &M);
  211                                  GlobalValue::ExternalLinkage, "F", &M);
  241                                  GlobalValue::ExternalLinkage, "F", &M);
unittests/Transforms/Utils/LocalTest.cpp
   74                        GlobalValue::ExternalLinkage, "F"));
unittests/Transforms/Utils/SSAUpdaterBulkTest.cpp
   28                              GlobalValue::ExternalLinkage, "F", &M);
  115                              GlobalValue::ExternalLinkage, "F", &M);
unittests/Transforms/Utils/ValueMapperTest.cpp
   70       PtrTy, false, GlobalValue::ExternalLinkage, nullptr, "G0");
   72       PtrTy, false, GlobalValue::ExternalLinkage, nullptr, "G1");
  177       Function::Create(FTy, GlobalValue::ExternalLinkage, "F"));
  236       Function::Create(FTy, GlobalValue::ExternalLinkage, "F"));
  255       Function::Create(FTy, GlobalValue::ExternalLinkage, "F2"));
  271       Function::Create(FTy, GlobalValue::ExternalLinkage, "F"));
  290       Function::Create(FTy, GlobalValue::ExternalLinkage, "F"));
  332       Function::Create(FTy, GlobalValue::ExternalLinkage, "F"));