• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/

Lines Matching defs:GO

128     const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const {
129 TRACE("[SelectSectionForGlobal] GO(" << GO->getName() << ") ");
130 TRACE("input section(" << GO->getSection() << ") ");
132 TRACE((GO->hasPrivateLinkage() ? "private_linkage " : "")
133 << (GO->hasLocalLinkage() ? "local_linkage " : "")
134 << (GO->hasInternalLinkage() ? "internal " : "")
135 << (GO->hasExternalLinkage() ? "external " : "")
136 << (GO->hasCommonLinkage() ? "common_linkage " : "")
137 << (GO->hasCommonLinkage() ? "common " : "" )
144 if (EmitLutInText && GO->getName().startswith("switch.table")) {
145 if (const Function *Fn = getLutUsedFunction(GO))
146 return selectSectionForLookupTable(GO, TM, Fn);
149 if (isGlobalInSmallSection(GO, TM))
150 return selectSmallSectionForGlobal(GO, Kind, TM);
162 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GO, Kind, TM);
166 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const {
167 TRACE("[getExplicitSectionGlobal] GO(" << GO->getName() << ") from("
168 << GO->getSection() << ") ");
169 TRACE((GO->hasPrivateLinkage() ? "private_linkage " : "")
170 << (GO->hasLocalLinkage() ? "local_linkage " : "")
171 << (GO->hasInternalLinkage() ? "internal " : "")
172 << (GO->hasExternalLinkage() ? "external " : "")
173 << (GO->hasCommonLinkage() ? "common_linkage " : "")
174 << (GO->hasCommonLinkage() ? "common " : "" )
179 if (GO->hasSection()) {
180 StringRef Section = GO->getSection();
182 return getContext().getELFSection(GO->getSection(), ELF::SHT_PROGBITS,
185 return getContext().getELFSection(GO->getSection(), ELF::SHT_PROGBITS,
189 if (isGlobalInSmallSection(GO, TM))
190 return selectSmallSectionForGlobal(GO, Kind, TM);
194 return TargetLoweringObjectFileELF::getExplicitSectionGlobal(GO, Kind, TM);
199 bool HexagonTargetObjectFile::isGlobalInSmallSection(const GlobalObject *GO,
207 << SmallDataThreshold << ": \"" << GO->getName() << "\": ");
208 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO);
340 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const {
341 const Type *GTy = GO->getValueType();
342 unsigned Size = getSmallestAddressableSize(GTy, GO, TM);
368 Name.append(GO->getName());
395 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GO);
412 Name.append(GO->getName());
421 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GO, Kind, TM);
428 HexagonTargetObjectFile::getLutUsedFunction(const GlobalObject *GO) const {
430 for (auto U : GO->users()) {
448 const GlobalObject *GO, const TargetMachine &TM, const Function *Fn) const {