Home
last modified time | relevance | path

Searched refs:SectionName (Results 1 – 25 of 120) sorted by relevance

12345

/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/
H A DXtensaTargetStreamer.cpp27 std::string SectionName; in getLiteralSectionName() local
29 SectionName = CSectionName.substr(0, Pos); in getLiteralSectionName()
32 SectionName += ".text"; in getLiteralSectionName()
37 SectionName += ".literal"; in getLiteralSectionName()
38 SectionName += CSectionName; in getLiteralSectionName()
40 SectionName = CSectionName; in getLiteralSectionName()
41 SectionName += ".literal"; in getLiteralSectionName()
43 return SectionName; in getLiteralSectionName()
89 std::string SectionName = getLiteralSectionName(CS->getName()); in emitLiteral() local
92 SectionName, ELF::SHT_PROGBITS, ELF::SHF_EXECINSTR | ELF::SHF_ALLOC); in emitLiteral()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DELFAsmParser.cpp132 bool parseSectionName(StringRef &SectionName);
220 bool ELFAsmParser::parseSectionName(StringRef &SectionName) { in parseSectionName() argument
227 SectionName = getTok().getIdentifier(); in parseSectionName()
250 SectionName = StringRef(FirstLoc.getPointer(), Size); in parseSectionName()
474 static bool hasPrefix(StringRef SectionName, StringRef Prefix) { in hasPrefix() argument
475 return SectionName.consume_front(Prefix) && in hasPrefix()
476 (SectionName.empty() || SectionName[0] == '.'); in hasPrefix()
479 static bool allowSectionTypeMismatch(const Triple &TT, StringRef SectionName, in allowSectionTypeMismatch() argument
485 return SectionName == ".eh_frame" && Type == ELF::SHT_PROGBITS; in allowSectionTypeMismatch()
491 return SectionName.starts_with(".debug_") && Type == ELF::SHT_PROGBITS; in allowSectionTypeMismatch()
[all …]
H A DCOFFMasmParser.cpp38 bool parseSectionSwitch(StringRef SectionName, unsigned Characteristics);
40 bool parseSectionSwitch(StringRef SectionName, unsigned Characteristics,
213 bool COFFMasmParser::parseSectionSwitch(StringRef SectionName, in parseSectionSwitch() argument
215 return parseSectionSwitch(SectionName, Characteristics, "", in parseSectionSwitch()
219 bool COFFMasmParser::parseSectionSwitch(StringRef SectionName, in parseSectionSwitch() argument
228 MCSection *Section = getContext().getCOFFSection(SectionName, Characteristics, in parseSectionSwitch()
243 StringRef SectionName = SegmentName; in parseDirectiveSegment() local
249 SectionName = ".text"; in parseDirectiveSegment()
251 SectionName = in parseDirectiveSegment()
309 SectionName = getTok().getStringContents(); in parseDirectiveSegment()
[all …]
H A DCOFFAsmParser.cpp44 bool parseSectionName(StringRef &SectionName);
45 bool parseSectionFlags(StringRef SectionName, StringRef FlagsString,
166 bool COFFAsmParser::parseSectionFlags(StringRef SectionName, in parseSectionFlags() argument
272 MCSectionCOFF::isImplicitlyDiscardable(SectionName)) in parseSectionFlags()
341 bool COFFAsmParser::parseSectionName(StringRef &SectionName) { in parseSectionName() argument
345 SectionName = getTok().getIdentifier(); in parseSectionName()
371 StringRef SectionName; in parseSectionArguments() local
373 if (parseSectionName(SectionName)) in parseSectionArguments()
389 if (parseSectionFlags(SectionName, FlagsStr, &Flags)) in parseSectionArguments()
429 parseSectionSwitch(SectionName, Flags, COMDATSymName, Type, UniqueID); in parseSectionArguments()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCAsmInfo.cpp62 bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const { in shouldOmitSectionDirective()
63 return SectionName == ".hsatext" || SectionName == ".hsadata_global_agent" || in shouldOmitSectionDirective()
64 SectionName == ".hsadata_global_program" || in shouldOmitSectionDirective()
65 SectionName == ".hsarodata_readonly_agent" || in shouldOmitSectionDirective()
66 MCAsmInfo::shouldOmitSectionDirective(SectionName); in shouldOmitSectionDirective()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DDWARFRecordSectionSplitter.cpp17 DWARFRecordSectionSplitter::DWARFRecordSectionSplitter(StringRef SectionName) in DWARFRecordSectionSplitter() argument
18 : SectionName(SectionName) {} in DWARFRecordSectionSplitter()
21 auto *Section = G.findSectionByName(SectionName); in operator ()()
25 dbgs() << "DWARFRecordSectionSplitter: No " << SectionName in operator ()()
32 dbgs() << "DWARFRecordSectionSplitter: Processing " << SectionName in operator ()()
70 SectionName + " section"); in processBlock()
H A DXCOFFLinkGraphBuilder.cpp157 auto SectionName = Section.getName(); in processSections() local
158 if (!SectionName) in processSections()
159 return SectionName.takeError(); in processSections()
162 dbgs() << " section = " << *SectionName in processSections()
169 if (Section.isDebugSection() || *SectionName == "pad") in processSections()
179 jitlink::Section *GraphSec = &G->createSection(*SectionName, Prot); in processSections()
351 auto SectionName = Section.getName(); in processRelocations() local
352 if (!SectionName) in processRelocations()
353 return SectionName.takeError(); in processRelocations()
355 LLVM_DEBUG(dbgs() << " Relocations for section " << *SectionName in processRelocations()
H A DDefineExternalSectionStartAndEndSymbols.h137 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols() local
138 if (auto *Sec = G.findSectionByName(SectionName)) in identifyMachOSectionStartAndEndSymbols()
143 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols() local
144 if (auto *Sec = G.findSectionByName(SectionName)) in identifyMachOSectionStartAndEndSymbols()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCContext.h252 std::string SectionName; member
257 COFFSectionKey(StringRef SectionName, StringRef GroupName, int SelectionKey, in COFFSectionKey()
259 : SectionName(SectionName), GroupName(GroupName), in COFFSectionKey()
263 return std::tie(SectionName, GroupName, SelectionKey, UniqueID) <
264 std::tie(Other.SectionName, Other.GroupName, Other.SelectionKey,
270 std::string SectionName; member
274 WasmSectionKey(StringRef SectionName, StringRef GroupName, in WasmSectionKey()
276 : SectionName(SectionName), GroupName(GroupName), UniqueID(UniqueID) {} in WasmSectionKey()
279 return std::tie(SectionName, GroupName, UniqueID) <
280 std::tie(Other.SectionName, Other.GroupName, Other.UniqueID);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFListTable.cpp28 SectionName.data(), HeaderOffset, toString(std::move(Err)).c_str()); in extract()
38 SectionName.data(), HeaderOffset, FullLength); in extract()
45 SectionName.data(), FullLength, HeaderOffset); in extract()
57 SectionName.data(), HeaderData.Version, HeaderOffset); in extract()
60 "%s table at offset 0x%" PRIx64, SectionName.data(), HeaderOffset)) in extract()
66 SectionName.data(), HeaderOffset, HeaderData.SegSize); in extract()
72 SectionName.data(), HeaderOffset, HeaderData.OffsetEntryCount); in extract()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFListTable.h50 uint64_t *OffsetPtr, StringRef SectionName,
81 StringRef SectionName; variable
87 DWARFListTableHeader(StringRef SectionName, StringRef ListTypeString) in DWARFListTableHeader() argument
88 : SectionName(SectionName), ListTypeString(ListTypeString) {} in DWARFListTableHeader()
98 StringRef getSectionName() const { return SectionName; } in getSectionName()
158 DWARFListTableBase(StringRef SectionName, StringRef HeaderString, in DWARFListTableBase() argument
160 : Header(SectionName, ListTypeString), HeaderString(HeaderString) {} in DWARFListTableBase()
233 StringRef SectionName, in extract() argument
251 SectionName.data(), HeaderOffset); in extract()
/freebsd/contrib/llvm-project/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp173 StringRef FileName, StringRef SectionName) { in getSectionId() argument
179 auto J = SectionIDs.find(SectionName); in getSectionId()
181 return make_error<StringError>("No section named \"" + SectionName + in getSectionId()
204 StringRef SectionName) override;
206 unsigned SectionID, StringRef SectionName,
210 StringRef SectionName) override;
266 StringRef SectionName, unsigned SectionID) { in allocateFromSlab() argument
274 FunctionMemory.push_back(SectionInfo(SectionName, MB, SectionID)); in allocateFromSlab()
276 DataMemory.push_back(SectionInfo(SectionName, MB, SectionID)); in allocateFromSlab()
296 StringRef SectionName) { in allocateCodeSection() argument
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DObjDumper.cpp149 StringRef SectionName, StringRef &SectionContent, in maybeDecompress() argument
152 SectionName, SectionContent, Obj.isLittleEndian(), Obj.is64Bit()); in maybeDecompress()
167 StringRef SectionName = unwrapOrError(Obj.getFileName(), Section.getName()); in printSectionsAsString() local
169 W.startLine() << "String dump of section '" << SectionName << "':\n"; in printSectionsAsString()
174 maybeDecompress(Obj, SectionName, SectionContent, Out); in printSectionsAsString()
185 StringRef SectionName = unwrapOrError(Obj.getFileName(), Section.getName()); in printSectionsAsHex() local
187 W.startLine() << "Hex dump of section '" << SectionName << "':\n"; in printSectionsAsHex()
192 maybeDecompress(Obj, SectionName, SectionContent, Out); in printSectionsAsHex()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DUtility.cpp59 StringRef SectionName = ".llvm.rodata.offloading"; in getOffloadingEntryInitializer() local
61 Str->setSection(SectionName); in getOffloadingEntryInitializer()
89 StringRef SectionName) { in emitOffloadingEntry() argument
105 Entry->setSection((SectionName + "$OE").str()); in emitOffloadingEntry()
107 Entry->setSection(SectionName); in emitOffloadingEntry()
112 offloading::getOffloadEntryArray(Module &M, StringRef SectionName) { in getOffloadEntryArray() argument
124 "__start_" + SectionName); in getOffloadEntryArray()
128 "__stop_" + SectionName); in getOffloadEntryArray()
138 ZeroInitilaizer, "__dummy." + SectionName); in getOffloadEntryArray()
139 DummyEntry->setSection(SectionName); in getOffloadEntryArray()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfdump/
H A DSectionSizes.cpp86 StringRef SectionName; in calculateSectionSizes() local
88 SectionName = *NameOrErr; in calculateSectionSizes()
93 LLVM_DEBUG(dbgs() << SectionName.str() << ": " << Section.getSize() in calculateSectionSizes()
100 Sizes.DebugSectionSizes[std::string(SectionName)] += Section.getSize(); in calculateSectionSizes()
/freebsd/contrib/llvm-project/llvm/lib/Remarks/
H A DRemarkLinker.cpp40 Expected<StringRef> SectionName = getRemarksSectionName(Obj); in getRemarksSectionContents() local
41 if (!SectionName) in getRemarksSectionContents()
42 return SectionName.takeError(); in getRemarksSectionContents()
48 if (*MaybeName != *SectionName) in getRemarksSectionContents()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObjcopy.cpp134 static Error dumpSection(Object &O, StringRef SectionName, StringRef FileName) { in dumpSection() argument
136 if (Section.Name != SectionName) in dumpSection()
154 SectionName.str().c_str()); in dumpSection()
273 const auto It = Config.SetSectionFlags.find(NewSection.SectionName); in handleArgs()
279 addSection(Obj, NewSection.SectionName, in handleArgs()
288 return Sec.Name == NewSection.SectionName; in handleArgs()
293 NewSection.SectionName.str().c_str()); in handleArgs()
299 NewSection.SectionName.str().c_str()); in handleArgs()
/freebsd/contrib/llvm-project/llvm/tools/lli/
H A DForwardingMemoryManager.h35 StringRef SectionName) override { in allocateCodeSection() argument
36 return MemMgr->allocateCodeSection(Size, Alignment, SectionID, SectionName); in allocateCodeSection()
40 unsigned SectionID, StringRef SectionName, in allocateDataSection() argument
42 return MemMgr->allocateDataSection(Size, Alignment, SectionID, SectionName, in allocateDataSection()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCAsmInfo.cpp121 bool MCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const { in shouldOmitSectionDirective()
123 return SectionName == ".text" || SectionName == ".data" || in shouldOmitSectionDirective()
124 (SectionName == ".bss" && !usesELFSectionDirectiveForBSS()); in shouldOmitSectionDirective()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DIRSymtab.h131 Str SectionName; member
182 StringRef SectionName; member
234 StringRef getSectionName() const { return SectionName; } in getSectionName()
334 SectionName = R->str(UncI->SectionName); in read()
337 SectionName = ""; in read()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A DDWARFRecordSectionSplitter.h23 DWARFRecordSectionSplitter(StringRef SectionName);
29 StringRef SectionName; variable
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DRuntimeDyld.h66 StringRef FileName, StringRef SectionName, StringRef SymbolName,
106 StringRef SectionName) = 0;
113 StringRef SectionName,
128 StringRef SectionName);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetObjectFile.cpp32 StringRef SectionName = GO->getSection(); in getExplicitSectionGlobal() local
33 if (SectionName.starts_with(".AMDGPU.comment.")) in getExplicitSectionGlobal()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/IntelJITEvents/
H A DIntelJITEventListener.cpp69 void reportSection(llvm::IttEventType EventType, const char *SectionName, in reportSection() argument
71 WrapperRef.iJitIttNotifyInfo(EventType, SectionName, SectionSize); in reportSection()
90 StringRef SectionName(""); in fillSectionInformation() local
93 SectionName = *SectionNameOrError; in fillSectionInformation()
95 SectionNamesVector.push_back(SectionName.str()); in fillSectionInformation()
97 reportSection(llvm::LoadBinarySection, SectionName.str().c_str(), in fillSectionInformation()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXContainerGlobals.cpp41 StringRef Name, StringRef SectionName);
45 StringRef SectionName);
120 Module &M, Constant *Content, StringRef Name, StringRef SectionName) { in buildContainerGlobal() argument
123 GV->setSection(SectionName); in buildContainerGlobal()
130 StringRef SectionName) { in buildSignature() argument
136 return buildContainerGlobal(M, Constant, Name, SectionName); in buildSignature()

12345