/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/ |
H A D | XtensaTargetStreamer.cpp | 27 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 D | ELFAsmParser.cpp | 154 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 == ".eh_frame" && Type == ELF::SHT_PROGBITS; in allowSectionTypeMismatch() 534 return SectionName.starts_with(".debug_") && Type == ELF::SHT_PROGBITS; in allowSectionTypeMismatch() [all …]
|
H A D | COFFMasmParser.cpp | 38 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 D | COFFAsmParser.cpp | 44 bool ParseSectionName(StringRef &SectionName); 45 bool ParseSectionFlags(StringRef SectionName, StringRef FlagsString, 150 bool COFFAsmParser::ParseSectionFlags(StringRef SectionName, in ParseSectionFlags() argument 256 MCSectionCOFF::isImplicitlyDiscardable(SectionName)) in ParseSectionFlags() 325 bool COFFAsmParser::ParseSectionName(StringRef &SectionName) { in ParseSectionName() argument 329 SectionName = getTok().getIdentifier(); in ParseSectionName() 355 StringRef SectionName; in parseSectionArguments() local 357 if (ParseSectionName(SectionName)) in parseSectionArguments() 373 if (ParseSectionFlags(SectionName, FlagsStr, &Flags)) in parseSectionArguments() 408 ParseSectionSwitch(SectionName, Flags, COMDATSymName, Type); in parseSectionArguments()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | MCContext.h | 251 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, StringRef GroupName, in WasmSectionKey() 279 : SectionName(SectionName), GroupName(GroupName), UniqueID(UniqueID) {} in WasmSectionKey() 282 if (SectionName != Other.SectionName) 283 return SectionName < Other.SectionName; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
H A D | AMDGPUMCAsmInfo.cpp | 48 bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const { 49 return SectionName == ".hsatext" || SectionName == ".hsadata_global_agent" || in shouldOmitSectionDirective() 50 SectionName == ".hsadata_global_program" || in shouldOmitSectionDirective() 51 SectionName == ".hsarodata_readonly_agent" || in shouldOmitSectionDirective() 52 MCAsmInfo::shouldOmitSectionDirective(SectionName); in shouldOmitSectionDirective()
|
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/ |
H A D | Utility.cpp | 66 StringRef SectionName) { in emitOffloadingEntry() argument 82 Entry->setSection((SectionName + "$OE").str()); in emitOffloadingEntry() 84 Entry->setSection(SectionName); in emitOffloadingEntry() 89 offloading::getOffloadEntryArray(Module &M, StringRef SectionName) { in getOffloadEntryArray() argument 101 "__start_" + SectionName); in getOffloadEntryArray() 105 "__stop_" + SectionName); in getOffloadEntryArray() 115 ZeroInitilaizer, "__dummy." + SectionName); in getOffloadEntryArray() 116 DummyEntry->setSection(SectionName); in getOffloadEntryArray() 123 EntriesB->setSection((SectionName + "$OA").str()); in getOffloadEntryArray() 124 EntriesE->setSection((SectionName + "$OZ").str()); in getOffloadEntryArray()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | DWARFRecordSectionSplitter.cpp | 17 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 D | DefineExternalSectionStartAndEndSymbols.h | 140 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols() local 141 if (auto *Sec = G.findSectionByName(SectionName)) in identifyMachOSectionStartAndEndSymbols() 146 std::string SectionName = (SegName + "," + SecName).str(); in identifyMachOSectionStartAndEndSymbols() local 147 if (auto *Sec = G.findSectionByName(SectionName)) in identifyMachOSectionStartAndEndSymbols()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
H A D | DWARFListTable.cpp | 28 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 D | DWARFListTable.h | 49 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()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-rtdyld/ |
H A D | llvm-rtdyld.cpp | 173 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 D | ObjDumper.cpp | 147 StringRef SectionName, StringRef &SectionContent, in maybeDecompress() argument 150 SectionName, SectionContent, Obj.isLittleEndian(), Obj.is64Bit()); in maybeDecompress() 165 StringRef SectionName = unwrapOrError(Obj.getFileName(), Section.getName()); in printSectionsAsString() local 166 W.startLine() << "\nString dump of section '" << SectionName << "':\n"; in printSectionsAsString() 171 maybeDecompress(Obj, SectionName, SectionContent, Out); in printSectionsAsString() 182 StringRef SectionName = unwrapOrError(Obj.getFileName(), Section.getName()); in printSectionsAsHex() local 183 W.startLine() << "\nHex dump of section '" << SectionName << "':\n"; in printSectionsAsHex() 188 maybeDecompress(Obj, SectionName, SectionContent, Out); in printSectionsAsHex()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXContainerGlobals.cpp | 36 StringRef Name, StringRef SectionName); 40 StringRef SectionName); 110 Module &M, Constant *Content, StringRef Name, StringRef SectionName) { in buildContainerGlobal() argument 113 GV->setSection(SectionName); in buildContainerGlobal() 120 StringRef SectionName) { in buildSignature() argument 126 return buildContainerGlobal(M, Constant, Name, SectionName); in buildSignature()
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCAsmInfo.cpp | 122 bool MCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const { in shouldOmitSectionDirective() 124 return SectionName == ".text" || SectionName == ".data" || in shouldOmitSectionDirective() 125 (SectionName == ".bss" && !usesELFSectionDirectiveForBSS()); in shouldOmitSectionDirective()
|
H A D | MCContext.cpp | 636 void MCContext::recordELFMergeableSectionInfo(StringRef SectionName, in recordELFMergeableSectionInfo() argument 641 ELFSeenGenericMergeableSections.insert(SectionName); in recordELFMergeableSectionInfo() 651 if (IsMergeable || isELFGenericMergeableSection(SectionName)) { in recordELFMergeableSectionInfo() 653 std::make_tuple(SectionName, Flags, EntrySize), UniqueID)); in recordELFMergeableSectionInfo() 657 bool MCContext::isELFImplicitMergeableSectionNamePrefix(StringRef SectionName) { in isELFImplicitMergeableSectionNamePrefix() argument 658 return SectionName.starts_with(".rodata.str") || in isELFImplicitMergeableSectionNamePrefix() 659 SectionName.starts_with(".rodata.cst"); in isELFImplicitMergeableSectionNamePrefix() 662 bool MCContext::isELFGenericMergeableSection(StringRef SectionName) { in isELFGenericMergeableSection() argument 663 return isELFImplicitMergeableSectionNamePrefix(SectionName) || in isELFGenericMergeableSection() 664 ELFSeenGenericMergeableSections.count(SectionName); in isELFGenericMergeableSection() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfdump/ |
H A D | SectionSizes.cpp | 86 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/ObjCopy/COFF/ |
H A D | COFFObjcopy.cpp | 134 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() 265 const auto It = Config.SetSectionFlags.find(NewSection.SectionName); in handleArgs() 271 addSection(Obj, NewSection.SectionName, in handleArgs() 280 return Sec.Name == NewSection.SectionName; in handleArgs() 285 NewSection.SectionName.str().c_str()); in handleArgs() 291 NewSection.SectionName.str().c_str()); in handleArgs()
|
/freebsd/contrib/llvm-project/llvm/lib/Remarks/ |
H A D | RemarkLinker.cpp | 40 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/tools/lli/ |
H A D | ForwardingMemoryManager.h | 35 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/include/llvm/Object/ |
H A D | IRSymtab.h | 130 Str SectionName; member 179 StringRef SectionName; member 231 StringRef getSectionName() const { return SectionName; } in getSectionName() 331 SectionName = R->str(UncI->SectionName); in read() 334 SectionName = ""; in read()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
H A D | DWARFRecordSectionSplitter.h | 23 DWARFRecordSectionSplitter(StringRef SectionName); 29 StringRef SectionName; variable
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/ |
H A D | RuntimeDyld.h | 65 StringRef FileName, StringRef SectionName, StringRef SymbolName, 105 StringRef SectionName) = 0; 112 StringRef SectionName, 127 StringRef SectionName);
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/IntelJITEvents/ |
H A D | IntelJITEventListener.cpp | 69 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/AMDGPU/ |
H A D | AMDGPUTargetObjectFile.cpp | 32 StringRef SectionName = GO->getSection(); in getExplicitSectionGlobal() local 33 if (SectionName.starts_with(".AMDGPU.comment.")) in getExplicitSectionGlobal()
|