Lines Matching refs:GO
50 const GlobalObject *GO, const TargetMachine &TM) const { in isGlobalInSmallSection() argument
51 if (GO == nullptr) return TM.getCodeModel() == CodeModel::Small; in isGlobalInSmallSection()
56 if (GO->isDeclaration() || GO->hasAvailableExternallyLinkage()) in isGlobalInSmallSection()
57 return isGlobalInSmallSectionImpl(GO, TM); in isGlobalInSmallSection()
59 return isGlobalInSmallSection(GO, TM, getKindForGlobal(GO, TM)); in isGlobalInSmallSection()
64 bool LanaiTargetObjectFile::isGlobalInSmallSection(const GlobalObject *GO, in isGlobalInSmallSection() argument
67 return isGlobalInSmallSectionImpl(GO, TM); in isGlobalInSmallSection()
74 const GlobalObject *GO, const TargetMachine &TM) const { in isGlobalInSmallSectionImpl() argument
75 const auto *GVA = dyn_cast<GlobalVariable>(GO); in isGlobalInSmallSectionImpl()
102 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal() argument
104 if (Kind.isBSS() && isGlobalInSmallSection(GO, TM, Kind)) in SelectSectionForGlobal()
106 if (Kind.isData() && isGlobalInSmallSection(GO, TM, Kind)) in SelectSectionForGlobal()
110 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GO, Kind, TM); in SelectSectionForGlobal()