Home
last modified time | relevance | path

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

123456

/llvm-project/bolt/lib/Rewrite/
H A DExecutableFileMemoryManager.cpp108 auto SectionName = sectionName(JLSection, BC); in updateSection() local
114 if (!ObjectsLoaded && RewriteInstance::isDebugSection(SectionName)) { in updateSection()
116 BC.registerOrUpdateNoteSection(SectionName, Contents, Size, Alignment); in updateSection()
122 if (!IsCode && (SectionName == ".strtab" || SectionName == ".symtab" || in updateSection()
123 SectionName == "" || SectionName.starts_with(".rela."))) in updateSection()
129 SectionName = (Twine(SectionName) + ".bolt.extra." + Twine(ObjectsLoaded)) in updateSection()
132 assert((SectionName == "__text" || SectionName == "__data" || in updateSection()
133 SectionName == "__fini" || SectionName == "__setup" || in updateSection()
134 SectionName == "__cstring" || SectionName == "__literal16") && in updateSection()
137 SectionName = ("I" + Twine(SectionName)).toStringRef(Buf); in updateSection()
[all …]
H A DMachORewriteInstance.cpp131 Expected<StringRef> SectionName = Section.getName();; in readSpecialSections()
132 check_error(SectionName.takeError(), "cannot get section name"); in readSpecialSections()
134 if (!SectionName->empty()) { in readSpecialSections()
137 dbgs() << "BOLT-DEBUG: registering section " << *SectionName in readSpecialSections()
365 StringRef SectionName, BOLTLinker::SectionMapper MapSection) { in mapInstrumentationSection()
368 ErrorOr<BinarySection &> Section = BC->getUniqueSectionByName(SectionName); in mapInstrumentationSection()
370 llvm::errs() << "Cannot find " + SectionName + " section\n"; in mapInstrumentationSection()
484 void MachORewriteInstance::writeInstrumentationSection(StringRef SectionName, in writeInstrumentationSection()
488 ErrorOr<BinarySection &> Section = BC->getUniqueSectionByName(SectionName); in writeInstrumentationSection()
490 llvm::errs() << "Cannot find " + SectionName in writeInstrumentationSection()
129 Expected<StringRef> SectionName = Section.getName();; readSpecialSections() local
363 mapInstrumentationSection(StringRef SectionName,BOLTLinker::SectionMapper MapSection) mapInstrumentationSection() argument
482 writeInstrumentationSection(StringRef SectionName,raw_pwrite_stream & OS) writeInstrumentationSection() argument
[all...]
/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 …]
/llvm-project/llvm/lib/MC/MCParser/
H A DELFAsmParser.cpp154 bool parseSectionName(StringRef &SectionName);
244 bool ELFAsmParser::parseSectionName(StringRef &SectionName) { in ParseSectionName() argument
251 SectionName = getTok().getIdentifier(); in ParseSectionName()
274 SectionName = StringRef(FirstLoc.getPointer(), Size); in ParseSectionName()
517 static bool hasPrefix(StringRef SectionName, StringRef Prefix) { in hasPrefix() argument
518 return SectionName.consume_front(Prefix) && in hasPrefix()
519 (SectionName.empty() || SectionName[0] == '.'); in hasPrefix()
522 static bool allowSectionTypeMismatch(const Triple &TT, StringRef SectionName, in allowSectionTypeMismatch() argument
528 return SectionName in allowSectionTypeMismatch()
540 StringRef SectionName; ParseSectionArguments() local
[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 in ParseDirectiveSegment()
[all...]
H A DCOFFAsmParser.cpp43 bool parseSectionName(StringRef &SectionName);
44 bool parseSectionFlags(StringRef SectionName, StringRef FlagsString,
154 bool COFFAsmParser::parseSectionFlags(StringRef SectionName, in ParseSectionFlags()
260 MCSectionCOFF::isImplicitlyDiscardable(SectionName)) in ParseSectionFlags()
329 bool COFFAsmParser::parseSectionName(StringRef &SectionName) { in ParseSectionName()
333 SectionName = getTok().getIdentifier();
359 StringRef SectionName; in parseSectionArguments()
361 if (parseSectionName(SectionName)) in parseSectionArguments()
377 if (parseSectionFlags(SectionName, FlagsStr, &Flags)) in parseSectionArguments()
412 parseSectionSwitch(SectionName, Flag
150 ParseSectionFlags(StringRef SectionName,StringRef FlagsString,unsigned * Flags) ParseSectionFlags() argument
325 ParseSectionName(StringRef & SectionName) ParseSectionName() argument
355 StringRef SectionName; parseSectionArguments() local
[all...]
/llvm-project/llvm/include/llvm/MC/
H A DMCContext.h251 std::string SectionName; member
256 COFFSectionKey(StringRef SectionName, StringRef GroupName, int SelectionKey, in COFFSectionKey()
258 : SectionName(SectionName), GroupName(GroupName), in COFFSectionKey()
262 if (SectionName != Other.SectionName)
263 return SectionName < Other.SectionName;
273 std::string SectionName; member
277 WasmSectionKey(StringRef SectionName, StringRe
292 std::string SectionName; global() member
[all...]
/llvm-project/llvm/lib/Frontend/Offloading/
H A DUtility.cpp57 StringRef SectionName = ".llvm.rodata.offloading"; in getOffloadingEntryInitializer()
59 Str->setSection(SectionName); in getOffloadingEntryInitializer()
86 uint64_t Data, StringRef SectionName, in emitOffloadingEntry()
103 Entry->setSection((SectionName + "$OE").str()); in getOffloadEntryArray()
105 Entry->setSection(SectionName); in getOffloadEntryArray()
110 offloading::getOffloadEntryArray(Module &M, StringRef SectionName) { in getOffloadEntryArray()
122 "__start_" + SectionName); in getOffloadEntryArray()
126 "__stop_" + SectionName); in getOffloadEntryArray()
136 ZeroInitilaizer, "__dummy." + SectionName);
137 DummyEntry->setSection(SectionName);
66 emitOffloadingEntry(Module & M,Constant * Addr,StringRef Name,uint64_t Size,int32_t Flags,int32_t Data,StringRef SectionName) emitOffloadingEntry() argument
89 getOffloadEntryArray(Module & M,StringRef SectionName) getOffloadEntryArray() argument
[all...]
/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCAsmInfo.cpp47 bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const {
48 return SectionName == ".hsatext" || SectionName == ".hsadata_global_agent" || in shouldOmitSectionDirective()
49 SectionName == ".hsadata_global_program" || in shouldOmitSectionDirective()
50 SectionName == ".hsarodata_readonly_agent" || in shouldOmitSectionDirective()
51 MCAsmInfo::shouldOmitSectionDirective(SectionName); in shouldOmitSectionDirective()
/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 DDefineExternalSectionStartAndEndSymbols.h137 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols()
138 if (auto *Sec = G.findSectionByName(SectionName)) in identifyMachOSectionStartAndEndSymbols()
143 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols()
144 if (auto *Sec = G.findSectionByName(SectionName)) in identifyMachOSectionStartAndEndSymbols()
140 std::string SectionName = (SegName + "," + SecName).str(); identifyMachOSectionStartAndEndSymbols() local
146 std::string SectionName = (SegName + "," + SecName).str(); identifyMachOSectionStartAndEndSymbols() local
/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()
/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFListTable.h49 uint64_t *OffsetPtr, StringRef SectionName,
80 StringRef SectionName; variable
86 DWARFListTableHeader(StringRef SectionName, StringRef ListTypeString) in DWARFListTableHeader() argument
87 : SectionName(SectionName), ListTypeString(ListTypeString) {} in DWARFListTableHeader()
97 StringRef getSectionName() const { return SectionName; } in getSectionName()
157 DWARFListTableBase(StringRef SectionName, StringRef HeaderString, in DWARFListTableBase() argument
159 : Header(SectionName, ListTypeString), HeaderString(HeaderString) {} in DWARFListTableBase()
232 StringRef SectionName, in extract() argument
250 SectionName.data(), HeaderOffset); in extract()
/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 …]
/llvm-project/llvm/tools/llvm-readobj/
H A DObjDumper.cpp149 StringRef SectionName, StringRef &SectionContent, in maybeDecompress()
152 SectionName, SectionContent, Obj.isLittleEndian(), Obj.is64Bit()); in maybeDecompress()
167 StringRef SectionName = unwrapOrError(Obj.getFileName(), Section.getName()); in printSectionsAsString()
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()
187 W.startLine() << "Hex dump of section '" << SectionName << "':\n"; in printSectionsAsHex()
192 maybeDecompress(Obj, SectionName, SectionContent, Out); in printSectionsAsHex()
147 maybeDecompress(const object::ObjectFile & Obj,StringRef SectionName,StringRef & SectionContent,SmallString<0> & Out) maybeDecompress() argument
165 StringRef SectionName = unwrapOrError(Obj.getFileName(), Section.getName()); printSectionsAsString() local
182 StringRef SectionName = unwrapOrError(Obj.getFileName(), Section.getName()); printSectionsAsHex() local
/llvm-project/llvm/lib/Target/DirectX/
H A DDXContainerGlobals.cpp38 StringRef Name, StringRef SectionName);
42 StringRef SectionName);
116 Module &M, Constant *Content, StringRef Name, StringRef SectionName) { in buildContainerGlobal()
119 GV->setSection(SectionName); in buildSignature()
126 StringRef SectionName) { in buildSignature()
132 return buildContainerGlobal(M, Constant, Name, SectionName); in addSignature()
110 buildContainerGlobal(Module & M,Constant * Content,StringRef Name,StringRef SectionName) buildContainerGlobal() argument
120 buildSignature(Module & M,Signature & Sig,StringRef Name,StringRef SectionName) buildSignature() argument
/llvm-project/llvm/unittests/ObjCopy/
H A DObjCopyTest.cpp150 bool hasSection(ObjectFile &File, StringRef SectionName) { in hasSection() argument
156 if (*CurSecNameOrErr == SectionName) in hasSection()
165 void checkSectionData(ObjectFile &File, StringRef SectionName, in checkSectionData() argument
171 if (*CurSecNameOrErr == SectionName) { in checkSectionData()
335 StringRef SectionWildcard, StringRef SectionName) { in removeSectionByPatternImpl() argument
346 EXPECT_TRUE(hasSection(**Obj, SectionName)); in removeSectionByPatternImpl()
364 hasSection(*static_cast<ObjectFile *>((*Result).get()), SectionName)); in removeSectionByPatternImpl()
/llvm-project/llvm/lib/MC/
H A DMCAsmInfo.cpp122 bool MCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const { in shouldOmitSectionDirective()
124 return SectionName == ".text" || SectionName == ".data" || in shouldOmitSectionDirective()
125 (SectionName == ".bss" && !usesELFSectionDirectiveForBSS()); in shouldOmitSectionDirective()
H A DMCContext.cpp635 void MCContext::recordELFMergeableSectionInfo(StringRef SectionName, in recordELFMergeableSectionInfo()
640 ELFSeenGenericMergeableSections.insert(SectionName); in recordELFMergeableSectionInfo()
642 // isELFGenericMergeableSection, which will return true for SectionName. in recordELFMergeableSectionInfo()
650 if (IsMergeable || isELFGenericMergeableSection(SectionName)) { in recordELFMergeableSectionInfo()
652 std::make_tuple(SectionName, Flags, EntrySize), UniqueID)); in isELFImplicitMergeableSectionNamePrefix() argument
656 bool MCContext::isELFImplicitMergeableSectionNamePrefix(StringRef SectionName) {
657 return SectionName.starts_with(".rodata.str") || in isELFGenericMergeableSection() argument
658 SectionName.starts_with(".rodata.cst"); in isELFGenericMergeableSection()
661 bool MCContext::isELFGenericMergeableSection(StringRef SectionName) {
662 return isELFImplicitMergeableSectionNamePrefix(SectionName) ||
631 recordELFMergeableSectionInfo(StringRef SectionName,unsigned Flags,unsigned UniqueID,unsigned EntrySize) recordELFMergeableSectionInfo() argument
663 getELFUniqueIDForEntsize(StringRef SectionName,unsigned Flags,unsigned EntrySize) getELFUniqueIDForEntsize() argument
[all...]
/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()
/llvm-project/llvm/unittests/MC/
H A DDwarfLineTableHeaders.cpp146 StringRef SectionName = *SectionNameOrErr; in verifyDebugLineContents()
147 if (SectionName.empty() || SectionName != ".debug_line") in verifyDebugLineContents()
166 StringRef SectionName = *SectionNameOrErr; in verifyDebugLineStrContents()
167 if (SectionName.empty() || SectionName != ".debug_line_str") in verifyDebugLineStrContents()
149 StringRef SectionName = *SectionNameOrErr; verifyDebugLineContents() local
169 StringRef SectionName = *SectionNameOrErr; verifyDebugLineStrContents() local
/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()
/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()
/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()
/llvm-project/llvm/include/llvm/Object/
H A DIRSymtab.h130 Str SectionName; member
180 StringRef SectionName;
232 StringRef getSectionName() const { return SectionName; }
332 SectionName = R->str(UncI->SectionName); in read()
335 SectionName = ""; in read()
179 StringRef SectionName; global() member

123456