| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| FunctionImportUtils.cpp | 65 auto Linkage = Summary->linkage(); 66 if (!GlobalValue::isLocalLinkage(Linkage)) { 113 // Otherwise, if we aren't importing, no linkage change is needed. 149 // For weak_odr linkage, there is a guarantee that all copies will be 159 // It would be incorrect to import an appending linkage variable, 183 // Linkage stays external_weak. 187 // Linkage stays common on definitions. 192 llvm_unreachable("unknown linkage type"); 241 // matches one in this module (e.g. weak or appending linkage) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/MC/MCParser/ |
| WasmAsmParser.cpp | 128 StringRef Linkage; 129 if (Parser->parseIdentifier(Linkage)) 130 return TokError("invalid linkage"); 131 if (Linkage != "comdat") 132 return TokError("Linkage must be 'comdat'");
|
| ELFAsmParser.cpp | 446 StringRef Linkage; 447 if (getParser().parseIdentifier(Linkage)) 448 return TokError("invalid linkage"); 449 if (Linkage != "comdat") 450 return TokError("Linkage must be 'comdat'");
|
| /src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| CGCXX.cpp | 115 // The alias will use the linkage of the referent. If we can't 116 // support aliases with that linkage, fail. 117 llvm::GlobalValue::LinkageTypes Linkage = getFunctionLinkage(AliasDecl); 119 // We can't use an alias if the linkage is not valid for one. 120 if (!llvm::GlobalAlias::isValidLinkage(Linkage)) 148 if (llvm::GlobalValue::isDiscardableIfUnused(Linkage) && 152 // linkage "AvailableExternally". In libc++, some classes also define 165 if (llvm::GlobalValue::isWeakForLinker(Linkage) && 184 auto *Alias = llvm::GlobalAlias::create(AliasValueType, 0, Linkage, "",
|
| CGCUDANV.cpp | 175 llvm::GlobalValue::LinkageTypes &Linkage) override; 797 auto Linkage = CudaGpuBinary ? llvm::GlobalValue::InternalLinkage : 807 Linkage, 812 if (Linkage != llvm::GlobalValue::InternalLinkage) 984 const VarDecl *D, llvm::GlobalValue::LinkageTypes &Linkage) { 1004 Linkage = llvm::GlobalValue::InternalLinkage; 1106 // variables with LLVM private or internal linkage need not be added.
|
| CGVTables.cpp | 636 // We don't want to copy the linkage of the vtable exactly because we still 650 // The RTTI component may not always be emitted in the same linkage unit as 858 llvm::GlobalVariable::LinkageTypes Linkage, 891 // linkage construction vtable. The ABI only requires complete-object vtables 893 if (Linkage == llvm::GlobalVariable::AvailableExternallyLinkage) 894 Linkage = llvm::GlobalVariable::InternalLinkage; 900 CGM.CreateOrReplaceCXXRuntimeVariable(Name, VTType, Linkage, Align); 932 // private and create a public alias with the same visibility and linkage as 953 auto Linkage = VTable->getLinkage(); 954 assert(llvm::GlobalAlias::isValidLinkage(Linkage) & [all...] |
| CGOpenMPRuntime.h | 319 llvm::GlobalValue::LinkageTypes Linkage); 640 llvm::GlobalValue::LinkageTypes Linkage; 651 llvm::GlobalValue::LinkageTypes Linkage) 653 VarSize(VarSize), Linkage(Linkage) { 659 llvm::GlobalValue::LinkageTypes getLinkage() const { return Linkage; } 660 void setLinkage(llvm::GlobalValue::LinkageTypes LT) { Linkage = LT; } 676 llvm::GlobalValue::LinkageTypes Linkage); 797 /// linkage CommonLinkage by default and is initialized by null value.
|
| CodeGenModule.cpp | 204 // that this symbol is of internal linkage type. The "__uniq" is the 1199 // Returns true if GD is a function decl with internal linkage and 1235 // Check if the module name hash should be appended for internal linkage 1238 // internal linkage function together. The unique suffix should only be 1456 GVALinkage Linkage = getContext().GetGVALinkageForFunction(D); 1459 return getCXXABI().getCXXDestructorLinkage(Linkage, Dtor, GD.getDtorType()); 1470 return getLLVMLinkageForDeclarator(D, Linkage, /*IsConstantVariable=*/false); 2034 // Set linkage and visibility in case we never see a definition. 2036 // Don't set internal linkage on declarations. 2038 // separate linkage types for this [all...] |
| ItaniumCXXABI.cpp | 214 // emitted with external linkage or as linkonce if they are inline and used. 288 // linkage together with vtables when needed. 404 /// Return the required visibility status for the given type and linkage in 408 llvm::GlobalValue::LinkageTypes Linkage) const; 1745 llvm::GlobalVariable::LinkageTypes Linkage = CGM.getVTableLinkage(RD); 1753 llvm::GlobalValue::isLocalLinkage(Linkage)); 1756 // Set the correct linkage. 1757 VTable->setLinkage(Linkage); 2379 // If we have a global variable with internal linkage and thread-safe statics 2415 // Just absorb linkage and visibility from the guarded variable [all...] |
| MicrosoftCXXABI.cpp | 229 getCXXDestructorLinkage(GVALinkage Linkage, const CXXDestructorDecl *Dtor, 329 llvm::GlobalVariable::LinkageTypes Linkage); 364 llvm::GlobalValue::LinkageTypes Linkage = 369 CGM.getModule(), VDispMapTy, /*isConstant=*/true, Linkage, 379 GVALinkage Linkage = 382 if (Linkage == GVA_Internal) 1340 GVALinkage Linkage, const CXXDestructorDecl *Dtor, CXXDtorType DT) const { 1343 if (Linkage == GVA_Internal) 1350 return CGM.getLLVMLinkageForDeclarator(Dtor, Linkage, 1355 // the linkage if a DLL attribute is present [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
| ModuleSummaryIndexYAML.h | 139 unsigned Linkage, Visibility; 180 io.mapOptional("Linkage", summary.Linkage); 227 static_cast<GlobalValue::LinkageTypes>(FSum.Linkage), 249 FSum->flags().Linkage, FSum->flags().Visibility,
|
| ModuleSummaryIndex.h | 293 /// Group flags (Linkage, NotEligibleToImport, etc.) as a bitfield. 295 /// The linkage type of the associated global value. 297 /// One use is to flag values that have local linkage types and need to 300 /// In the future this will be used to update and optimize linkage 302 unsigned Linkage : 4; 319 /// within the same linkage unit. 334 explicit GVFlags(GlobalValue::LinkageTypes Linkage, 338 : Linkage(Linkage), Visibility(Visibility), 399 /// Return linkage type recorded for this global value 400 GlobalValue::LinkageTypes linkage() const { function in class:llvm::CalleeInfo::GlobalValueSummary [all...] |
| /src/external/apache2/llvm/dist/llvm/bindings/python/llvm/ |
| core.py | 100 class Linkage(LLVMEnumeration): 101 """Represents an individual Linkage enumeration.""" 106 super(Linkage, self).__init__(name, value) 610 (Linkage, enumerations.Linkages),
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
| ThinLTOBitcodeWriter.cpp | 36 // Promote each local-linkage entity defined by ExportM and used by ImportM by 321 // Reset the linkage of all functions eligible for virtual constant 357 CfiFunctionLinkage Linkage; 359 Linkage = CFL_Definition; 361 Linkage = CFL_WeakDeclaration; 363 Linkage = CFL_Declaration; 365 llvm::ConstantInt::get(Type::getInt8Ty(Ctx), Linkage)));
|
| LowerTypeTests.cpp | 1892 CfiFunctionLinkage Linkage; 1893 MDNode *FuncMD; // {name, linkage, type[, type...]} 1911 CfiFunctionLinkage Linkage = static_cast<CfiFunctionLinkage>( 1923 if (!CrossDsoCfi || Linkage != CFL_Definition) 1929 if (GVS->isLive() && !GlobalValue::isLocalLinkage(GVS->linkage())) 1935 auto P = ExportedFunctions.insert({FunctionName, {Linkage, FuncMD}}); 1936 if (!P.second && P.first->second.Linkage != CFL_Definition) 1937 P.first->second = {Linkage, FuncMD}; 1942 CfiFunctionLinkage Linkage = P.second.Linkage; [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| GlobalMerge.cpp | 9 // This pass merges globals with internal linkage into one. This way all the 134 cl::desc("Enable global merge pass on external linkage")); 155 /// Whether we should merge global variables that have external linkage. 498 // If merged variables doesn't have external linkage, we needn't to expose 500 GlobalValue::LinkageTypes Linkage = HasExternal 507 // On Darwin external linkage needs to be preserved, otherwise 509 // variables. If they have external linkage, use the symbol name 517 auto MergedLinkage = IsMachO ? Linkage : GlobalValue::PrivateLinkage; 527 GlobalValue::LinkageTypes Linkage = Globals[k]->getLinkage(); 547 // When the linkage is not internal we must emit an alias for the origina [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/AsmParser/ |
| LLParser.cpp | 626 unsigned Linkage, Visibility, DLLStorageClass; 630 if (parseOptionalLinkage(Linkage, HasLinkage, Visibility, DLLStorageClass, 636 return parseGlobal(Name, NameLoc, Linkage, HasLinkage, Visibility, 639 return parseIndirectSymbol(Name, NameLoc, Linkage, Visibility, 655 unsigned Linkage, Visibility, DLLStorageClass; 660 parseOptionalLinkage(Linkage, HasLinkage, Visibility, DLLStorageClass, 666 return parseGlobal(Name, NameLoc, Linkage, HasLinkage, Visibility, 669 return parseIndirectSymbol(Name, NameLoc, Linkage, Visibility, 971 GlobalValue::LinkageTypes Linkage = (GlobalValue::LinkageTypes) L; 973 if(IsAlias && !GlobalAlias::isValidLinkage(Linkage)) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/LTO/ |
| LTO.cpp | 238 // Include the hash for the linkage type to reflect internalization and weak 241 GlobalValue::LinkageTypes Linkage = GS.second->linkage(); 243 ArrayRef<uint8_t>((const uint8_t *)&Linkage, sizeof(Linkage))); 333 GlobalValue::LinkageTypes OriginalLinkage = S->linkage(); 334 // Ignore local and appending linkage values since the linker 337 GlobalValue::isAppendingLinkage(S->linkage())) 377 if (S->linkage() != OriginalLinkage) 378 recordNewLinkage(S->modulePath(), VI.getGUID(), S->linkage()); [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
| SanitizerCoverage.cpp | 335 GlobalValue::LinkageTypes Linkage = TargetTriple.isOSBinFormatCOFF() 339 new GlobalVariable(M, Ty->getPointerElementType(), false, Linkage, 343 new GlobalVariable(M, Ty->getPointerElementType(), false, Linkage, 381 // this, give the constructors weak ODR linkage and ensure the linker knows
|
| InstrProfiling.cpp | 771 // Check the linkage 777 // A function marked 'alwaysinline' with available_externally linkage can't 791 // Inline virtual functions have linkeOnceODR linkage. When a key method 824 // Match the linkage and visibility of the name global. COFF supports using 827 GlobalValue::LinkageTypes Linkage = NamePtr->getLinkage(); 830 Linkage = GlobalValue::InternalLinkage; 848 Linkage = GlobalValue::LinkOnceODRLinkage; 874 new GlobalVariable(*M, CounterTy, false, Linkage, 882 CounterPtr->setLinkage(Linkage); 896 new GlobalVariable(*M, ValuesTy, false, Linkage, [all...] |
| AddressSanitizer.cpp | 2113 // linkage to internal linkage so that a symbol table entry is emitted. This 2132 auto Linkage = TargetTriple.isOSBinFormatMachO() 2136 M, Initializer->getType(), false, Linkage, Initializer, 2221 // Common linkage ensures that there is only one global per shared library. 2295 // common linkage ensures that there is only one global per shared library. 2423 GlobalValue::LinkageTypes Linkage = G->getLinkage(); 2424 if (G->isConstant() && Linkage == GlobalValue::PrivateLinkage) 2425 Linkage = GlobalValue::InternalLinkage; 2427 M, NewTy, G->isConstant(), Linkage, NewInitializer, "", G [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Serialization/ |
| ASTWriterDecl.cpp | 2106 Abv->Add(BitCodeAbbrevOp(0)); // Linkage 2195 Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 3)); // Linkage 2250 Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 3)); // Linkage 2446 Optional<GVALinkage> Linkage; 2453 Linkage = Writer->Context->GetGVALinkageForFunction(FD); 2454 ModulesCodegen = *Linkage == GVA_StrongExternal; 2463 if (!Linkage) 2464 Linkage = Writer->Context->GetGVALinkageForFunction(FD); 2466 *Linkage != GVA_Internal && *Linkage != GVA_AvailableExternally [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/BPF/ |
| BTFDebug.cpp | 1158 // constant with private linkage and if it won't be in .rodata.str<#> 1194 auto Linkage = Global.getLinkage(); 1195 if (Linkage != GlobalValue::InternalLinkage && 1196 Linkage != GlobalValue::ExternalLinkage && 1197 Linkage != GlobalValue::WeakAnyLinkage && 1198 Linkage != GlobalValue::WeakODRLinkage && 1199 Linkage != GlobalValue::ExternalWeakLinkage) 1203 if (Linkage == GlobalValue::InternalLinkage) {
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/BinaryFormat/ |
| Dwarf.h | 575 StringRef GDBIndexEntryLinkageString(GDBIndexEntryLinkage Linkage); 717 GDBIndexEntryLinkage Linkage; 718 PubIndexEntryDescriptor(GDBIndexEntryKind Kind, GDBIndexEntryLinkage Linkage) 719 : Kind(Kind), Linkage(Linkage) {} 721 : Kind(Kind), Linkage(GIEL_EXTERNAL) {} 725 Linkage(static_cast<GDBIndexEntryLinkage>((Value & LINKAGE_MASK) >> 728 return Kind << KIND_OFFSET | Linkage << LINKAGE_OFFSET;
|
| /src/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/ |
| AsmPrinter.cpp | 434 GlobalValue::LinkageTypes Linkage = GV->getLinkage(); 435 switch (Linkage) { 470 llvm_unreachable("Unknown linkage type!"); 654 // Emit the linkage here. 1607 // point, all the extra label is emitted, we just have to emit linkage for 1614 // If it's a function, also emit linkage for aliases of function entry 1627 assert(GIS.hasLocalLinkage() && "Invalid alias or ifunc linkage"); 1714 // Emit linkage(XCOFF) and visibility info for declarations 1738 // Emit linkage for the function entry point. 1741 // Emit linkage for the function descriptor [all...] |