| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Bitcode/ |
| H A D | BitcodeReader.h | 243 return BufPtr != BufEnd && in isBitcodeWrapper() 244 BufPtr[0] == 0xDE && in isBitcodeWrapper() 245 BufPtr[1] == 0xC0 && in isBitcodeWrapper() 246 BufPtr[2] == 0x17 && in isBitcodeWrapper() 247 BufPtr[3] == 0x0B; in isBitcodeWrapper() 256 return BufPtr != BufEnd && in isRawBitcode() 257 BufPtr[0] == 'B' && in isRawBitcode() 258 BufPtr[1] == 'C' && in isRawBitcode() 260 BufPtr[3] == 0xde; in isRawBitcode() 301 BufPtr += Offset; in SkipBitcodeWrapperHeader() [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | InstrProfilingPlatformAIX.c | 33 char *BufPtr = Buf; in FindBinaryId() local 37 RC = loadquery(L_GETXINFO | L_IGNOREUNLOAD, BufPtr, (unsigned int)BufSize); in FindBinaryId() 40 BufPtr = malloc(BufSize); in FindBinaryId() 41 if (BufPtr != 0) in FindBinaryId() 42 RC = loadquery(L_GETXINFO | L_IGNOREUNLOAD, BufPtr, (unsigned int)BufSize); in FindBinaryId() 49 struct ld_xinfo *CurInfo = (struct ld_xinfo *)BufPtr; in FindBinaryId() 84 if (BufSize != sizeof(Buf) && BufPtr != 0) in FindBinaryId() 85 free(BufPtr); in FindBinaryId()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | StringExtras.h | 168 char *BufPtr = std::end(Buffer); 170 if (X == 0) *--BufPtr = '0'; 174 *--BufPtr = hexdigit(Mod, LowerCase); 178 return std::string(BufPtr, std::end(Buffer)); 311 char *BufPtr = std::end(Buffer); 313 if (X == 0) *--BufPtr = '0'; // Handle special case... 316 *--BufPtr = '0' + char(X % 10); 320 if (isNeg) *--BufPtr = '-'; // Add negative sign... 321 return std::string(BufPtr, std::end(Buffer));
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Lex/ |
| H A D | MacroArgs.cpp | 250 const char *BufPtr = Result.data() + CurStrLen; in StringifyArgument() local 252 unsigned ActualTokLen = PP.getSpelling(Tok, BufPtr, &Invalid); in StringifyArgument() 257 if (ActualTokLen && BufPtr != &Result[CurStrLen]) in StringifyArgument() 258 memcpy(&Result[CurStrLen], BufPtr, ActualTokLen); in StringifyArgument()
|
| H A D | TokenLexer.cpp | 772 const char *BufPtr = &Buffer[0]; in pasteTokens() local 774 unsigned LHSLen = PP.getSpelling(LHSTok, BufPtr, &Invalid); in pasteTokens() 775 if (BufPtr != &Buffer[0]) // Really, we want the chars in Buffer! in pasteTokens() 776 memcpy(&Buffer[0], BufPtr, LHSLen); in pasteTokens() 780 BufPtr = Buffer.data() + LHSLen; in pasteTokens() 781 unsigned RHSLen = PP.getSpelling(RHS, BufPtr, &Invalid); in pasteTokens() 784 if (RHSLen && BufPtr != &Buffer[LHSLen]) in pasteTokens() 786 memcpy(&Buffer[LHSLen], BufPtr, RHSLen); in pasteTokens()
|
| H A D | DependencyDirectivesScanner.cpp | 565 const char *BufPtr = Input.begin() + Tok.Offset; in cleanStringIfNeeded() local 567 while (BufPtr < AfterIdent) { in cleanStringIfNeeded() 568 auto [Char, Size] = Lexer::getCharAndSizeNoWarn(BufPtr, LangOpts); in cleanStringIfNeeded() 570 BufPtr += Size; in cleanStringIfNeeded()
|
| H A D | Lexer.cpp | 83 void Lexer::InitLexer(const char *BufStart, const char *BufPtr, in InitLexer() argument 86 BufferPtr = BufPtr; in InitLexer() 159 InitLexer(BufStart, BufPtr, BufEnd); in Lexer() 285 const char *BufEnd = BufPtr + Tok.getLength(); in getSpellingSlow() 289 while (BufPtr < BufEnd) { in getSpellingSlow() 292 BufPtr += CharAndSize.Size; in getSpellingSlow() 307 size_t RawLength = RawEnd - BufPtr + 1; in getSpellingSlow() 310 memcpy(Spelling + Length, BufPtr, RawLength); in getSpellingSlow() 312 BufPtr += RawLength; in getSpellingSlow() 318 while (BufPtr < BufEnd) { in getSpellingSlow() [all …]
|
| H A D | Preprocessor.cpp | 1043 const char *BufPtr = &FilenameBuffer[PreAppendSize]; in LexHeaderName() local 1044 unsigned ActualLen = getSpelling(FilenameTok, BufPtr); in LexHeaderName() 1047 if (BufPtr != &FilenameBuffer[PreAppendSize]) in LexHeaderName() 1048 memcpy(&FilenameBuffer[PreAppendSize], BufPtr, ActualLen); in LexHeaderName()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeAnalyzer.cpp | 481 const unsigned char *BufPtr = (const unsigned char *)Bytes.data(); in analyzeHeader() local 482 const unsigned char *EndBufPtr = BufPtr + Bytes.size(); in analyzeHeader() 486 if (isBitcodeWrapper(BufPtr, EndBufPtr)) { in analyzeHeader() 491 unsigned Magic = support::endian::read32le(&BufPtr[BWH_MagicField]); in analyzeHeader() 492 unsigned Version = support::endian::read32le(&BufPtr[BWH_VersionField]); in analyzeHeader() 493 unsigned Offset = support::endian::read32le(&BufPtr[BWH_OffsetField]); in analyzeHeader() 494 unsigned Size = support::endian::read32le(&BufPtr[BWH_SizeField]); in analyzeHeader() 495 unsigned CPUType = support::endian::read32le(&BufPtr[BWH_CPUTypeField]); in analyzeHeader() 505 if (SkipBitcodeWrapperHeader(BufPtr, EndBufPtr, true)) in analyzeHeader() 510 Stream = BitstreamCursor(ArrayRef<uint8_t>(BufPtr, EndBufPtr)); in analyzeHeader()
|
| H A D | BitcodeReader.cpp | 138 const unsigned char *BufPtr = (const unsigned char *)Buffer.getBufferStart(); in initStream() local 139 const unsigned char *BufEnd = BufPtr + Buffer.getBufferSize(); in initStream() 146 if (isBitcodeWrapper(BufPtr, BufEnd)) in initStream() 147 if (SkipBitcodeWrapperHeader(BufPtr, BufEnd, true)) in initStream() 150 BitstreamCursor Stream(ArrayRef<uint8_t>(BufPtr, BufEnd)); in initStream()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | Lexer.h | 160 void InitLexer(const char *BufStart, const char *BufPtr, const char *BufEnd); 174 const char *BufStart, const char *BufPtr, const char *BufEnd,
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteObjC.cpp | 739 for (const char *BufPtr = MainBufStart; BufPtr < MainBufEnd; ++BufPtr) { in RewriteInclude() local 740 if (*BufPtr == '#') { in RewriteInclude() 741 if (++BufPtr == MainBufEnd) in RewriteInclude() 743 while (*BufPtr == ' ' || *BufPtr == '\t') in RewriteInclude() 744 if (++BufPtr == MainBufEnd) in RewriteInclude() 746 if (!strncmp(BufPtr, "import", ImportLen)) { in RewriteInclude() 749 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude() 751 BufPtr += ImportLen; in RewriteInclude()
|
| H A D | RewriteModernObjC.cpp | 814 for (const char *BufPtr = MainBufStart; BufPtr < MainBufEnd; ++BufPtr) { in RewriteInclude() local 815 if (*BufPtr == '#') { in RewriteInclude() 816 if (++BufPtr == MainBufEnd) in RewriteInclude() 818 while (*BufPtr == ' ' || *BufPtr == '\t') in RewriteInclude() 819 if (++BufPtr == MainBufEnd) in RewriteInclude() 821 if (!strncmp(BufPtr, "import", ImportLen)) { in RewriteInclude() 824 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude() 826 BufPtr += ImportLen; in RewriteInclude()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | APInt.cpp | 2206 char *BufPtr = std::end(Buffer); in toString() local 2227 *--BufPtr = Digits[N % Radix]; in toString() 2230 Str.append(BufPtr, std::end(Buffer)); in toString()
|