HomeSort by: relevance | last modified time | path
    Searched refs:BufPtr (Results 1 - 12 of 12) sorted by relevancy

  /src/external/apache2/llvm/dist/llvm/include/llvm/Bitcode/
BitcodeReader.h 199 inline bool isBitcodeWrapper(const unsigned char *BufPtr,
203 return BufPtr != BufEnd &&
204 BufPtr[0] == 0xDE &&
205 BufPtr[1] == 0xC0 &&
206 BufPtr[2] == 0x17 &&
207 BufPtr[3] == 0x0B;
212 inline bool isRawBitcode(const unsigned char *BufPtr,
216 return BufPtr != BufEnd &&
217 BufPtr[0] == 'B' &&
218 BufPtr[1] == 'C' &
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
StringExtras.h 146 char *BufPtr = std::end(Buffer);
148 if (X == 0) *--BufPtr = '0';
152 *--BufPtr = hexdigit(Mod, LowerCase);
156 return std::string(BufPtr, std::end(Buffer));
279 char *BufPtr = std::end(Buffer);
281 if (X == 0) *--BufPtr = '0'; // Handle special case...
284 *--BufPtr = '0' + char(X % 10);
288 if (isNeg) *--BufPtr = '-'; // Add negative sign...
289 return std::string(BufPtr, std::end(Buffer));
  /src/external/apache2/llvm/dist/clang/lib/Lex/
MacroArgs.cpp 250 const char *BufPtr = Result.data() + CurStrLen;
252 unsigned ActualTokLen = PP.getSpelling(Tok, BufPtr, &Invalid);
256 // the string instead of filling in BufPtr, memcpy it onto our string.
257 if (ActualTokLen && BufPtr != &Result[CurStrLen])
258 memcpy(&Result[CurStrLen], BufPtr, ActualTokLen);
TokenLexer.cpp 773 const char *BufPtr = &Buffer[0];
775 unsigned LHSLen = PP.getSpelling(LHSTok, BufPtr, &Invalid);
776 if (BufPtr != &Buffer[0]) // Really, we want the chars in Buffer!
777 memcpy(&Buffer[0], BufPtr, LHSLen);
781 BufPtr = Buffer.data() + LHSLen;
782 unsigned RHSLen = PP.getSpelling(RHS, BufPtr, &Invalid);
785 if (RHSLen && BufPtr != &Buffer[LHSLen])
787 memcpy(&Buffer[LHSLen], BufPtr, RHSLen);
Preprocessor.cpp 1037 const char *BufPtr = &FilenameBuffer[PreAppendSize];
1038 unsigned ActualLen = getSpelling(FilenameTok, BufPtr);
1041 if (BufPtr != &FilenameBuffer[PreAppendSize])
1042 memcpy(&FilenameBuffer[PreAppendSize], BufPtr, ActualLen);
Lexer.cpp 79 void Lexer::InitLexer(const char *BufStart, const char *BufPtr,
82 BufferPtr = BufPtr;
150 const char *BufStart, const char *BufPtr, const char *BufEnd)
152 InitLexer(BufStart, BufPtr, BufEnd);
273 static size_t getSpellingSlow(const Token &Tok, const char *BufPtr,
278 const char *BufEnd = BufPtr + Tok.getLength();
282 while (BufPtr < BufEnd) {
284 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts);
285 BufPtr += Size;
300 size_t RawLength = RawEnd - BufPtr + 1
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
BitcodeAnalyzer.cpp 472 const unsigned char *BufPtr = (const unsigned char *)Bytes.data();
473 const unsigned char *EndBufPtr = BufPtr + Bytes.size();
477 if (isBitcodeWrapper(BufPtr, EndBufPtr)) {
482 unsigned Magic = support::endian::read32le(&BufPtr[BWH_MagicField]);
483 unsigned Version = support::endian::read32le(&BufPtr[BWH_VersionField]);
484 unsigned Offset = support::endian::read32le(&BufPtr[BWH_OffsetField]);
485 unsigned Size = support::endian::read32le(&BufPtr[BWH_SizeField]);
486 unsigned CPUType = support::endian::read32le(&BufPtr[BWH_CPUTypeField]);
496 if (SkipBitcodeWrapperHeader(BufPtr, EndBufPtr, true))
501 Stream = BitstreamCursor(ArrayRef<uint8_t>(BufPtr, EndBufPtr))
    [all...]
BitcodeReader.cpp 130 const unsigned char *BufPtr = (const unsigned char *)Buffer.getBufferStart();
131 const unsigned char *BufEnd = BufPtr + Buffer.getBufferSize();
138 if (isBitcodeWrapper(BufPtr, BufEnd))
139 if (SkipBitcodeWrapperHeader(BufPtr, BufEnd, true))
142 BitstreamCursor Stream(ArrayRef<uint8_t>(BufPtr, BufEnd));
  /src/external/apache2/llvm/dist/clang/include/clang/Lex/
Lexer.h 138 void InitLexer(const char *BufStart, const char *BufPtr, const char *BufEnd);
151 const char *BufStart, const char *BufPtr, const char *BufEnd);
  /src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/
RewriteModernObjC.cpp 813 for (const char *BufPtr = MainBufStart; BufPtr < MainBufEnd; ++BufPtr) {
814 if (*BufPtr == '#') {
815 if (++BufPtr == MainBufEnd)
817 while (*BufPtr == ' ' || *BufPtr == '\t')
818 if (++BufPtr == MainBufEnd)
820 if (!strncmp(BufPtr, "import", ImportLen)) {
823 LocStart.getLocWithOffset(BufPtr-MainBufStart)
    [all...]
RewriteObjC.cpp 739 for (const char *BufPtr = MainBufStart; BufPtr < MainBufEnd; ++BufPtr) {
740 if (*BufPtr == '#') {
741 if (++BufPtr == MainBufEnd)
743 while (*BufPtr == ' ' || *BufPtr == '\t')
744 if (++BufPtr == MainBufEnd)
746 if (!strncmp(BufPtr, "import", ImportLen)) {
749 LocStart.getLocWithOffset(BufPtr-MainBufStart)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Support/
APInt.cpp 2208 char *BufPtr = std::end(Buffer);
2229 *--BufPtr = Digits[N % Radix];
2232 Str.append(BufPtr, std::end(Buffer));

Completed in 46 milliseconds