• Home
  • Raw
  • Download

Lines Matching refs:Kind

174 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,  in getExplicitSectionGlobal()  argument
179 Kind = getELFKindForNamedSection(SectionName, Kind); in getExplicitSectionGlobal()
182 getELFSectionType(SectionName, Kind), in getExplicitSectionGlobal()
183 getELFSectionFlags(Kind), Kind); in getExplicitSectionGlobal()
188 static const char *getSectionPrefixForGlobal(SectionKind Kind) { in getSectionPrefixForGlobal() argument
189 if (Kind.isText()) return ".text."; in getSectionPrefixForGlobal()
190 if (Kind.isReadOnly()) return ".rodata."; in getSectionPrefixForGlobal()
191 if (Kind.isBSS()) return ".bss."; in getSectionPrefixForGlobal()
193 if (Kind.isThreadData()) return ".tdata."; in getSectionPrefixForGlobal()
194 if (Kind.isThreadBSS()) return ".tbss."; in getSectionPrefixForGlobal()
196 if (Kind.isDataNoRel()) return ".data."; in getSectionPrefixForGlobal()
197 if (Kind.isDataRelLocal()) return ".data.rel.local."; in getSectionPrefixForGlobal()
198 if (Kind.isDataRel()) return ".data.rel."; in getSectionPrefixForGlobal()
199 if (Kind.isReadOnlyWithRelLocal()) return ".data.rel.ro.local."; in getSectionPrefixForGlobal()
201 assert(Kind.isReadOnlyWithRel() && "Unknown section kind"); in getSectionPrefixForGlobal()
207 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, in SelectSectionForGlobal() argument
212 if (Kind.isText()) in SelectSectionForGlobal()
220 !Kind.isCommon()) { in SelectSectionForGlobal()
222 Prefix = getSectionPrefixForGlobal(Kind); in SelectSectionForGlobal()
228 unsigned Flags = getELFSectionFlags(Kind); in SelectSectionForGlobal()
235 getELFSectionType(Name.str(), Kind), in SelectSectionForGlobal()
236 Flags, Kind, 0, Group); in SelectSectionForGlobal()
239 if (Kind.isText()) return TextSection; in SelectSectionForGlobal()
241 if (Kind.isMergeable1ByteCString() || in SelectSectionForGlobal()
242 Kind.isMergeable2ByteCString() || in SelectSectionForGlobal()
243 Kind.isMergeable4ByteCString()) { in SelectSectionForGlobal()
252 if (Kind.isMergeable2ByteCString()) in SelectSectionForGlobal()
254 else if (Kind.isMergeable4ByteCString()) in SelectSectionForGlobal()
257 assert(Kind.isMergeable1ByteCString() && "unknown string width"); in SelectSectionForGlobal()
265 Kind); in SelectSectionForGlobal()
268 if (Kind.isMergeableConst()) { in SelectSectionForGlobal()
269 if (Kind.isMergeableConst4() && MergeableConst4Section) in SelectSectionForGlobal()
271 if (Kind.isMergeableConst8() && MergeableConst8Section) in SelectSectionForGlobal()
273 if (Kind.isMergeableConst16() && MergeableConst16Section) in SelectSectionForGlobal()
278 if (Kind.isReadOnly()) return ReadOnlySection; in SelectSectionForGlobal()
280 if (Kind.isThreadData()) return TLSDataSection; in SelectSectionForGlobal()
281 if (Kind.isThreadBSS()) return TLSBSSSection; in SelectSectionForGlobal()
286 if (Kind.isBSS() || Kind.isCommon()) return BSSSection; in SelectSectionForGlobal()
288 if (Kind.isDataNoRel()) return DataSection; in SelectSectionForGlobal()
289 if (Kind.isDataRelLocal()) return DataRelLocalSection; in SelectSectionForGlobal()
290 if (Kind.isDataRel()) return DataRelSection; in SelectSectionForGlobal()
291 if (Kind.isReadOnlyWithRelLocal()) return DataRelROLocalSection; in SelectSectionForGlobal()
293 assert(Kind.isReadOnlyWithRel() && "Unknown section kind"); in SelectSectionForGlobal()
301 getSectionForConstant(SectionKind Kind) const { in getSectionForConstant()
302 if (Kind.isMergeableConst4() && MergeableConst4Section) in getSectionForConstant()
304 if (Kind.isMergeableConst8() && MergeableConst8Section) in getSectionForConstant()
306 if (Kind.isMergeableConst16() && MergeableConst16Section) in getSectionForConstant()
308 if (Kind.isReadOnly()) in getSectionForConstant()
311 if (Kind.isReadOnlyWithRelLocal()) return DataRelROLocalSection; in getSectionForConstant()
312 assert(Kind.isReadOnlyWithRel() && "Unknown section kind"); in getSectionForConstant()
432 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, in getExplicitSectionGlobal() argument
450 getContext().getMachOSection(Segment, Section, TAA, StubSize, Kind); in getExplicitSectionGlobal()
471 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, in SelectSectionForGlobal() argument
475 if (Kind.isThreadBSS()) return TLSBSSSection; in SelectSectionForGlobal()
476 if (Kind.isThreadData()) return TLSDataSection; in SelectSectionForGlobal()
478 if (Kind.isText()) in SelectSectionForGlobal()
484 if (Kind.isReadOnly()) in SelectSectionForGlobal()
490 if (Kind.isMergeable1ByteCString() && in SelectSectionForGlobal()
497 if (Kind.isMergeable2ByteCString() && !GV->hasExternalLinkage() && in SelectSectionForGlobal()
501 if (Kind.isMergeableConst()) { in SelectSectionForGlobal()
502 if (Kind.isMergeableConst4()) in SelectSectionForGlobal()
504 if (Kind.isMergeableConst8()) in SelectSectionForGlobal()
506 if (Kind.isMergeableConst16() && SixteenByteConstantSection) in SelectSectionForGlobal()
512 if (Kind.isReadOnly()) in SelectSectionForGlobal()
517 if (Kind.isReadOnlyWithRel()) in SelectSectionForGlobal()
522 if (Kind.isBSSExtern()) in SelectSectionForGlobal()
527 if (Kind.isBSSLocal()) in SelectSectionForGlobal()
535 TargetLoweringObjectFileMachO::getSectionForConstant(SectionKind Kind) const { in getSectionForConstant()
538 if (Kind.isDataRel() || Kind.isReadOnlyWithRel()) in getSectionForConstant()
541 if (Kind.isMergeableConst4()) in getSectionForConstant()
543 if (Kind.isMergeableConst8()) in getSectionForConstant()
545 if (Kind.isMergeableConst16() && SixteenByteConstantSection) in getSectionForConstant()
668 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, in getExplicitSectionGlobal() argument
671 getCOFFSectionFlags(Kind), in getExplicitSectionGlobal()
672 Kind); in getExplicitSectionGlobal()
675 static const char *getCOFFSectionPrefixForUniqueGlobal(SectionKind Kind) { in getCOFFSectionPrefixForUniqueGlobal() argument
676 if (Kind.isText()) in getCOFFSectionPrefixForUniqueGlobal()
678 if (Kind.isBSS ()) in getCOFFSectionPrefixForUniqueGlobal()
680 if (Kind.isThreadLocal()) in getCOFFSectionPrefixForUniqueGlobal()
682 if (Kind.isWriteable()) in getCOFFSectionPrefixForUniqueGlobal()
689 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, in SelectSectionForGlobal() argument
695 const char *Prefix = getCOFFSectionPrefixForUniqueGlobal(Kind); in SelectSectionForGlobal()
700 unsigned Characteristics = getCOFFSectionFlags(Kind); in SelectSectionForGlobal()
705 COFF::IMAGE_COMDAT_SELECT_ANY, Kind); in SelectSectionForGlobal()
708 if (Kind.isText()) in SelectSectionForGlobal()
711 if (Kind.isThreadLocal()) in SelectSectionForGlobal()