Home
last modified time | relevance | path

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

/src/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DStringToOffsetTable.h25 StringMap<unsigned> StringOffset; variable
29 bool Empty() const { return StringOffset.empty(); } in Empty()
33 StringOffset.insert(std::make_pair(Str, AggregateString.size()));
/src/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFAcceleratorTable.h546 uint64_t StringOffset; variable
551 uint64_t StringOffset, uint64_t EntryOffset) in NameTableEntry() argument
552 : StrData(StrData), Index(Index), StringOffset(StringOffset), in NameTableEntry()
559 uint64_t getStringOffset() const { return StringOffset; } in getStringOffset()
564 uint64_t Off = StringOffset; in getString()
575 StringRef Data = StrData.getData().substr(StringOffset); in sameNameAs()
/src/contrib/llvm-project/llvm/include/llvm/Object/
H A DOffloadBinary.h119 uint64_t StringOffset; // Offset in bytes to the string map. member
136 reinterpret_cast<const StringEntry *>(&Buffer[TheEntry->StringOffset]); in OffloadBinary()
/src/contrib/llvm-project/llvm/lib/Object/
H A DArchive.cpp280 std::size_t StringOffset; in getName() local
281 if (Name.substr(1).rtrim(' ').getAsInteger(10, StringOffset)) { in getName()
295 if (StringOffset >= Parent->getStringTable().size()) { in getName()
298 return malformedError("long name offset " + Twine(StringOffset) + in getName()
307 size_t End = Parent->getStringTable().find('\n', /*From=*/StringOffset); in getName()
311 Twine(StringOffset) + "not terminated"); in getName()
313 return Parent->getStringTable().slice(StringOffset, End - 1); in getName()
315 return Parent->getStringTable().begin() + StringOffset; in getName()
H A DOffloadBinary.cpp203 TheEntry->StringOffset > Buf.getBufferSize()) in create()
242 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()
/src/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMILexer.cpp322 unsigned StringOffset = PrefixLength + Number.size(); // Drop '%bb.<id>' in maybeLexMachineBasicBlock() local
328 ++StringOffset; in maybeLexMachineBasicBlock()
336 .setStringValue(Range.upto(C).drop_front(StringOffset)); in maybeLexMachineBasicBlock()
363 unsigned StringOffset = Rule.size() + Number.size(); in maybeLexIndexAndName() local
366 ++StringOffset; in maybeLexIndexAndName()
372 .setStringValue(Range.upto(C).drop_front(StringOffset)); in maybeLexIndexAndName()
/src/contrib/llvm-project/lld/MachO/
H A DSyntheticSections.h573 struct StringOffset { struct
577 explicit StringOffset(uint8_t zeros) : trailingZeros(zeros) {} in StringOffset() argument
580 StringOffset getStringOffset(StringRef str) const;
583 llvm::DenseMap<llvm::CachedHashStringRef, StringOffset> stringOffsetMap;
H A DSyntheticSections.cpp1732 std::make_pair(s, StringOffset(trailingZeros))); in finalizeContents()
1747 StringOffset &offsetInfo = it->second; in finalizeContents()
1769 DeduplicatedCStringSection::StringOffset
/src/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.cpp1177 uint64_t StringOffset; in verifyAppleAccelTable() local
1191 StringOffset = StrpOffset; in verifyAppleAccelTable()
1192 const char *Name = StrData->getCStr(&StringOffset); in verifyAppleAccelTable()
H A DDWARFContext.cpp886 uint64_t StringOffset = in dumpStringOffsetsSection() local
888 OS << format("%0*" PRIx64 " ", OffsetDumpWidth, StringOffset); in dumpStringOffsetsSection()
889 const char *S = StrData.getCStr(&StringOffset); in dumpStringOffsetsSection()
/src/contrib/llvm-project/clang/lib/Basic/
H A DDiagnosticIDs.cpp142 uint32_t StringOffset = StaticDiagInfoDescriptionOffsets[MyIndex]; in getDescription() local
144 return StringRef(&Table[StringOffset], DescriptionLen); in getDescription()
/src/contrib/llvm-project/llvm/include/llvm/DWARFLinker/Classic/
H A DDWARFStreamer.h90 void emitStringOffsets(const SmallVector<uint64_t> &StringOffset,
/src/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp1061 uint32_t StringOffset = 0; in emitBTFSection() local
1063 OS.AddComment("string offset=" + std::to_string(StringOffset)); in emitBTFSection()
1066 StringOffset += S.size() + 1; in emitBTFSection()
/src/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp1341 unsigned StringOffset = 0; in getLocationOfByte() local
1345 StringOffset = *StartTokenByteOffset; in getLocationOfByte()
1346 ByteNo -= StringOffset; in getLocationOfByte()
1364 *StartTokenByteOffset = StringOffset; in getLocationOfByte()
1390 *StartTokenByteOffset = StringOffset; in getLocationOfByte()
1397 StringOffset += TokNumBytes; in getLocationOfByte()