Home
last modified time | relevance | path

Searched refs:StringOffset (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DStringToOffsetTable.h24 StringMap<unsigned> StringOffset; variable
35 bool empty() const { return StringOffset.empty(); } in empty()
43 auto II = StringOffset.find(Str); in GetStringOffset()
44 if (II == StringOffset.end()) in GetStringOffset()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFAcceleratorTable.h548 uint64_t StringOffset; variable
553 uint64_t StringOffset, uint64_t EntryOffset) in NameTableEntry() argument
554 : StrData(StrData), Index(Index), StringOffset(StringOffset), in NameTableEntry()
561 uint64_t getStringOffset() const { return StringOffset; } in getStringOffset()
566 uint64_t Off = StringOffset; in getString()
577 StringRef Data = StrData.getData().substr(StringOffset); in sameNameAs()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DOffloadBinary.h122 uint64_t StringOffset; // Offset in bytes to the string map. member
139 reinterpret_cast<const StringEntry *>(&Buffer[TheEntry->StringOffset]); in OffloadBinary()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DArchive.cpp279 std::size_t StringOffset; in getName() local
280 if (Name.substr(1).rtrim(' ').getAsInteger(10, StringOffset)) { in getName()
294 if (StringOffset >= Parent->getStringTable().size()) { in getName()
297 return malformedError("long name offset " + Twine(StringOffset) + in getName()
306 size_t End = Parent->getStringTable().find('\n', /*From=*/StringOffset); in getName()
310 Twine(StringOffset) + "not terminated"); in getName()
312 return Parent->getStringTable().slice(StringOffset, End - 1); in getName()
314 return Parent->getStringTable().begin() + StringOffset; in getName()
H A DOffloadBinary.cpp200 TheEntry->StringOffset > Buf.getBufferSize()) in create()
239 TheEntry.StringOffset = sizeof(Header) + sizeof(Entry); in write()
H A DArchiveWriter.cpp628 for (unsigned StringOffset : M.Symbols) { in writeSymbolTable() local
630 printNBits(Out, Kind, StringOffset); in writeSymbolTable()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMILexer.cpp325 unsigned StringOffset = PrefixLength + Number.size(); // Drop '%bb.<id>' in maybeLexMachineBasicBlock() local
331 ++StringOffset; in maybeLexMachineBasicBlock()
339 .setStringValue(Range.upto(C).drop_front(StringOffset)); in maybeLexMachineBasicBlock()
366 unsigned StringOffset = Rule.size() + Number.size(); in maybeLexIndexAndName() local
369 ++StringOffset; in maybeLexIndexAndName()
375 .setStringValue(Range.upto(C).drop_front(StringOffset)); in maybeLexIndexAndName()
/freebsd/contrib/llvm-project/lld/MachO/
H A DSyntheticSections.h575 struct StringOffset { struct
579 explicit StringOffset(uint8_t zeros) : trailingZeros(zeros) {} in StringOffset() function
582 StringOffset getStringOffset(StringRef str) const;
585 llvm::DenseMap<llvm::CachedHashStringRef, StringOffset> stringOffsetMap;
H A DSyntheticSections.cpp1756 std::make_pair(s, StringOffset(trailingZeros))); in finalizeContents()
1770 lld::macho::DeduplicatedCStringSection::StringOffset &offsetInfo = in finalizeContents()
1792 DeduplicatedCStringSection::StringOffset
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DStringToOffsetTable.cpp18 auto [II, Inserted] = StringOffset.insert({Str, size()}); in GetOrAddStringOffset()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFAcceleratorTable.cpp183 uint64_t StringOffset = AccelSection.getRelocatedValue(4, DataOffset); in dumpName() local
184 if (!StringOffset) in dumpName()
188 W.startLine() << format("String: 0x%08" PRIx64, StringOffset); in dumpName()
189 W.getOStream() << " \"" << StringSection.getCStr(&StringOffset) << "\"\n"; in dumpName()
804 uint64_t StringOffset = in getNameTableEntry() local
808 return {Section.StringSection, Index, StringOffset, EntryOffset}; in getNameTableEntry()
H A DDWARFVerifier.cpp1206 uint64_t StringOffset; in verifyAppleAccelTable() local
1220 StringOffset = StrpOffset; in verifyAppleAccelTable()
1221 const char *Name = StrData->getCStr(&StringOffset); in verifyAppleAccelTable()
H A DDWARFContext.cpp882 uint64_t StringOffset = in dumpStringOffsetsSection() local
884 OS << format("%0*" PRIx64 " ", OffsetDumpWidth, StringOffset); in dumpStringOffsetsSection()
885 const char *S = StrData.getCStr(&StringOffset); in dumpStringOffsetsSection()
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/Classic/
H A DDWARFStreamer.h91 void emitStringOffsets(const SmallVector<uint64_t> &StringOffset,
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DDiagnosticIDs.cpp104 uint32_t StringOffset = StaticDiagInfoDescriptionOffsets[MyIndex]; in getDescription() local
106 return StringRef(&Table[StringOffset], DescriptionLen); in getDescription()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp1180 uint32_t StringOffset = 0; in emitBTFSection() local
1182 OS.AddComment("string offset=" + std::to_string(StringOffset)); in emitBTFSection()
1185 StringOffset += S.size() + 1; in emitBTFSection()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp1342 unsigned StringOffset = 0; in getLocationOfByte() local
1346 StringOffset = *StartTokenByteOffset; in getLocationOfByte()
1347 ByteNo -= StringOffset; in getLocationOfByte()
1364 *StartTokenByteOffset = StringOffset; in getLocationOfByte()
1390 *StartTokenByteOffset = StringOffset; in getLocationOfByte()
1397 StringOffset += TokNumBytes; in getLocationOfByte()