Lines Matching refs:GO

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