| /freebsd-14.2/contrib/llvm-project/llvm/lib/MC/MCParser/ |
| H A D | AsmLexer.cpp | 82 if (*CurPtr == '-' || *CurPtr == '+') in LexFloatLiteral() 86 if ((*CurPtr == 'e' || *CurPtr == 'E')) { in LexFloatLiteral() 89 if (*CurPtr == '-' || *CurPtr == '+') in LexFloatLiteral() 107 assert((*CurPtr == 'p' || *CurPtr == 'P' || *CurPtr == '.') && in LexHexFloatLiteral() 127 if (*CurPtr != 'p' && *CurPtr != 'P') in LexHexFloatLiteral() 132 if (*CurPtr == '+' || *CurPtr == '-') in LexHexFloatLiteral() 162 *CurPtr == 'e' || *CurPtr == 'E') in LexIdentifier() 332 (CurPtr[-1] != '0' && CurPtr[-1] != '1') ? CurPtr - 1 : nullptr; in LexDigit() 334 (CurPtr[-1] < '0' || CurPtr[-1] > '9') ? CurPtr - 1 : nullptr; in LexDigit() 382 } else if (*CurPtr == 'o' || *CurPtr == 'O' || *CurPtr == 'q' || in LexDigit() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | TGLexer.cpp | 131 if ((*CurPtr == '\n' || (*CurPtr == '\r')) && in getNextChar() 278 if (*CurPtr == 0 && CurPtr == CurBuf.end()) in LexString() 281 if (*CurPtr == '\n' || *CurPtr == '\r') in LexString() 319 ++CurPtr; in LexString() 324 if (!isalpha(CurPtr[0]) && CurPtr[0] != '_') in LexVarName() 330 while (isalpha(*CurPtr) || isdigit(*CurPtr) || *CurPtr == '_') in LexVarName() 342 while (isalpha(*CurPtr) || isdigit(*CurPtr) || *CurPtr == '_') in LexIdentifier() 909 while (*CurPtr == ' ' || *CurPtr == '\t') in prepLexMacroName() 914 if (*CurPtr != '_' && !isalpha(*CurPtr)) in prepLexMacroName() 918 while (isalpha(*CurPtr) || isdigit(*CurPtr) || *CurPtr == '_') in prepLexMacroName() [all …]
|
| H A D | TGLexer.h | 191 const char *CurPtr = nullptr; variable 215 return CurCode = LexToken(CurPtr == CurBuf.begin()); in Lex() 236 return std::make_pair(CurIntVal, (CurPtr - TokStart)-2); in getCurBinaryIntVal()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Lex/ |
| H A D | Lexer.cpp | 1991 CurPtr = ConsumeChar(CurPtr, Size, Result); in LexNumericConstant() 2127 CurPtr = ConsumeChar(CurPtr, Size, Result); in LexUDSuffix() 2192 CurPtr = LexUDSuffix(Result, CurPtr, true); in LexStringLiteral() 2717 if (CurPtr[0] == CurPtr[1]) in isEndOfBlockCommentWithEscapedNewLine() 2733 } else if (CurPtr[0] == '/' && CurPtr[-1] == '?' && CurPtr[-2] == '?') { in isEndOfBlockCommentWithEscapedNewLine() 2746 if (*CurPtr != '\n' && *CurPtr != '\r') in isEndOfBlockCommentWithEscapedNewLine() 3112 if (CurPtr != BufferStart && (CurPtr[-1] != '\n' && CurPtr[-1] != '\r')) { in LexEndOfFile() 3265 if (CurPtr[i] != CurPtr[0]) in HandleEndOfConflictMarker() 3276 while (CurPtr != BufferEnd && *CurPtr != '\r' && *CurPtr != '\n') in HandleEndOfConflictMarker() 3294 for (; CurPtr != BufferEnd; ++CurPtr) { in findPlaceholderEnd() [all …]
|
| H A D | DependencyDirectivesScanner.cpp | 167 unsigned getOffsetAt(const char *CurPtr) const { in getOffsetAt() 168 return CurPtr - Input.data(); in getOffsetAt() 173 bool reportError(const char *CurPtr, unsigned Err); 196 bool Scanner::reportError(const char *CurPtr, unsigned Err) { in reportError() argument 199 assert(CurPtr >= Input.data() && "invalid buffer ptr"); in reportError() 200 Diags->Report(InputSourceLoc.getLocWithOffset(getOffsetAt(CurPtr)), Err); in reportError()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 149 if (CurPtr[0] == ':') return CurPtr+1; in isLabelTail() 212 if (CurPtr[0] == '.' && CurPtr[1] == '.') { in LexToken() 320 CurPtr[0] == '-' || CurPtr[0] == '$' || in ReadVarName() 321 CurPtr[0] == '.' || CurPtr[0] == '_') { in ReadVarName() 340 for (++CurPtr; isdigit(static_cast<unsigned char>(CurPtr[0])); ++CurPtr) in LexUIntID() 417 CurPtr[0] == '-' || CurPtr[0] == '$' || in LexExclaim() 418 CurPtr[0] == '.' || CurPtr[0] == '_' || CurPtr[0] == '\\') { in LexExclaim() 422 CurPtr[0] == '.' || CurPtr[0] == '_' || CurPtr[0] == '\\') in LexExclaim() 456 for (; isLabelChar(*CurPtr); ++CurPtr) { in LexIdentifier() 996 if ((CurPtr[0] >= 'K' && CurPtr[0] <= 'M') || CurPtr[0] == 'H' || in Lex0x() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | CodeGenCoverage.cpp | 46 const char *CurPtr = Buffer.getBufferStart(); in parse() local 48 while (CurPtr != Buffer.getBufferEnd()) { in parse() 50 const char *LexedBackendName = CurPtr; in parse() 51 while (*CurPtr++ != 0) in parse() 53 if (CurPtr == Buffer.getBufferEnd()) in parse() 57 while (CurPtr != Buffer.getBufferEnd()) { in parse() 58 if (std::distance(CurPtr, Buffer.getBufferEnd()) < 8) in parse() 62 support::endian::read64(CurPtr, llvm::endianness::native); in parse() 63 CurPtr += 8; in parse()
|
| H A D | NativeFormatting.cpp | 28 char *CurPtr = EndPtr; in format_to_buffer() local 31 *--CurPtr = '0' + char(Value % 10); in format_to_buffer() 34 return EndPtr - CurPtr; in format_to_buffer() 155 char *CurPtr = EndPtr; in write_hex() local 158 *--CurPtr = hexdigit(x, !Upper); in write_hex()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | Lexer.h | 734 const char *LexUDSuffix(Token &Result, const char *CurPtr, 741 bool LexIdentifierContinue(Token &Result, const char *CurPtr); 744 bool LexStringLiteral (Token &Result, const char *CurPtr, 746 bool LexRawStringLiteral (Token &Result, const char *CurPtr, 749 bool LexCharConstant (Token &Result, const char *CurPtr, 752 bool SkipWhitespace (Token &Result, const char *CurPtr, 754 bool SkipLineComment (Token &Result, const char *CurPtr, 760 bool IsStartOfConflictMarker(const char *CurPtr); 761 bool HandleEndOfConflictMarker(const char *CurPtr); 763 bool lexEditorPlaceholder(Token &Result, const char *CurPtr); [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | COFF.cpp | 56 uint64_t CurPtr = 0; in createLinkGraphFromCOFFObject() local 62 reinterpret_cast<const object::dos_header *>(Data.data() + CurPtr); in createLinkGraphFromCOFFObject() 65 CurPtr = DH->AddressOfNewExeHeader; in createLinkGraphFromCOFFObject() 66 if (memcmp(Data.data() + CurPtr, COFF::PEMagic, sizeof(COFF::PEMagic)) != in createLinkGraphFromCOFFObject() 70 CurPtr += sizeof(COFF::PEMagic); in createLinkGraphFromCOFFObject() 74 if (Data.size() < CurPtr + sizeof(object::coff_file_header)) in createLinkGraphFromCOFFObject() 78 reinterpret_cast<const object::coff_file_header *>(Data.data() + CurPtr); in createLinkGraphFromCOFFObject() 90 CurPtr); in createLinkGraphFromCOFFObject() 97 CurPtr += sizeof(object::coff_bigobj_file_header); in createLinkGraphFromCOFFObject()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Allocator.h | 87 : AllocTy(std::move(Old.getAllocator())), CurPtr(Old.CurPtr), in BumpPtrAllocatorImpl() 91 Old.CurPtr = Old.End = nullptr; in BumpPtrAllocatorImpl() 106 CurPtr = RHS.CurPtr; 114 RHS.CurPtr = RHS.End = nullptr; 133 CurPtr = (char *)Slabs.front(); in Reset() 134 End = CurPtr + SlabSize; in Reset() 164 && CurPtr != nullptr) { in Allocate() 166 CurPtr = AlignedPtr + SizeToAllocate; in Allocate() 200 CurPtr = AlignedPtr + SizeToAllocate; in Allocate() 305 char *CurPtr = nullptr; [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | Stmt.cpp | 612 for (; CurPtr != StrEnd; ++CurPtr) { in AnalyzeAsmString() 613 switch (*CurPtr) { in AnalyzeAsmString() 618 Result += *CurPtr; in AnalyzeAsmString() 637 if (CurPtr == StrEnd) { in AnalyzeAsmString() 659 if (CurPtr == StrEnd) { in AnalyzeAsmString() 713 --CurPtr; in AnalyzeAsmString() 714 while (CurPtr != StrEnd && isDigit(*CurPtr)) in AnalyzeAsmString() 745 const char *NameEnd = (const char*)memchr(CurPtr, ']', StrEnd-CurPtr); in AnalyzeAsmString() 748 if (NameEnd == CurPtr) in AnalyzeAsmString() 751 StringRef SymbolicName(CurPtr, NameEnd - CurPtr); in AnalyzeAsmString() [all …]
|
| H A D | CommentLexer.cpp | 222 const char *CurPtr = BufferPtr; in findBCPLCommentEnd() local 223 while (CurPtr != BufferEnd) { in findBCPLCommentEnd() 224 while (!isVerticalWhitespace(*CurPtr)) { in findBCPLCommentEnd() 225 CurPtr++; in findBCPLCommentEnd() 226 if (CurPtr == BufferEnd) in findBCPLCommentEnd() 230 const char *EscapePtr = CurPtr - 1; in findBCPLCommentEnd() 238 CurPtr = skipNewline(CurPtr, BufferEnd); in findBCPLCommentEnd() 240 return CurPtr; // Not an escaped newline. in findBCPLCommentEnd()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 1001 Address CurPtr = BeginPtr; in EmitNewArrayInitializer() local 1078 CurPtr = Builder.CreateConstInBoundsGEP( in EmitNewArrayInitializer() 1079 CurPtr, InitListElements, "string.init.end"); in EmitNewArrayInitializer() 1101 CurPtr = CurPtr.withElementType(ElementTy); in EmitNewArrayInitializer() 1120 CharUnits StartAlign = CurPtr.getAlignment(); in EmitNewArrayInitializer() 1134 CurPtr = Address(Builder.CreateInBoundsGEP( in EmitNewArrayInitializer() 1135 CurPtr.getElementType(), CurPtr.getPointer(), in EmitNewArrayInitializer() 1137 CurPtr.getElementType(), in EmitNewArrayInitializer() 1156 CurPtr = CurPtr.withElementType(BeginPtr.getElementType()); in EmitNewArrayInitializer() 1271 CurPtrPhi->addIncoming(CurPtr.getPointer(), EntryBB); in EmitNewArrayInitializer() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Object/ |
| H A D | COFFObjectFile.cpp | 841 uint64_t CurPtr = 0; in initialize() local 853 CurPtr = DH->AddressOfNewExeHeader; in initialize() 859 CurPtr += sizeof(COFF::PEMagic); // Skip the PE magic bytes. in initialize() 864 if (Error E = getObject(COFFHeader, Data, base() + CurPtr)) in initialize() 880 CurPtr += sizeof(coff_bigobj_file_header); in initialize() 890 CurPtr += sizeof(coff_file_header); in initialize() 898 if (Error E = getObject(Header, Data, base() + CurPtr)) in initialize() 905 DataDirAddr = base() + CurPtr + sizeof(pe32_header); in initialize() 909 DataDirAddr = base() + CurPtr + sizeof(pe32plus_header); in initialize() 921 CurPtr += COFFHeader->SizeOfOptionalHeader; in initialize() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/MCParser/ |
| H A D | AsmLexer.h | 28 const char *CurPtr = nullptr; variable
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/AsmParser/ |
| H A D | LLLexer.h | 29 const char *CurPtr; variable
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 437 CurPtr[i] = Val.extractBits(8, n * 8).getZExtValue(); in ReadDataFromGlobal() 446 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 450 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 454 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 488 CurPtr += NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal() 529 CurPtr += BytesWritten; in ReadDataFromGlobal() 606 unsigned char *CurPtr = RawBytes; in FoldReinterpretLoadFromConst() local 611 CurPtr += -Offset; in FoldReinterpretLoadFromConst() 616 if (!ReadDataFromGlobal(C, Offset, CurPtr, BytesLeft, DL)) in FoldReinterpretLoadFromConst() 662 unsigned char *CurPtr = RawBytes.data(); in ReadByteArrayFromGlobal() local [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | AttributorAttributes.cpp | 1611 auto &PtrOI = OffsetInfoMap[CurPtr]; in updateImpl() 1627 Value *CurPtr = U.get(); in updateImpl() local 1631 assert(OffsetInfoMap.count(CurPtr) && in updateImpl() 1636 return HandlePassthroughUser(Usr, CurPtr, Follow); in updateImpl() 1649 auto &PtrOI = OffsetInfoMap[CurPtr]; in updateImpl() 1666 return HandlePassthroughUser(Usr, CurPtr, Follow); in updateImpl() 1676 auto &PtrOI = OffsetInfoMap[CurPtr]; in updateImpl() 1729 << *CurPtr << " in " << *Usr << "\n"); in updateImpl() 1744 if (getUnderlyingObject(CurPtr) == &AssociatedValue) in updateImpl() 1842 if (OtherOp == CurPtr) { in updateImpl() [all …]
|