Home
last modified time | relevance | path

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

1234

/external/llvm/unittests/Support/
DMemoryBufferTest.cpp57 EXPECT_EQ(MB1->getBufferStart(), MB2->getBufferStart()); in TEST_F()
58 EXPECT_EQ(MB2->getBufferStart(), MB3->getBufferStart()); in TEST_F()
84 const char *BufData = MB.get()->getBufferStart(); in TEST_F()
99 EXPECT_NE(MBC1->getBufferStart(), MBC2->getBufferStart()); in TEST_F()
119 EXPECT_EQ(0, Three->getBufferStart()[0]); in TEST_F()
125 EXPECT_EQ(0, Four->getBufferStart()[0]); in TEST_F()
176 EXPECT_EQ(MB->getBufferStart(), MBR.getBufferStart()); in TEST_F()
DFileOutputBufferTest.cpp47 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
69 memcpy(Buffer2->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
86 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
107 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
/external/llvm/lib/Support/
DLineIterator.cpp39 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr, in line_iterator()
46 if (SkipBlanks || !isAtLineEnd(Buffer.getBufferStart())) in line_iterator()
55 assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0'); in advance()
DFileUtilities.cpp196 const char *File1Start = F1.getBufferStart(); in DiffFilesWithTolerance()
197 const char *File2Start = F2.getBufferStart(); in DiffFilesWithTolerance()
DMemoryBuffer.cpp128 memcpy(const_cast<char*>(Buf->getBufferStart()), InputData.data(), in getMemBufferCopy()
164 memset(const_cast<char*>(SB->getBufferStart()), 0, Size); in getNewMemBuffer()
385 char *BufPtr = const_cast<char *>(Buf->getBufferStart()); in getOpenFileImpl()
DSourceMgr.cpp68 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() && in FindBufferContainingLoc()
88 const char *BufStart = Buff->getBufferStart(); in getLineAndColumn()
156 const char *BufStart = CurMB->getBufferStart(); in GetMessage()
/external/swiftshader/third_party/LLVM/utils/FileUpdate/
DFileUpdate.cpp60 memcmp(In->getBufferStart(), Out->getBufferStart(), in main()
81 OutStream.os().write(In->getBufferStart(), In->getBufferSize()); in main()
/external/clang/lib/Lex/
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()
DPreprocessor.cpp388 const char *Position = Buffer->getBufferStart(); in SetCodeCompletionPoint()
409 if (Position - Buffer->getBufferStart() < SkipMainFilePreamble.first) in SetCodeCompletionPoint()
410 Position = Buffer->getBufferStart() + SkipMainFilePreamble.first; in SetCodeCompletionPoint()
417 CodeCompletionOffset = Position - Buffer->getBufferStart(); in SetCodeCompletionPoint()
422 char *NewBuf = const_cast<char*>(NewBuffer->getBufferStart()); in SetCodeCompletionPoint()
423 char *NewPos = std::copy(Buffer->getBufferStart(), Position, NewBuf); in SetCodeCompletionPoint()
DScratchBuffer.cpp74 CurBuffer = const_cast<char*>(Buf.getBufferStart()); in AllocScratchBuffer()
/external/llvm/include/llvm/Object/
DCOFFImportFile.h42 OS << StringRef(Data.getBufferStart() + sizeof(coff_import_header)); in printSymbolName()
62 Data.getBufferStart()); in getCOFFImportHeader()
/external/llvm/lib/ExecutionEngine/
DGDBRegistrationListener.cpp169 const char *Buffer = DebugObj.getBinary()->getMemoryBufferRef().getBufferStart(); in NotifyObjectEmitted()
172 const char *Key = Object.getMemoryBufferRef().getBufferStart(); in NotifyObjectEmitted()
194 const char *Key = Object.getMemoryBufferRef().getBufferStart(); in NotifyFreeingObject()
/external/swiftshader/third_party/LLVM/lib/Support/
DMemoryBuffer.cpp112 memcpy(const_cast<char*>(Buf->getBufferStart()), InputData.data(), in getMemBufferCopy()
149 memset(const_cast<char*>(SB->getBufferStart()), 0, Size); in getNewMemBuffer()
190 uintptr_t Start = reinterpret_cast<uintptr_t>(getBufferStart()); in ~MemoryBufferMMapFile()
321 char *BufPtr = const_cast<char*>(SB->getBufferStart()); in getOpenFile()
DSourceMgr.cpp74 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() && in FindBufferContainingLoc()
94 const char *Ptr = Buff->getBufferStart(); in FindLineNumber()
155 while (LineStart != CurMB->getBufferStart() && in GetMessage()
DFileUtilities.cpp218 const char *File1Start = F1->getBufferStart(); in DiffFilesWithTolerance()
219 const char *File2Start = F2->getBufferStart(); in DiffFilesWithTolerance()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DIRReader.h38 if (isBitcode((const unsigned char *)Buffer->getBufferStart(), in getLazyIRModule()
78 if (isBitcode((const unsigned char *)Buffer->getBufferStart(), in ParseIR()
/external/llvm/include/llvm/Support/
DMemoryBuffer.h49 const char *getBufferStart() const { return BufferStart; } in getBufferStart() function
163 const char *getBufferStart() const { return Buffer.begin(); } in getBufferStart() function
DFileOutputBuffer.h45 uint8_t *getBufferStart() { in getBufferStart() function
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMemoryBuffer.h55 const char *getBufferStart() const { return BufferStart; } in getBufferStart() function
173 const char *getBufferStart() const { return Buffer.begin(); } in getBufferStart() function
/external/llvm/lib/IRReader/
DIRReader.cpp35 if (isBitcode((const unsigned char *)Buffer->getBufferStart(), in getLazyIRModule()
70 if (isBitcode((const unsigned char *)Buffer.getBufferStart(), in parseIR()
/external/clang/lib/Frontend/Rewrite/
DInclusionRewriter.cpp220 const char *Pos = strchr(FromFile.getBufferStart(), '\n'); in DetectEOL()
223 if (Pos - 1 >= FromFile.getBufferStart() && Pos[-1] == '\r') in DetectEOL()
257 LocalEOL[0] == (FromFile.getBufferStart() + WriteTo)[-1] && in OutputContentUpTo()
258 LocalEOL[1] == (FromFile.getBufferStart() + WriteTo)[0]) in OutputContentUpTo()
261 StringRef TextToWrite(FromFile.getBufferStart() + WriteFrom, in OutputContentUpTo()
/external/swiftshader/third_party/LLVM/lib/Object/
DArchive.cpp141 || StringRef(source->getBufferStart(), 8) != Magic) { in Archive()
160 const char *Loc = Data->getBufferStart() + Magic.size(); in begin_children()
/external/clang/lib/Rewrite/
DHTMLRewrite.cpp110 const char* C = Buf->getBufferStart(); in EscapeText()
229 const char* FileBeg = Buf->getBufferStart(); in AddLineNumbers()
274 const char* FileStart = Buf->getBufferStart(); in AddHeaderFooterInternalBuiltinCSS()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DMemoryBuffer.cpp128 memcpy(const_cast<char*>(Buf->getBufferStart()), InputData.data(), in getMemBufferCopy()
164 memset(const_cast<char*>(SB->getBufferStart()), 0, Size); in getNewMemBuffer()
385 char *BufPtr = const_cast<char *>(Buf->getBufferStart()); in getOpenFileImpl()
/external/llvm/lib/ProfileData/
DInstrProfReader.cpp109 StringRef buffer = Buffer.getBufferStart(); in hasFormat()
258 *reinterpret_cast<const uint64_t *>(DataBuffer.getBufferStart()); in hasFormat()
270 DataBuffer->getBufferStart()); in readHeader()
571 endian::read<uint64_t, little, aligned>(DataBuffer.getBufferStart()); in hasFormat()
627 (const unsigned char *)DataBuffer->getBufferStart(); in readHeader()

1234