Home
last modified time | relevance | path

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

1234

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DMemoryBuffer.h65 const char *getBufferStart() const { return BufferStart; } in getBufferStart() function
169 using MemoryBuffer::getBufferStart;
173 char *getBufferStart() { in getBufferStart() function
174 return const_cast<char *>(MemoryBuffer::getBufferStart()); in getBufferStart()
180 return {getBufferStart(), getBufferEnd()}; in getBuffer()
227 using MemoryBuffer::getBufferStart;
231 char *getBufferStart() { in getBufferStart() function
232 return const_cast<char *>(MemoryBuffer::getBufferStart()); in getBufferStart()
238 return {getBufferStart(), getBufferEnd()}; in getBuffer()
H A DBinaryByteStream.h212 MutableArrayRef<uint8_t>(Buffer->getBufferStart(), in StreamImpl()
225 uint8_t *getBufferStart() const { return FileBuffer->getBufferStart(); } in getBufferStart() function
262 uint8_t *getBufferStart() const { return Impl.getBufferStart(); } in getBufferStart() function
H A DFormattedStream.h128 ComputePosition(getBufferStart(), GetNumBytesInBuffer()); in getColumn()
134 ComputePosition(getBufferStart(), GetNumBytesInBuffer()); in getLine()
H A DFileOutputBuffer.h52 virtual uint8_t *getBufferStart() const = 0;
H A DMemoryBufferRef.h35 const char *getBufferStart() const { return Buffer.begin(); } in getBufferStart() function
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/MachO/
H A DMachOWriter.cpp162 memcpy(Buf->getBufferStart(), &Header, HeaderSize); in writeHeader()
167 reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + headerSize(); in writeLoadCommands()
261 memcpy(Buf->getBufferStart() + Sec->Offset, Sec->Content.data(), in writeSections()
274 memcpy(Buf->getBufferStart() + Sec->RelOff + in writeSections()
304 uint8_t *StrTable = (uint8_t *)Buf->getBufferStart() + SymTabCommand.stroff; in writeStringTable()
315 char *SymTable = (char *)Buf->getBufferStart() + SymTabCommand.symoff; in writeSymbolTable()
334 char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.rebase_off; in writeRebaseInfo()
346 char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.bind_off; in writeBindInfo()
358 char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.weak_bind_off; in writeWeakBindInfo()
370 char *Out = (char *)Buf->getBufferStart() + DyLdInfoCommand.lazy_bind_off; in writeLazyBindInfo()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DLineIterator.cpp42 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr, in line_iterator()
49 if (SkipBlanks || !isAtLineEnd(Buffer.getBufferStart())) in line_iterator()
58 assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0'); in advance()
H A DSourceMgr.cpp63 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() && in FindBufferContainingLoc()
96 const char *BufStart = Buffer->getBufferStart(); in getLineNumberSpecialized()
132 const char *BufStart = Buffer->getBufferStart(); in getPointerForLineNumberSpecialized()
189 const char *BufStart = SB.Buffer->getBufferStart(); in getLineAndColumn()
281 const char *BufStart = CurMB->getBufferStart(); in GetMessage()
H A DFileOutputBuffer.cpp39 uint8_t *getBufferStart() const override { return (uint8_t *)Buffer.data(); } in getBufferStart() function in __anon8b42c9320111::OnDiskBuffer
82 uint8_t *getBufferStart() const override { return (uint8_t *)Buffer.base(); } in getBufferStart() function in __anon8b42c9320111::InMemoryBuffer
H A DFileUtilities.cpp203 const char *File1Start = F1.getBufferStart(); in DiffFilesWithTolerance()
204 const char *File2Start = F2.getBufferStart(); in DiffFilesWithTolerance()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/
H A DHeaderMap.cpp69 const char *FileStart = File.getBufferStart(); in checkHeader()
122 return *reinterpret_cast<const HMapHeader*>(FileBuffer->getBufferStart()); in getHeader()
137 reinterpret_cast<const HMapBucket*>(FileBuffer->getBufferStart() + in getBucket()
156 const char *Data = FileBuffer->getBufferStart() + StrTabIdx; in getString()
H A DScratchBuffer.cpp79 CurBuffer = OwnBuf->getBufferStart(); in AllocScratchBuffer()
H A DPreprocessor.cpp401 const char *Position = Buffer->getBufferStart(); in SetCodeCompletionPoint()
422 if (Position - Buffer->getBufferStart() < SkipMainFilePreamble.first) in SetCodeCompletionPoint()
423 Position = Buffer->getBufferStart() + SkipMainFilePreamble.first; in SetCodeCompletionPoint()
430 CodeCompletionOffset = Position - Buffer->getBufferStart(); in SetCodeCompletionPoint()
434 char *NewBuf = NewBuffer->getBufferStart(); in SetCodeCompletionPoint()
435 char *NewPos = std::copy(Buffer->getBufferStart(), Position, NewBuf); in SetCodeCompletionPoint()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Object/
H A DCOFFImportFile.h42 OS << StringRef(Data.getBufferStart() + sizeof(coff_import_header)); in printSymbolName()
62 Data.getBufferStart()); in getCOFFImportHeader()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/ELF/
H A DObject.cpp40 uint8_t *B = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + in writePhdr()
71 reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + Sec.HeaderOffset; in writeShdr()
174 llvm::copy(Sec.Contents, Out.getBufferStart() + Sec.Offset); in visit()
414 memcpy(Out.getBufferStart() + Offset, HexData.data(), HexData.size()); in writeData()
435 llvm::copy(Sec.Data, Out.getBufferStart() + Sec.Offset); in visit()
478 uint8_t *Buf = reinterpret_cast<uint8_t *>(Out.getBufferStart()) + Sec.Offset; in visit()
523 uint8_t *Buf = reinterpret_cast<uint8_t *>(Out.getBufferStart()) + Sec.Offset; in visit()
628 Sec.StrTabBuilder.write(reinterpret_cast<uint8_t *>(Out.getBufferStart()) + in visit()
643 uint8_t *Buf = reinterpret_cast<uint8_t *>(Out.getBufferStart()) + Sec.Offset; in visit()
875 Elf_Sym *Sym = reinterpret_cast<Elf_Sym *>(Out.getBufferStart() + Sec.Offset); in visit()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp265 const char *Pos = strchr(FromFile.getBufferStart(), '\n'); in DetectEOL()
268 if (Pos - 1 >= FromFile.getBufferStart() && Pos[-1] == '\r') in DetectEOL()
301 LocalEOL[0] == (FromFile.getBufferStart() + WriteTo)[-1] && in OutputContentUpTo()
302 LocalEOL[1] == (FromFile.getBufferStart() + WriteTo)[0]) in OutputContentUpTo()
305 StringRef TextToWrite(FromFile.getBufferStart() + WriteFrom, in OutputContentUpTo()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/COFF/
H A DWriter.cpp244 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()); in writeHeaders()
306 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + in writeSections()
336 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + in writeSymbolStringTables()
391 Out.write(Buf->getBufferStart(), Buf->getBufferSize()); in write()
424 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + in patchDebugDirectory()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/wasm/
H A DWasmObjcopy.cpp33 std::copy(Contents.begin(), Contents.end(), Buf->getBufferStart()); in dumpSectionToFile()
70 reinterpret_cast<const uint8_t *>(Buf->getBufferStart()), in handleArgs()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IRReader/
H A DIRReader.cpp35 if (isBitcode((const unsigned char *)Buffer->getBufferStart(), in getLazyIRModule()
74 if (isBitcode((const unsigned char *)Buffer.getBufferStart(), in parseIR()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/dsymutil/
H A DSymbolMap.cpp127 StringRef Data(MemBuf.getBufferStart(), in Load()
128 MemBuf.getBufferEnd() - MemBuf.getBufferStart()); in Load()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-mt/
H A Dllvm-mt.cpp150 std::copy(OutputBuffer->getBufferStart(), OutputBuffer->getBufferEnd(), in main()
151 FileBuffer->getBufferStart()); in main()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/BinaryFormat/
H A DMsgPackWriter.cpp138 EW.OS.write(Buffer.getBufferStart(), Size); in write()
207 EW.OS.write(Buffer.getBufferStart(), Size); in writeExt()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Rewrite/
H A DHTMLRewrite.cpp111 const char* C = Buf.getBufferStart(); in EscapeText()
230 const char* FileBeg = Buf.getBufferStart(); in AddLineNumbers()
278 const char* FileStart = Buf.getBufferStart(); in AddHeaderFooterInternalBuiltinCSS()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ProfileData/
H A DSampleProfReader.cpp815 reinterpret_cast<const uint8_t *>(Buffer->getBufferStart()); in readImpl()
884 reinterpret_cast<const uint8_t *>(Buffer->getBufferStart()) + in readImpl()
1049 reinterpret_cast<const uint8_t *>(Buffer->getBufferStart()); in readHeader()
1158 Data = reinterpret_cast<const uint8_t *>(Buffer->getBufferStart()); in readHeader()
1186 reinterpret_cast<const uint8_t *>(Buffer->getBufferStart()) + in readFuncOffsetTable()
1278 reinterpret_cast<const uint8_t *>(Buffer.getBufferStart()); in hasFormat()
1285 reinterpret_cast<const uint8_t *>(Buffer.getBufferStart()); in hasFormat()
1292 reinterpret_cast<const uint8_t *>(Buffer.getBufferStart()); in hasFormat()
1536 StringRef Magic(reinterpret_cast<const char *>(Buffer.getBufferStart())); in hasFormat()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-cvtres/
H A Dllvm-cvtres.cpp218 std::copy(OutputBuffer->getBufferStart(), OutputBuffer->getBufferEnd(), in main()
219 FileBuffer->getBufferStart()); in main()

1234