| /netbsd-src/external/apache2/llvm/dist/llvm/lib/MC/MCParser/ |
| H A D | AsmLexer.cpp | 46 CurPtr = ptr; in setBuffer() 48 CurPtr = CurBuf.begin(); in setBuffer() 59 return AsmToken(AsmToken::Error, StringRef(Loc, CurPtr - Loc)); in ReturnError() 63 if (CurPtr == CurBuf.end()) in getNextChar() 65 return (unsigned char)*CurPtr++; in getNextChar() 69 if (CurPtr == CurBuf.end()) in peekNextChar() 71 return (unsigned char)*CurPtr; in peekNextChar() 79 while (isDigit(*CurPtr)) in LexFloatLiteral() 80 ++CurPtr; in LexFloatLiteral() 82 if (*CurPtr == '-' || *CurPtr == '+') in LexFloatLiteral() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/ |
| H A D | Lexer.cpp | 603 const char *CurPtr = Buffer.begin(); in ComputePreamble() local 605 while (CurPtr != Buffer.end()) { in ComputePreamble() 606 char ch = *CurPtr++; in ComputePreamble() 613 if (CurPtr != Buffer.end()) in ComputePreamble() 614 MaxLineOffset = CurPtr - Buffer.begin(); in ComputePreamble() 1596 bool Lexer::tryConsumeIdentifierUCN(const char *&CurPtr, unsigned Size, in tryConsumeIdentifierUCN() argument 1598 const char *UCNPtr = CurPtr + Size; in tryConsumeIdentifierUCN() 1599 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); in tryConsumeIdentifierUCN() 1605 makeCharRange(*this, CurPtr, UCNPtr), in tryConsumeIdentifierUCN() 1609 if ((UCNPtr - CurPtr == 6 && CurPtr[1] == 'u') || in tryConsumeIdentifierUCN() [all …]
|
| H A D | DependencyDirectivesSourceMinimizer.cpp | 99 bool reportError(const char *CurPtr, unsigned Err); 109 bool Minimizer::reportError(const char *CurPtr, unsigned Err) { in reportError() argument 112 assert(CurPtr >= Input.data() && "invalid buffer ptr"); in reportError() 113 Diags->Report(InputSourceLoc.getLocWithOffset(CurPtr - Input.data()), Err); in reportError()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/TableGen/ |
| H A D | TGLexer.cpp | 50 CurPtr = CurBuf.begin(); in TGLexer() 91 CurPtr = ParentIncludeLoc.getPointer(); in processEOF() 95 TokStart = CurPtr; in processEOF() 107 char CurChar = *CurPtr++; in getNextChar() 115 if (CurPtr - 1 == CurBuf.end()) { in getNextChar() 116 --CurPtr; // Arrange for another call to return EOF again. in getNextChar() 129 if ((*CurPtr == '\n' || (*CurPtr == '\r')) && in getNextChar() 130 *CurPtr != CurChar) in getNextChar() 131 ++CurPtr; // Eat the two char newline sequence. in getNextChar() 137 return *(CurPtr + Index); in peekNextChar() [all …]
|
| H A D | TGLexer.h | 83 const char *CurPtr = nullptr; variable 107 return CurCode = LexToken(CurPtr == CurBuf.begin()); in Lex() 129 return std::make_pair(CurIntVal, (CurPtr - TokStart)-2); in getCurBinaryIntVal()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 147 static const char *isLabelTail(const char *CurPtr) { in isLabelTail() argument 149 if (CurPtr[0] == ':') return CurPtr+1; in isLabelTail() 150 if (!isLabelChar(CurPtr[0])) return nullptr; in isLabelTail() 151 ++CurPtr; in isLabelTail() 163 CurPtr = CurBuf.begin(); in LLLexer() 167 char CurChar = *CurPtr++; in getNextChar() 173 if (CurPtr-1 != CurBuf.end()) in getNextChar() 177 --CurPtr; // Another call to lex will return EOF again. in getNextChar() 184 TokStart = CurPtr; in LexToken() 208 if (const char *Ptr = isLabelTail(CurPtr)) { in LexToken() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Lex/ |
| H A D | Lexer.h | 574 bool CheckUnicodeWhitespace(Token &Result, uint32_t C, const char *CurPtr); 579 bool LexUnicode(Token &Result, uint32_t C, const char *CurPtr); 700 const char *LexUDSuffix(Token &Result, const char *CurPtr, 704 bool LexIdentifier (Token &Result, const char *CurPtr); 705 bool LexNumericConstant (Token &Result, const char *CurPtr); 706 bool LexStringLiteral (Token &Result, const char *CurPtr, 708 bool LexRawStringLiteral (Token &Result, const char *CurPtr, 710 bool LexAngledStringLiteral(Token &Result, const char *CurPtr); 711 bool LexCharConstant (Token &Result, const char *CurPtr, 713 bool LexEndOfFile (Token &Result, const char *CurPtr); [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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() 61 uint64_t RuleID = support::endian::read64(CurPtr, support::native); in parse() 62 CurPtr += 8; in parse()
|
| H A D | NativeFormatting.cpp | 22 char *CurPtr = EndPtr; in format_to_buffer() local 25 *--CurPtr = '0' + char(Value % 10); in format_to_buffer() 28 return EndPtr - CurPtr; in format_to_buffer() 152 char *CurPtr = EndPtr; in write_hex() local 155 *--CurPtr = hexdigit(x, !Upper); in write_hex()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
| H A D | Allocator.h | 89 : AllocatorT(static_cast<AllocatorT &&>(Old)), CurPtr(Old.CurPtr), in BumpPtrAllocatorImpl() 93 Old.CurPtr = Old.End = nullptr; in BumpPtrAllocatorImpl() 108 CurPtr = RHS.CurPtr; 116 RHS.CurPtr = RHS.End = nullptr; 135 CurPtr = (char *)Slabs.front(); in Reset() 136 End = CurPtr + SlabSize; in Reset() 149 size_t Adjustment = offsetToAlignedAddr(CurPtr, Alignment); in Allocate() 159 if (Adjustment + SizeToAllocate <= size_t(End - CurPtr)) { in Allocate() 160 char *AlignedPtr = CurPtr + Adjustment; in Allocate() 161 CurPtr = AlignedPtr + SizeToAllocate; in Allocate() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A D | Stmt.cpp | 599 const char *CurPtr = StrStart; in AnalyzeAsmString() local 605 for (; CurPtr != StrEnd; ++CurPtr) { in AnalyzeAsmString() 606 switch (*CurPtr) { in AnalyzeAsmString() 611 Result += *CurPtr; in AnalyzeAsmString() 630 if (CurPtr == StrEnd) { in AnalyzeAsmString() 636 char CurChar = *CurPtr++; in AnalyzeAsmString() 650 if (CurPtr == StrEnd) { in AnalyzeAsmString() 652 DiagOffs = CurPtr-StrStart-1; in AnalyzeAsmString() 656 char EscapedChar = *CurPtr++; in AnalyzeAsmString() 680 const char *Begin = CurPtr - 1; // Points to the character following '%'. in AnalyzeAsmString() [all …]
|
| H A D | CommentLexer.cpp | 241 const char *CurPtr = BufferPtr; in findBCPLCommentEnd() local 242 while (CurPtr != BufferEnd) { in findBCPLCommentEnd() 243 while (!isVerticalWhitespace(*CurPtr)) { in findBCPLCommentEnd() 244 CurPtr++; in findBCPLCommentEnd() 245 if (CurPtr == BufferEnd) in findBCPLCommentEnd() 249 const char *EscapePtr = CurPtr - 1; in findBCPLCommentEnd() 257 CurPtr = skipNewline(CurPtr, BufferEnd); in findBCPLCommentEnd() 259 return CurPtr; // Not an escaped newline. in findBCPLCommentEnd()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 990 Address CurPtr = BeginPtr; in EmitNewArrayInitializer() local 1026 Builder.CreateMemSet(CurPtr, Builder.getInt8(0), RemainingSize, false); in EmitNewArrayInitializer() 1039 AggValueSlot::forAddr(CurPtr, ElementType.getQualifiers(), in EmitNewArrayInitializer() 1052 CurPtr = in EmitNewArrayInitializer() 1053 Address(Builder.CreateInBoundsGEP(CurPtr.getElementType(), in EmitNewArrayInitializer() 1054 CurPtr.getPointer(), in EmitNewArrayInitializer() 1057 CurPtr.getAlignment().alignmentAtOffset(InitListElements * in EmitNewArrayInitializer() 1078 CurPtr = Builder.CreateElementBitCast(CurPtr, ElementTy); in EmitNewArrayInitializer() 1097 CharUnits StartAlign = CurPtr.getAlignment(); in EmitNewArrayInitializer() 1104 Builder.CreateBitCast(CurPtr.getPointer(), BeginPtr.getType()); in EmitNewArrayInitializer() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Object/ |
| H A D | COFFObjectFile.cpp | 730 uint64_t CurPtr = 0; in initialize() local 742 CurPtr = DH->AddressOfNewExeHeader; in initialize() 744 if (memcmp(base() + CurPtr, COFF::PEMagic, sizeof(COFF::PEMagic)) != 0) { in initialize() 747 CurPtr += sizeof(COFF::PEMagic); // Skip the PE magic bytes. in initialize() 752 if (Error E = getObject(COFFHeader, Data, base() + CurPtr)) in initialize() 760 if (Error E = getObject(COFFBigObjHeader, Data, base() + CurPtr)) in initialize() 768 CurPtr += sizeof(coff_bigobj_file_header); in initialize() 778 CurPtr += sizeof(coff_file_header); in initialize() 786 if (Error E = getObject(Header, Data, base() + CurPtr)) in initialize() 793 DataDirAddr = base() + CurPtr + sizeof(pe32_header); in initialize() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/MC/MCParser/ |
| H A D | AsmLexer.h | 28 const char *CurPtr = nullptr; variable
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 423 bool ReadDataFromGlobal(Constant *C, uint64_t ByteOffset, unsigned char *CurPtr, in ReadDataFromGlobal() argument 445 CurPtr[i] = (unsigned char)(Val >> (n * 8)); in ReadDataFromGlobal() 454 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 458 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 462 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 479 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal() 496 CurPtr += NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal() 520 if (!ReadDataFromGlobal(C->getAggregateElement(Index), Offset, CurPtr, in ReadDataFromGlobal() 531 CurPtr += BytesWritten; in ReadDataFromGlobal() 539 return ReadDataFromGlobal(CE->getOperand(0), ByteOffset, CurPtr, in ReadDataFromGlobal() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/AsmParser/ |
| H A D | LLLexer.h | 29 const char *CurPtr; variable
|