| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonTargetObjectFile.cpp | 127 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal() argument 128 TRACE("[SelectSectionForGlobal] GO(" << GO->getName() << ") "); in SelectSectionForGlobal() 129 TRACE("input section(" << GO->getSection() << ") "); in SelectSectionForGlobal() 131 TRACE((GO->hasPrivateLinkage() ? "private_linkage " : "") in SelectSectionForGlobal() 132 << (GO->hasLocalLinkage() ? "local_linkage " : "") in SelectSectionForGlobal() 133 << (GO->hasInternalLinkage() ? "internal " : "") in SelectSectionForGlobal() 134 << (GO->hasExternalLinkage() ? "external " : "") in SelectSectionForGlobal() 135 << (GO->hasCommonLinkage() ? "common_linkage " : "") in SelectSectionForGlobal() 136 << (GO->hasCommonLinkage() ? "common " : "" ) in SelectSectionForGlobal() 143 if (EmitLutInText && GO->getName().starts_with("switch.table")) { in SelectSectionForGlobal() [all …]
|
| H A D | HexagonTargetObjectFile.h | 22 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, 25 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, 29 bool isGlobalInSmallSection(const GlobalObject *GO, 39 const Function *getLutUsedFunction(const GlobalObject *GO) const; 48 MCSection *selectSmallSectionForGlobal(const GlobalObject *GO, 52 MCSection *selectSectionForLookupTable(const GlobalObject *GO,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
| H A D | LanaiTargetObjectFile.cpp | 47 const GlobalObject *GO, const TargetMachine &TM) const { in isGlobalInSmallSection() argument 48 if (GO == nullptr) return TM.getCodeModel() == CodeModel::Small; in isGlobalInSmallSection() 53 if (GO->isDeclaration() || GO->hasAvailableExternallyLinkage()) in isGlobalInSmallSection() 54 return isGlobalInSmallSectionImpl(GO, TM); in isGlobalInSmallSection() 56 return isGlobalInSmallSection(GO, TM, getKindForGlobal(GO, TM)); in isGlobalInSmallSection() 61 bool LanaiTargetObjectFile::isGlobalInSmallSection(const GlobalObject *GO, in isGlobalInSmallSection() argument 64 return isGlobalInSmallSectionImpl(GO, TM); in isGlobalInSmallSection() 71 const GlobalObject *GO, const TargetMachine &TM) const { in isGlobalInSmallSectionImpl() argument 72 const auto *GVA = dyn_cast<GlobalVariable>(GO); in isGlobalInSmallSectionImpl() 99 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal() argument [all …]
|
| H A D | LanaiTargetObjectFile.h | 19 bool isGlobalInSmallSection(const GlobalObject *GO, const TargetMachine &TM, 21 bool isGlobalInSmallSectionImpl(const GlobalObject *GO, 29 bool isGlobalInSmallSection(const GlobalObject *GO, 32 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsTargetObjectFile.cpp | 69 const GlobalObject *GO, const TargetMachine &TM) const { in IsGlobalInSmallSection() argument 73 if (GO->isDeclaration() || GO->hasAvailableExternallyLinkage()) in IsGlobalInSmallSection() 74 return IsGlobalInSmallSectionImpl(GO, TM); in IsGlobalInSmallSection() 76 return IsGlobalInSmallSection(GO, TM, getKindForGlobal(GO, TM)); in IsGlobalInSmallSection() 82 IsGlobalInSmallSection(const GlobalObject *GO, const TargetMachine &TM, in IsGlobalInSmallSection() argument 84 return IsGlobalInSmallSectionImpl(GO, TM) && in IsGlobalInSmallSection() 93 IsGlobalInSmallSectionImpl(const GlobalObject *GO, in IsGlobalInSmallSectionImpl() argument 103 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GO); in IsGlobalInSmallSectionImpl() 149 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal() argument 154 if (Kind.isBSS() && IsGlobalInSmallSection(GO, TM, Kind)) in SelectSectionForGlobal() [all …]
|
| H A D | MipsTargetObjectFile.h | 21 bool IsGlobalInSmallSection(const GlobalObject *GO, const TargetMachine &TM, 23 bool IsGlobalInSmallSectionImpl(const GlobalObject *GO, 31 bool IsGlobalInSmallSection(const GlobalObject *GO, 34 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | TargetLoweringObjectFileImpl.cpp | 302 if (auto *GO = dyn_cast<GlobalObject>(GV)) in getModuleMetadata() local 303 Used.insert(GO); in getModuleMetadata() 577 static const MCSymbolELF *getLinkedToSymbol(const GlobalObject *GO, in getLinkedToSymbol() argument 579 MDNode *MD = GO->getMetadata(LLVMContext::MD_associated); in getLinkedToSymbol() 633 getELFSectionNameForGlobal(const GlobalObject *GO, SectionKind Kind, in getELFSectionNameForGlobal() argument 638 getSectionPrefixForGlobal(Kind, TM.isLargeGlobalValue(GO)); in getELFSectionNameForGlobal() 643 Align Alignment = GO->getDataLayout().getPreferredAlign( in getELFSectionNameForGlobal() 644 cast<GlobalVariable>(GO)); in getELFSectionNameForGlobal() 656 if (const auto *F = dyn_cast<Function>(GO)) { in getELFSectionNameForGlobal() 673 } else if (const auto *GV = dyn_cast<GlobalVariable>(GO)) { in getELFSectionNameForGlobal() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetObjectFile.cpp | 21 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal() argument 22 if (Kind.isReadOnly() && AMDGPU::isReadOnlySegment(GO) && in SelectSectionForGlobal() 26 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GO, Kind, TM); in SelectSectionForGlobal() 30 const GlobalObject *GO, SectionKind SK, const TargetMachine &TM) const { in getExplicitSectionGlobal() argument 32 StringRef SectionName = GO->getSection(); in getExplicitSectionGlobal() 36 return TargetLoweringObjectFileELF::getExplicitSectionGlobal(GO, SK, TM); in getExplicitSectionGlobal()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
| H A D | AVRTargetObjectFile.cpp | 38 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal() argument 42 if (AVR::isProgramMemoryAddress(GO) && !GO->hasSection() && in SelectSectionForGlobal() 50 return Base::SelectSectionForGlobal(GO, Kind, TM); in SelectSectionForGlobal() 55 AVR::getAddressSpace(GO) != AVR::ProgramMemory) { in SelectSectionForGlobal() 62 switch (AVR::getAddressSpace(GO)) { in SelectSectionForGlobal() 81 return Base::SelectSectionForGlobal(GO, Kind, TM); in SelectSectionForGlobal()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMTargetObjectFile.cpp | 98 static bool isExecuteOnlyFunction(const GlobalObject *GO, SectionKind SK, in isExecuteOnlyFunction() argument 100 if (const Function *F = dyn_cast<Function>(GO)) in isExecuteOnlyFunction() 107 const GlobalObject *GO, SectionKind SK, const TargetMachine &TM) const { in getExplicitSectionGlobal() argument 109 if (isExecuteOnlyFunction(GO, SK, TM)) in getExplicitSectionGlobal() 112 return TargetLoweringObjectFileELF::getExplicitSectionGlobal(GO, SK, TM); in getExplicitSectionGlobal() 116 const GlobalObject *GO, SectionKind SK, const TargetMachine &TM) const { in SelectSectionForGlobal() argument 118 if (isExecuteOnlyFunction(GO, SK, TM)) in SelectSectionForGlobal() 121 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GO, SK, TM); in SelectSectionForGlobal()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ |
| H A D | TargetLoweringObjectFile.cpp | 227 SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalObject *GO, in getKindForGlobal() argument 229 assert(!GO->isDeclarationForLinker() && in getKindForGlobal() 233 if (isa<Function>(GO)) in getKindForGlobal() 237 if (isa<BasicBlock>(GO)) in getKindForGlobal() 241 const auto *GVar = cast<GlobalVariable>(GO); in getKindForGlobal() 349 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SectionForGlobal() argument 351 if (GO->hasSection()) in SectionForGlobal() 352 return getExplicitSectionGlobal(GO, Kind, TM); in SectionForGlobal() 354 if (auto *GVar = dyn_cast<GlobalVariable>(GO)) { in SectionForGlobal() 360 return getExplicitSectionGlobal(GO, Kind, TM); in SectionForGlobal() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetObjectFile.cpp | 70 const GlobalObject *GO, const TargetMachine &TM) const { in isGlobalInSmallSection() argument 72 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GO); in isGlobalInSmallSection() 106 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal() argument 108 if (isGlobalInSmallSection(GO, TM)) { in SelectSectionForGlobal() 112 bool EmitUniquedSection = TM.getDataSections() && !GO->hasSection(); in SelectSectionForGlobal() 117 Name.append(GO->getName()); in SelectSectionForGlobal() 128 Name.append(GO->getName()); in SelectSectionForGlobal() 138 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GO, Kind, TM); in SelectSectionForGlobal()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | TargetLoweringObjectFileImpl.h | 75 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, 78 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, 148 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, 151 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, 191 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, 194 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, 238 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, 241 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, 269 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, 277 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | FunctionImportUtils.cpp | 338 auto *GO = dyn_cast<GlobalObject>(&GV); in processGlobalForThinLTO() local 339 if (GO && GO->isDeclarationForLinker() && GO->hasComdat()) { in processGlobalForThinLTO() 343 assert(GO->hasAvailableExternallyLinkage() && in processGlobalForThinLTO() 345 GO->setComdat(nullptr); in processGlobalForThinLTO() 360 for (auto &GO : M.global_objects()) in processGlobalsForThinLTO() local 361 if (auto *C = GO.getComdat()) { in processGlobalsForThinLTO() 364 GO.setComdat(Replacement->second); in processGlobalsForThinLTO()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetObjectFile.cpp | 164 static bool isExecuteOnlyFunction(const GlobalObject *GO, SectionKind Kind, in isExecuteOnlyFunction() argument 166 if (const Function *F = dyn_cast<Function>(GO)) in isExecuteOnlyFunction() 173 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal() argument 175 if (isExecuteOnlyFunction(GO, Kind, TM)) in getExplicitSectionGlobal() 178 return TargetLoweringObjectFileELF::getExplicitSectionGlobal(GO, Kind, TM); in getExplicitSectionGlobal() 182 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal() argument 184 if (isExecuteOnlyFunction(GO, Kind, TM)) in SelectSectionForGlobal() 187 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GO, Kind, TM); in SelectSectionForGlobal()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZSubtarget.cpp | 81 if (const auto *GO = dyn_cast<GlobalObject>(GV)) { in isAddressedViaADA() local 86 if (auto *GV = dyn_cast<GlobalVariable>(GO)) in isAddressedViaADA() 91 if (GO->isDeclaration()) { in isAddressedViaADA() 96 if (GO->hasAvailableExternallyLinkage()) { in isAddressedViaADA() 101 GO, TLInfo.getTargetMachine()); in isAddressedViaADA()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Comdat.cpp | 30 void Comdat::addUser(GlobalObject *GO) { Users.insert(GO); } in addUser() argument 32 void Comdat::removeUser(GlobalObject *GO) { Users.erase(GO); } in removeUser() argument
|
| H A D | Globals.cpp | 194 if (const GlobalObject *GO = GA->getAliaseeObject()) in getSection() local 195 return GO->getSection(); in getSection() 204 if (const GlobalObject *GO = GA->getAliaseeObject()) in getComdat() local 205 return const_cast<GlobalObject *>(GO)->getComdat(); in getComdat() 383 if (auto *GO = dyn_cast<GlobalObject>(C)) { in findBaseObject() local 384 Op(*GO); in findBaseObject() 385 return GO; in findBaseObject() 424 auto *GO = dyn_cast<GlobalObject>(this); in isAbsoluteSymbolRef() local 425 if (!GO) in isAbsoluteSymbolRef() 428 return GO->getMetadata(LLVMContext::MD_absolute_symbol); in isAbsoluteSymbolRef() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreTargetObjectFile.cpp | 98 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal() argument 99 StringRef SectionName = GO->getSection(); in getExplicitSectionGlobal() 109 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal() argument 111 bool UseCPRel = GO->hasLocalLinkage(); in SelectSectionForGlobal() 120 Type *ObjType = GO->getValueType(); in SelectSectionForGlobal() 121 auto &DL = GO->getDataLayout(); in SelectSectionForGlobal()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | ThinLTOBitcodeWriter.cpp | 94 for (auto &GO : ExportM.global_objects()) in promoteInternals() local 95 if (auto *C = GO.getComdat()) { in promoteInternals() 98 GO.setComdat(Replacement->second); in promoteInternals() 157 for (GlobalObject &GO : M.global_objects()) { in promoteTypeIds() 159 GO.getMetadata(LLVMContext::MD_type, MDs); in promoteTypeIds() 161 GO.eraseMetadata(LLVMContext::MD_type); in promoteTypeIds() 165 GO.addMetadata(LLVMContext::MD_type, *MD); in promoteTypeIds() 168 GO.addMetadata( in promoteTypeIds() 307 auto HasTypeMetadata = [](const GlobalObject *GO) { in splitAndWriteThinLTOBitcode() argument 308 if (MDNode *MD = GO->getMetadata(LLVMContext::MD_associated)) in splitAndWriteThinLTOBitcode() [all …]
|
| H A D | GlobalDCE.cpp | 143 if (auto GO = dyn_cast<GlobalObject>(&GV)) { in ScanVTables() local 144 GlobalObject::VCallVisibility TypeVis = GO->getVCallVisibility(); in ScanVTables() 277 for (GlobalObject &GO : M.global_objects()) { in run() 278 GO.removeDeadConstantUsers(); in run() 282 if (!GO.isDeclaration()) in run() 283 if (!GO.isDiscardableIfUnused()) in run() 284 MarkLive(GO); in run() 286 UpdateGVDependencies(GO); in run()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCTargetObjectFile.cpp | 24 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal() argument 40 const auto *GVar = dyn_cast<GlobalVariable>(GO); in SelectSectionForGlobal() 47 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GO, Kind, TM); in SelectSectionForGlobal()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Target/ |
| H A D | TargetLoweringObjectFile.h | 129 static SectionKind getKindForGlobal(const GlobalObject *GO, 135 MCSection *SectionForGlobal(const GlobalObject *GO, SectionKind Kind, 141 MCSection *SectionForGlobal(const GlobalObject *GO, 166 getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, 286 getSectionForExternalReference(const GlobalObject *GO, in getSectionForExternalReference() argument 307 virtual MCSection *SelectSectionForGlobal(const GlobalObject *GO,
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | README-P2P | 68 to be used for some operations (mainly WPS activation in GO). This may 145 is requesting an already running GO to prepare for a new client. This is 148 out whether the peer device is operating as a GO and if so, use 149 join-a-group style PD instead of GO Negotiation style PD. 170 group where this device was the GO. The previously used parameters will 171 then be used if the local end becomes the GO in GO Negotiation (which 175 client. It skips the GO Negotiation part. This will send a Provision 176 Discovery Request message to the target GO before associating for WPS 180 device without actually starting GO Negotiation (i.e., the peer is 181 expected to initiate GO Negotiation). This is mainly for testing [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Linker/ |
| H A D | LinkModules.cpp | 507 if (GlobalObject *GO = GA.getAliaseeObject(); GO && GO->getComdat()) in run() local 508 AliasedGlobals.insert(GO); in run() 511 for (GlobalObject *GO : C->getUsers()) in run() 512 if (GO->hasPrivateLinkage() && !AliasedGlobals.contains(GO)) in run() 513 ToUpdate.push_back(GO); in run() 514 for (GlobalObject *GO : ToUpdate) { in run() 515 GO->setLinkage(GlobalValue::AvailableExternallyLinkage); in run() 516 GO->setComdat(nullptr); in run()
|