/external/llvm/include/llvm/Bitcode/ |
D | ReaderWriter.h | 113 inline bool isBitcodeWrapper(const unsigned char *BufPtr, in isBitcodeWrapper() argument 117 return BufPtr != BufEnd && in isBitcodeWrapper() 118 BufPtr[0] == 0xDE && in isBitcodeWrapper() 119 BufPtr[1] == 0xC0 && in isBitcodeWrapper() 120 BufPtr[2] == 0x17 && in isBitcodeWrapper() 121 BufPtr[3] == 0x0B; in isBitcodeWrapper() 127 inline bool isRawBitcode(const unsigned char *BufPtr, in isRawBitcode() argument 131 return BufPtr != BufEnd && in isRawBitcode() 132 BufPtr[0] == 'B' && in isRawBitcode() 133 BufPtr[1] == 'C' && in isRawBitcode() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | StringExtras.h | 57 char *BufPtr = BufferEnd; variable 58 *--BufPtr = 0; // Null terminate buffer. 60 *--BufPtr = '0'; // Handle special case. 61 return BufPtr; 66 *--BufPtr = hexdigit(Mod, LowerCase); 69 return BufPtr; 79 char *BufPtr = Buffer+11; variable 81 if (X == 0) *--BufPtr = '0'; // Handle special case... 84 *--BufPtr = '0' + char(X % 10); 88 if (isNeg) *--BufPtr = '-'; // Add negative sign... [all …]
|
/external/clang/unittests/libclang/ |
D | LibclangTest.cpp | 61 char *BufPtr; in ~TestVFO() local 63 clang_VirtualFileOverlay_writeToBuffer(VFO, 0, &BufPtr, &BufSize); in ~TestVFO() 64 std::string BufStr(BufPtr, BufSize); in ~TestVFO() 66 clang_free(BufPtr); in ~TestVFO() 343 char *BufPtr; in TEST() local 345 clang_ModuleMapDescriptor_writeToBuffer(MMD, 0, &BufPtr, &BufSize); in TEST() 346 std::string BufStr(BufPtr, BufSize); in TEST() 348 clang_free(BufPtr); in TEST()
|
/external/clang/lib/Lex/ |
D | MacroArgs.cpp | 236 const char *BufPtr = Result.data() + CurStrLen; in StringifyArgument() local 238 unsigned ActualTokLen = PP.getSpelling(Tok, BufPtr, &Invalid); in StringifyArgument() 243 if (ActualTokLen && BufPtr != &Result[CurStrLen]) in StringifyArgument() 244 memcpy(&Result[CurStrLen], BufPtr, ActualTokLen); in StringifyArgument()
|
D | TokenLexer.cpp | 550 const char *BufPtr = &Buffer[0]; in PasteTokens() local 552 unsigned LHSLen = PP.getSpelling(Tok, BufPtr, &Invalid); in PasteTokens() 553 if (BufPtr != &Buffer[0]) // Really, we want the chars in Buffer! in PasteTokens() 554 memcpy(&Buffer[0], BufPtr, LHSLen); in PasteTokens() 558 BufPtr = Buffer.data() + LHSLen; in PasteTokens() 559 unsigned RHSLen = PP.getSpelling(RHS, BufPtr, &Invalid); in PasteTokens() 562 if (RHSLen && BufPtr != &Buffer[LHSLen]) in PasteTokens() 564 memcpy(&Buffer[LHSLen], BufPtr, RHSLen); in PasteTokens()
|
D | Lexer.cpp | 55 void Lexer::InitLexer(const char *BufStart, const char *BufPtr, in InitLexer() argument 58 BufferPtr = BufPtr; in InitLexer() 132 const char *BufStart, const char *BufPtr, const char *BufEnd) in Lexer() argument 135 InitLexer(BufStart, BufPtr, BufEnd); in Lexer() 231 static size_t getSpellingSlow(const Token &Tok, const char *BufPtr, in getSpellingSlow() argument 236 const char *BufEnd = BufPtr + Tok.getLength(); in getSpellingSlow() 240 while (BufPtr < BufEnd) { in getSpellingSlow() 242 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts); in getSpellingSlow() 243 BufPtr += Size; in getSpellingSlow() 258 size_t RawLength = RawEnd - BufPtr + 1; in getSpellingSlow() [all …]
|
D | PPDirectives.cpp | 1415 const char *BufPtr = &FilenameBuffer[PreAppendSize]; in ConcatenateIncludeName() local 1416 unsigned ActualLen = getSpelling(CurTok, BufPtr); in ConcatenateIncludeName() 1419 if (BufPtr != &FilenameBuffer[PreAppendSize]) in ConcatenateIncludeName() 1420 memcpy(&FilenameBuffer[PreAppendSize], BufPtr, ActualLen); in ConcatenateIncludeName()
|
/external/llvm/lib/Support/ |
D | MemoryBuffer.cpp | 377 char *BufPtr = const_cast<char *>(Buf->getBufferStart()); in getOpenFileImpl() local 387 ssize_t NumRead = ::pread(FD, BufPtr, BytesLeft, MapSize-BytesLeft+Offset); in getOpenFileImpl() 389 ssize_t NumRead = ::read(FD, BufPtr, BytesLeft); in getOpenFileImpl() 398 memset(BufPtr, 0, BytesLeft); // zero-initialize rest of the buffer. in getOpenFileImpl() 402 BufPtr += NumRead; in getOpenFileImpl()
|
D | APInt.cpp | 2184 char *BufPtr = Buffer+65; in toString() local 2205 *--BufPtr = Digits[N % Radix]; in toString() 2208 Str.append(BufPtr, Buffer+65); in toString()
|
/external/llvm/include/llvm/Support/ |
D | YAMLTraits.h | 866 : io(i_o), BufPtr(nullptr), Result(Obj) { 868 BufPtr = new (&Buffer) TNorm(io, Obj); 871 BufPtr = new (&Buffer) TNorm(io); 877 Result = BufPtr->denormalize(io); 879 BufPtr->~TNorm(); 882 TNorm* operator->() { return BufPtr; } 889 TNorm *BufPtr; 898 : io(i_o), BufPtr(nullptr), Result(Obj) { 900 BufPtr = new (&Buffer) TNorm(io, Obj); 903 BufPtr = new TNorm(io); [all …]
|
/external/llvm/tools/llvm-bcanalyzer/ |
D | llvm-bcanalyzer.cpp | 598 const unsigned char *BufPtr = (const unsigned char *)MemBuf->getBufferStart(); in openBitcodeFile() local 599 const unsigned char *EndBufPtr = BufPtr + MemBuf->getBufferSize(); in openBitcodeFile() 603 if (isBitcodeWrapper(BufPtr, EndBufPtr)) in openBitcodeFile() 604 if (SkipBitcodeWrapperHeader(BufPtr, EndBufPtr, true)) in openBitcodeFile() 607 StreamFile = BitstreamReader(BufPtr, EndBufPtr); in openBitcodeFile()
|
/external/clang/include/clang/Lex/ |
D | Lexer.h | 96 void InitLexer(const char *BufStart, const char *BufPtr, const char *BufEnd); 109 const char *BufStart, const char *BufPtr, const char *BufEnd);
|
/external/netperf/src/ |
D | netlib.h | 709 #define ALIGN_BUFFER(BufPtr, Align, Offset) \ argument 710 (char *)(( (ULONG_PTR)(BufPtr) + \
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 738 for (const char *BufPtr = MainBufStart; BufPtr < MainBufEnd; ++BufPtr) { in RewriteInclude() local 739 if (*BufPtr == '#') { in RewriteInclude() 740 if (++BufPtr == MainBufEnd) in RewriteInclude() 742 while (*BufPtr == ' ' || *BufPtr == '\t') in RewriteInclude() 743 if (++BufPtr == MainBufEnd) in RewriteInclude() 745 if (!strncmp(BufPtr, "import", ImportLen)) { in RewriteInclude() 748 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude() 750 BufPtr += ImportLen; in RewriteInclude()
|
D | RewriteModernObjC.cpp | 819 for (const char *BufPtr = MainBufStart; BufPtr < MainBufEnd; ++BufPtr) { in RewriteInclude() local 820 if (*BufPtr == '#') { in RewriteInclude() 821 if (++BufPtr == MainBufEnd) in RewriteInclude() 823 while (*BufPtr == ' ' || *BufPtr == '\t') in RewriteInclude() 824 if (++BufPtr == MainBufEnd) in RewriteInclude() 826 if (!strncmp(BufPtr, "import", ImportLen)) { in RewriteInclude() 829 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude() 831 BufPtr += ImportLen; in RewriteInclude()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 5332 const unsigned char *BufPtr = (const unsigned char*)Buffer->getBufferStart(); in initStreamFromBuffer() local 5333 const unsigned char *BufEnd = BufPtr+Buffer->getBufferSize(); in initStreamFromBuffer() 5340 if (isBitcodeWrapper(BufPtr, BufEnd)) in initStreamFromBuffer() 5341 if (SkipBitcodeWrapperHeader(BufPtr, BufEnd, true)) in initStreamFromBuffer() 5344 StreamFile.reset(new BitstreamReader(BufPtr, BufEnd)); in initStreamFromBuffer() 5742 const unsigned char *BufPtr = (const unsigned char *)Buffer->getBufferStart(); in initStreamFromBuffer() local 5743 const unsigned char *BufEnd = BufPtr + Buffer->getBufferSize(); in initStreamFromBuffer() 5750 if (isBitcodeWrapper(BufPtr, BufEnd)) in initStreamFromBuffer() 5751 if (SkipBitcodeWrapperHeader(BufPtr, BufEnd, true)) in initStreamFromBuffer() 5754 StreamFile.reset(new BitstreamReader(BufPtr, BufEnd)); in initStreamFromBuffer()
|