Home
last modified time | relevance | path

Searched refs:getBufferStart (Results 1 – 25 of 109) sorted by relevance

12345

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DMemoryBuffer.h66 const char *getBufferStart() const { return BufferStart; } in getBufferStart() function
188 using MemoryBuffer::getBufferStart;
192 char *getBufferStart() { in getBufferStart() function
193 return const_cast<char *>(MemoryBuffer::getBufferStart()); in getBufferStart()
199 return {getBufferStart(), getBufferEnd()}; in getBuffer()
252 using MemoryBuffer::getBufferStart;
256 char *getBufferStart() { in getBufferStart() function
257 return const_cast<char *>(MemoryBuffer::getBufferStart()); in getBufferStart()
263 return {getBufferStart(), getBufferEnd()}; in getBuffer()
H A DBinaryByteStream.h208 MutableArrayRef<uint8_t>(Buffer->getBufferStart(), in StreamImpl()
221 uint8_t *getBufferStart() const { return FileBuffer->getBufferStart(); }
256 uint8_t *getBufferStart() const { return Impl.getBufferStart(); } in commit()
222 uint8_t *getBufferStart() const { return FileBuffer->getBufferStart(); } getBufferStart() function
259 uint8_t *getBufferStart() const { return Impl.getBufferStart(); } getBufferStart() function
H A DFormattedStream.h103 ComputePosition(getBufferStart(), GetNumBytesInBuffer());
111 Scanned = getBufferStart() + GetNumBytesInBuffer(); in formatted_raw_ostream()
156 ComputePosition(getBufferStart(), GetNumBytesInBuffer());
162 ComputePosition(getBufferStart(), GetNumBytesInBuffer()); in releaseStream()
H A DFileOutputBuffer.h52 virtual uint8_t *getBufferStart() const = 0;
H A DMemoryBufferRef.h35 const char *getBufferStart() const { return Buffer.begin(); } in getBufferStart() function
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFWriter.cpp56 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()); in writeHeaders()
76 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + in writeSections()
83 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + in writeSections()
94 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + in writeSymbolStringTable()
119 Out.write(Buf->getBufferStart(), Buf->getBufferSize()); in write()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOWriter.cpp152 memcpy(Buf->getBufferStart(), &Header, HeaderSize); in writeHeader()
157 reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + headerSize(); in writeLoadCommands()
251 memcpy(Buf->getBufferStart() + Sec->Offset, Sec->Content.data(), in writeSections()
264 memcpy(Buf->getBufferStart() + Sec->RelOff + in writeSections()
294 uint8_t *StrTable = (uint8_t *)Buf->getBufferStart() + SymTabCommand.stroff; in writeStringTable()
305 char *SymTable = (char *)Buf->getBufferStart() + SymTabCommand.symoff; in writeSymbolTable()
323 char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.rebase_off; in writeRebaseInfo()
335 char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.bind_off; in writeBindInfo()
347 char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.weak_bind_off; in writeWeakBindInfo()
359 char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.lazy_bind_off; in writeLazyBindInfo()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DLineIterator.cpp43 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr, in line_iterator()
50 if (SkipBlanks || !isAtLineEnd(Buffer.getBufferStart())) in line_iterator()
59 assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0'); in advance()
H A DSourceMgr.cpp75 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() && in FindBufferContainingLoc()
108 const char *BufStart = Buffer->getBufferStart(); in getLineNumberSpecialized()
144 const char *BufStart = Buffer->getBufferStart(); in getPointerForLineNumberSpecialized()
201 const char *BufStart = SB.Buffer->getBufferStart(); in getLineAndColumn()
293 const char *BufStart = CurMB->getBufferStart(); in GetMessage()
H A DFileOutputBuffer.cpp38 uint8_t *getBufferStart() const override { return (uint8_t *)Buffer.data(); }
83 uint8_t *getBufferStart() const override { return (uint8_t *)Buffer.base(); } in getBufferEnd()
37 uint8_t *getBufferStart() const override { return (uint8_t *)Buffer.data(); } getBufferStart() function in __anon71e275e70111::OnDiskBuffer
80 uint8_t *getBufferStart() const override { return (uint8_t *)Buffer.base(); } getBufferStart() function in __anon71e275e70111::InMemoryBuffer
H A DFileUtilities.cpp201 const char *File1Start = F1.getBufferStart(); in DiffFilesWithTolerance()
202 const char *File2Start = F2.getBufferStart(); in DiffFilesWithTolerance()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DDataBufferLLVM.cpp26 return reinterpret_cast<const uint8_t *>(Buffer->getBufferStart()); in GetBytesImpl()
43 return reinterpret_cast<const uint8_t *>(Buffer->getBufferStart()); in GetBytesImpl()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/wasm/
H A DWasmObjcopy.cpp50 std::copy(Contents.begin(), Contents.end(), Buf->getBufferStart()); in dumpSectionToFile()
130 llvm::StringRef(NewSection.SectionData->getBufferStart(), in handleArgs()
135 reinterpret_cast<const uint8_t *>(BufferCopy->getBufferStart()), in handleArgs()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp40 uint8_t *B = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + in writePhdr()
71 reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + Sec.HeaderOffset; in writeShdr()
191 llvm::copy(Sec.Contents, Out.getBufferStart() + Sec.Offset); in visit()
431 memcpy(Out.getBufferStart() + Offset, HexData.data(), HexData.size()); in writeData()
459 llvm::copy(Sec.Data, Out.getBufferStart() + Sec.Offset); in visit()
493 uint8_t *Buf = reinterpret_cast<uint8_t *>(Out.getBufferStart()) + Sec.Offset; in visit()
538 uint8_t *Buf = reinterpret_cast<uint8_t *>(Out.getBufferStart()) + Sec.Offset; in visit()
604 Sec.StrTabBuilder.write(reinterpret_cast<uint8_t *>(Out.getBufferStart()) + in visit()
619 uint8_t *Buf = reinterpret_cast<uint8_t *>(Out.getBufferStart()) + Sec.Offset; in visit()
866 Elf_Sym *Sym = reinterpret_cast<Elf_Sym *>(Out.getBufferStart() + Sec.Offset); in visit()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DOffloadBinary.cpp46 Buffer->getBufferStart())) in extractOffloadFiles()
157 ChildBuffer->getBufferStart())) in extractFromArchive()
183 if (!isAddrAligned(Align(getAlignment()), Buf.getBufferStart())) in create()
186 const char *Start = Buf.getBufferStart(); in create()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/
H A DArchive.cpp90 std::copy(Member.Buf->getBufferStart(), Member.Buf->getBufferEnd(), in deepWriteArchive()
91 (*FB)->getBufferStart()); in deepWriteArchive()
/freebsd/contrib/llvm-project/lld/MachO/
H A DInputFiles.cpp120 const char *hdr = input->mb.getBufferStart(); in getPlatformInfos()
233 const char *buf = mbref.getBufferStart(); in readFile()
343 auto *buf = reinterpret_cast<const uint8_t *>(mb.getBufferStart()); in parseSections()
535 auto *buf = reinterpret_cast<const uint8_t *>(mb.getBufferStart()); in parseRelocations()
942 const auto *buf = reinterpret_cast<const uint8_t *>(mb.getBufferStart()); in OpaqueFile()
956 auto *hdr = reinterpret_cast<const Header *>(mb.getBufferStart()); in parseLinkerOptions()
992 auto *buf = reinterpret_cast<const uint8_t *>(mb.getBufferStart()); in parse()
993 auto *hdr = reinterpret_cast<const Header *>(mb.getBufferStart()); in parse()
1053 auto *buf = reinterpret_cast<const uint8_t *>(mb.getBufferStart()); in parseLazy()
1054 auto *hdr = reinterpret_cast<const Header *>(mb.getBufferStart()); in parseLazy()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFWriter.cpp255 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()); in writeHeaders()
317 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + in writeSections()
347 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + in writeSymbolStringTables()
402 Out.write(Buf->getBufferStart(), Buf->getBufferSize()); in write()
435 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + in patchDebugDirectory()
H A DCOFFObjcopy.cpp147 llvm::copy(Contents, Buffer->getBufferStart()); in dumpSection()
273 NewSection.SectionData->getBufferStart()), in handleArgs()
296 It->setOwnedContents({NewSection.SectionData->getBufferStart(), in handleArgs()
/freebsd/contrib/llvm-project/llvm/lib/IRReader/
H A DIRReader.cpp36 if (isBitcode((const unsigned char *)Buffer->getBufferStart(), in getLazyIRModule()
75 if (isBitcode((const unsigned char *)Buffer.getBufferStart(), in parseIR()
/freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMsgPackWriter.cpp140 EW.OS.write(Buffer.getBufferStart(), Size); in write()
209 EW.OS.write(Buffer.getBufferStart(), Size); in writeExt()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DScratchBuffer.cpp79 CurBuffer = OwnBuf->getBufferStart(); in AllocScratchBuffer()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DOffloadEmitter.cpp
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DMemProfReader.cpp67 const char *Next = Buffer.getBufferStart(); in checkBuffer()
328 const uint64_t Magic = alignedRead(Buffer.getBufferStart()); in hasFormat()
651 const char *Next = DataBuffer->getBufferStart(); in peekBuildIds()
690 const char *Next = DataBuffer->getBufferStart(); in readRawProfile()
/freebsd/contrib/llvm-project/clang/lib/Rewrite/
H A DHTMLRewrite.cpp139 const char* C = Buf.getBufferStart(); in EscapeText()
258 const char* FileBeg = Buf.getBufferStart(); in AddLineNumbers()
306 const char* FileStart = Buf.getBufferStart(); in AddHeaderFooterInternalBuiltinCSS()

12345