Lines Matching refs:GO
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()
144 if (const Function *Fn = getLutUsedFunction(GO)) in SelectSectionForGlobal()
145 return selectSectionForLookupTable(GO, TM, Fn); in SelectSectionForGlobal()
148 if (isGlobalInSmallSection(GO, TM)) in SelectSectionForGlobal()
149 return selectSmallSectionForGlobal(GO, Kind, TM); in SelectSectionForGlobal()
161 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GO, Kind, TM); in SelectSectionForGlobal()
165 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal() argument
166 TRACE("[getExplicitSectionGlobal] GO(" << GO->getName() << ") from(" in getExplicitSectionGlobal()
167 << GO->getSection() << ") "); in getExplicitSectionGlobal()
168 TRACE((GO->hasPrivateLinkage() ? "private_linkage " : "") in getExplicitSectionGlobal()
169 << (GO->hasLocalLinkage() ? "local_linkage " : "") in getExplicitSectionGlobal()
170 << (GO->hasInternalLinkage() ? "internal " : "") in getExplicitSectionGlobal()
171 << (GO->hasExternalLinkage() ? "external " : "") in getExplicitSectionGlobal()
172 << (GO->hasCommonLinkage() ? "common_linkage " : "") in getExplicitSectionGlobal()
173 << (GO->hasCommonLinkage() ? "common " : "" ) in getExplicitSectionGlobal()
178 if (GO->hasSection()) { in getExplicitSectionGlobal()
179 StringRef Section = GO->getSection(); in getExplicitSectionGlobal()
181 return getContext().getELFSection(GO->getSection(), ELF::SHT_PROGBITS, in getExplicitSectionGlobal()
184 return getContext().getELFSection(GO->getSection(), ELF::SHT_PROGBITS, in getExplicitSectionGlobal()
188 if (isGlobalInSmallSection(GO, TM)) in getExplicitSectionGlobal()
189 return selectSmallSectionForGlobal(GO, Kind, TM); in getExplicitSectionGlobal()
193 return TargetLoweringObjectFileELF::getExplicitSectionGlobal(GO, Kind, TM); in getExplicitSectionGlobal()
198 bool HexagonTargetObjectFile::isGlobalInSmallSection(const GlobalObject *GO, in isGlobalInSmallSection() argument
206 << SmallDataThreshold << ": \"" << GO->getName() << "\": "); in isGlobalInSmallSection()
207 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in isGlobalInSmallSection()
344 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in selectSmallSectionForGlobal() argument
345 const Type *GTy = GO->getValueType(); in selectSmallSectionForGlobal()
346 unsigned Size = getSmallestAddressableSize(GTy, GO, TM); in selectSmallSectionForGlobal()
372 Name.append(GO->getName()); in selectSmallSectionForGlobal()
399 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO); in selectSmallSectionForGlobal()
416 Name.append(GO->getName()); in selectSmallSectionForGlobal()
425 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GO, Kind, TM); in selectSmallSectionForGlobal()
432 HexagonTargetObjectFile::getLutUsedFunction(const GlobalObject *GO) const { in getLutUsedFunction()
434 for (const auto *U : GO->users()) { in getLutUsedFunction()
452 const GlobalObject *GO, const TargetMachine &TM, const Function *Fn) const { in selectSectionForLookupTable() argument