Home
last modified time | relevance | path

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

123456

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DMemoryBufferTest.cpp59 EXPECT_EQ(MB1->getBufferStart(), MB2->getBufferStart()); in TEST_F()
60 EXPECT_EQ(MB2->getBufferStart(), MB3->getBufferStart()); in TEST_F()
87 const char *BufData = MB.get()->getBufferStart(); in TEST_F()
102 EXPECT_NE(MBC1->getBufferStart(), MBC2->getBufferStart()); in TEST_F()
122 EXPECT_EQ(0, Three->getBufferStart()[0]); in TEST_F()
128 EXPECT_EQ(0, Four->getBufferStart()[0]); in TEST_F()
180 EXPECT_EQ(MB->getBufferStart(), MBR.getBufferStart()); in TEST_F()
251 char *Start = MB.getBufferStart(); in TEST_F()
252 ASSERT_EQ(MB.getBufferEnd(), MB.getBufferStart() + MB.getBufferSize()); in TEST_F()
281 char *Start = MB.getBufferStart(); in TEST_F()
[all …]
DFileOutputBufferTest.cpp51 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
73 memcpy(Buffer2->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
90 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
111 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST()
142 memcpy(Buffer->getBufferStart(), "AAAAAAAAAA", 10); in TEST()
153 uint8_t *Data = Buffer->getBufferStart(); in TEST()
/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DMemoryBuffer.h60 const char *getBufferStart() const { return BufferStart; } in getBufferStart() function
166 using MemoryBuffer::getBufferStart;
170 char *getBufferStart() { in getBufferStart() function
171 return const_cast<char *>(MemoryBuffer::getBufferStart()); in getBufferStart()
177 return {getBufferStart(), getBufferEnd()}; in getBuffer()
228 using MemoryBuffer::getBufferStart;
232 char *getBufferStart() { in getBufferStart() function
233 return const_cast<char *>(MemoryBuffer::getBufferStart()); in getBufferStart()
239 return {getBufferStart(), getBufferEnd()}; in getBuffer()
277 const char *getBufferStart() const { return Buffer.begin(); } in getBufferStart() function
DBinaryByteStream.h213 MutableArrayRef<uint8_t>(Buffer->getBufferStart(), in StreamImpl()
226 uint8_t *getBufferStart() const { return FileBuffer->getBufferStart(); } in getBufferStart() function
263 uint8_t *getBufferStart() const { return Impl.getBufferStart(); } in getBufferStart() function
/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()
/external/swiftshader/third_party/llvm-7.0/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()
/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()
/external/llvm/include/llvm/Object/
DCOFFImportFile.h42 OS << StringRef(Data.getBufferStart() + sizeof(coff_import_header)); in printSymbolName()
62 Data.getBufferStart()); in getCOFFImportHeader()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objcopy/
DObject.cpp47 uint8_t *FileBuffer::getBufferStart() { in getBufferStart() function in FileBuffer
48 return reinterpret_cast<uint8_t *>(Buf->getBufferStart()); in getBufferStart()
57 uint8_t *MemBuffer::getBufferStart() { in getBufferStart() function in MemBuffer
58 return reinterpret_cast<uint8_t *>(Buf->getBufferStart()); in getBufferStart()
68 uint8_t *B = Buf.getBufferStart(); in writePhdr()
88 uint8_t *B = Buf.getBufferStart(); in writeShdr()
128 uint8_t *Buf = Out.getBufferStart() + Sec.Offset; in visit()
135 uint8_t *Buf = Out.getBufferStart() + Sec.Offset; in visit()
155 Sec.StrTabBuilder.write(Out.getBufferStart() + Sec.Offset); in visit()
164 uint8_t *Buf = Out.getBufferStart() + Sec.Offset; in visit()
[all …]
/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-7.0/llvm/lib/ExecutionEngine/
DGDBRegistrationListener.cpp160 const char *Buffer = DebugObj.getBinary()->getMemoryBufferRef().getBufferStart(); in NotifyObjectEmitted()
163 const char *Key = Object.getMemoryBufferRef().getBufferStart(); in NotifyObjectEmitted()
185 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()
/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DCOFFImportFile.h44 OS << StringRef(Data.getBufferStart() + sizeof(coff_import_header)); in printSymbolName()
64 Data.getBufferStart()); in getCOFFImportHeader()
/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
/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/swiftshader/third_party/llvm-7.0/llvm/lib/IRReader/
DIRReader.cpp36 if (isBitcode((const unsigned char *)Buffer->getBufferStart(), in getLazyIRModule()
76 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-7.0/llvm/tools/llvm-mt/
Dllvm-mt.cpp156 std::copy(OutputBuffer->getBufferStart(), OutputBuffer->getBufferEnd(), in main()
157 FileBuffer->getBufferStart()); in main()

123456