Home
last modified time | relevance | path

Searched refs:BufPtr (Results 1 – 12 of 12) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Bitcode/
DBitcodeReader.h191 inline bool isBitcodeWrapper(const unsigned char *BufPtr, in isBitcodeWrapper() argument
195 return BufPtr != BufEnd && in isBitcodeWrapper()
196 BufPtr[0] == 0xDE && in isBitcodeWrapper()
197 BufPtr[1] == 0xC0 && in isBitcodeWrapper()
198 BufPtr[2] == 0x17 && in isBitcodeWrapper()
199 BufPtr[3] == 0x0B; in isBitcodeWrapper()
204 inline bool isRawBitcode(const unsigned char *BufPtr, in isRawBitcode() argument
208 return BufPtr != BufEnd && in isRawBitcode()
209 BufPtr[0] == 'B' && in isRawBitcode()
210 BufPtr[1] == 'C' && in isRawBitcode()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/
DNaClBitcodeHeader.cpp177 bool NaClBitcodeHeader::ReadPrefix(const unsigned char *BufPtr, in ReadPrefix() argument
181 if (!isNaClBitcode(BufPtr, BufEnd)) { in ReadPrefix()
183 if (isBitcode(BufPtr, BufEnd)) { in ReadPrefix()
189 BufPtr += WordSize; in ReadPrefix()
192 if (BufPtr + WordSize > BufEnd) in ReadPrefix()
194 NumFields = static_cast<unsigned>(BufPtr[0]) | in ReadPrefix()
195 (static_cast<unsigned>(BufPtr[1]) << 8); in ReadPrefix()
196 NumBytes = static_cast<unsigned>(BufPtr[2]) | in ReadPrefix()
197 (static_cast<unsigned>(BufPtr[3]) << 8); in ReadPrefix()
198 BufPtr += WordSize; in ReadPrefix()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClReaderWriter.h117 inline bool isNaClBitcode(const unsigned char *BufPtr, in isNaClBitcode() argument
119 return BufPtr + 4 <= BufEnd && BufPtr[0] == 'P' && BufPtr[1] == 'E' && in isNaClBitcode()
120 BufPtr[2] == 'X' && BufPtr[3] == 'E'; in isNaClBitcode()
DNaClBitcodeHeader.h196 bool Read(const unsigned char *BufPtr, const unsigned char *BufEnd);
240 bool ReadPrefix(const unsigned char *BufPtr, const unsigned char *BufEnd,
245 bool ReadFields(const unsigned char *BufPtr, const unsigned char *BufEnd,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DStringExtras.h50 char *BufPtr = std::end(Buffer);
52 if (X == 0) *--BufPtr = '0';
56 *--BufPtr = hexdigit(Mod, LowerCase);
60 return std::string(BufPtr, std::end(Buffer));
81 char *BufPtr = std::end(Buffer);
83 if (X == 0) *--BufPtr = '0'; // Handle special case...
86 *--BufPtr = '0' + char(X % 10);
90 if (isNeg) *--BufPtr = '-'; // Add negative sign...
91 return std::string(BufPtr, std::end(Buffer));
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DStringExtras.h126 char *BufPtr = std::end(Buffer);
128 if (X == 0) *--BufPtr = '0';
132 *--BufPtr = hexdigit(Mod, LowerCase);
136 return std::string(BufPtr, std::end(Buffer));
225 char *BufPtr = std::end(Buffer);
227 if (X == 0) *--BufPtr = '0'; // Handle special case...
230 *--BufPtr = '0' + char(X % 10);
234 if (isNeg) *--BufPtr = '-'; // Add negative sign...
235 return std::string(BufPtr, std::end(Buffer));
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DYAMLTraits.h979 : io(i_o), BufPtr(nullptr), Result(Obj) {
981 BufPtr = new (&Buffer) TNorm(io, Obj);
984 BufPtr = new (&Buffer) TNorm(io);
990 Result = BufPtr->denormalize(io);
992 BufPtr->~TNorm();
995 TNorm* operator->() { return BufPtr; }
1002 TNorm *BufPtr;
1012 : io(i_o), BufPtr(nullptr), Result(Obj) {
1014 BufPtr = new (&Buffer) TNorm(io, Obj);
1017 BufPtr = allocator->Allocate<TNorm>();
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DMemoryBuffer.cpp385 char *BufPtr = const_cast<char *>(Buf->getBufferStart()); in getOpenFileImpl() local
395 ssize_t NumRead = ::pread(FD, BufPtr, BytesLeft, MapSize-BytesLeft+Offset); in getOpenFileImpl()
397 ssize_t NumRead = ::read(FD, BufPtr, BytesLeft); in getOpenFileImpl()
406 memset(BufPtr, 0, BytesLeft); // zero-initialize rest of the buffer. in getOpenFileImpl()
410 BufPtr += NumRead; in getOpenFileImpl()
DAPInt.cpp2147 char *BufPtr = Buffer+65; in toString() local
2168 *--BufPtr = Digits[N % Radix]; in toString()
2171 Str.append(BufPtr, Buffer+65); in toString()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitcodeAnalyzer.cpp463 const unsigned char *BufPtr = (const unsigned char *)Bytes.data(); in analyzeHeader() local
464 const unsigned char *EndBufPtr = BufPtr + Bytes.size(); in analyzeHeader()
468 if (isBitcodeWrapper(BufPtr, EndBufPtr)) { in analyzeHeader()
473 unsigned Magic = support::endian::read32le(&BufPtr[BWH_MagicField]); in analyzeHeader()
474 unsigned Version = support::endian::read32le(&BufPtr[BWH_VersionField]); in analyzeHeader()
475 unsigned Offset = support::endian::read32le(&BufPtr[BWH_OffsetField]); in analyzeHeader()
476 unsigned Size = support::endian::read32le(&BufPtr[BWH_SizeField]); in analyzeHeader()
477 unsigned CPUType = support::endian::read32le(&BufPtr[BWH_CPUTypeField]); in analyzeHeader()
487 if (SkipBitcodeWrapperHeader(BufPtr, EndBufPtr, true)) in analyzeHeader()
492 Stream = BitstreamCursor(ArrayRef<uint8_t>(BufPtr, EndBufPtr)); in analyzeHeader()
DBitcodeReader.cpp130 const unsigned char *BufPtr = (const unsigned char *)Buffer.getBufferStart(); in initStream() local
131 const unsigned char *BufEnd = BufPtr + Buffer.getBufferSize(); in initStream()
138 if (isBitcodeWrapper(BufPtr, BufEnd)) in initStream()
139 if (SkipBitcodeWrapperHeader(BufPtr, BufEnd, true)) in initStream()
142 BitstreamCursor Stream(ArrayRef<uint8_t>(BufPtr, BufEnd)); in initStream()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DAPInt.cpp2209 char *BufPtr = std::end(Buffer); in toString() local
2230 *--BufPtr = Digits[N % Radix]; in toString()
2233 Str.append(BufPtr, std::end(Buffer)); in toString()