| /freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
| H A D | AsmLexer.cpp | 126 CurPtr = ptr; in setBuffer() 128 CurPtr = CurBuf.begin(); in setBuffer() 139 return AsmToken(AsmToken::Error, StringRef(Loc, CurPtr - Loc)); in ReturnError() 143 if (CurPtr == CurBuf.end()) in getNextChar() 145 return (unsigned char)*CurPtr++; in getNextChar() 149 if (CurPtr == CurBuf.end()) in peekNextChar() 151 return (unsigned char)*CurPtr; in peekNextChar() 159 while (isDigit(*CurPtr)) in LexFloatLiteral() 160 ++CurPtr; in LexFloatLiteral() 162 if (*CurPtr == '-' || *CurPtr == '+') in LexFloatLiteral() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | TGLexer.cpp | 78 CurPtr = CurBuf.begin(); in TGLexer() 101 return {getLoc(), SMLoc::getFromPointer(CurPtr)}; in getLocRange() 127 CurPtr = ParentIncludeLoc.getPointer(); in processEOF() 131 TokStart = CurPtr; in processEOF() 143 char CurChar = *CurPtr++; in getNextChar() 151 if (CurPtr - 1 == CurBuf.end()) { in getNextChar() 152 --CurPtr; // Arrange for another call to return EOF again. in getNextChar() 165 if ((*CurPtr == '\n' || (*CurPtr == '\r')) && in getNextChar() 166 *CurPtr != CurChar) in getNextChar() 167 ++CurPtr; // Eat the two char newline sequence. in getNextChar() [all …]
|
| H A D | TGLexer.h | 194 const char *CurPtr = nullptr; variable 218 return CurCode = LexToken(CurPtr == CurBuf.begin()); in Lex() 239 return {CurIntVal, (CurPtr - TokStart) - 2}; in getCurBinaryIntVal()
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | Lexer.cpp | 653 const char *CurPtr = Buffer.begin(); in ComputePreamble() local 655 while (CurPtr != Buffer.end()) { in ComputePreamble() 656 char ch = *CurPtr++; in ComputePreamble() 663 if (CurPtr != Buffer.end()) in ComputePreamble() 664 MaxLineOffset = CurPtr - Buffer.begin(); in ComputePreamble() 1785 bool Lexer::tryConsumeIdentifierUCN(const char *&CurPtr, unsigned Size, in tryConsumeIdentifierUCN() argument 1787 const char *UCNPtr = CurPtr + Size; in tryConsumeIdentifierUCN() 1788 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); in tryConsumeIdentifierUCN() 1800 makeCharRange(*this, CurPtr, UCNPtr), in tryConsumeIdentifierUCN() 1809 makeCharRange(*this, CurPtr, UCNPtr)); in tryConsumeIdentifierUCN() [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/contrib/llvm-project/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 159 static const char *isLabelTail(const char *CurPtr) { in isLabelTail() argument 161 if (CurPtr[0] == ':') return CurPtr+1; in isLabelTail() 162 if (!isLabelChar(CurPtr[0])) return nullptr; in isLabelTail() 163 ++CurPtr; in isLabelTail() 174 CurPtr = CurBuf.begin(); in LLLexer() 178 char CurChar = *CurPtr++; in getNextChar() 184 if (CurPtr-1 != CurBuf.end()) in getNextChar() 188 --CurPtr; // Another call to lex will return EOF again. in getNextChar() 195 TokStart = CurPtr; in LexToken() 218 if (const char *Ptr = isLabelTail(CurPtr)) { in LexToken() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | CodeGenCoverage.cpp | 44 const char *CurPtr = Buffer.getBufferStart(); in parse() local 46 while (CurPtr != Buffer.getBufferEnd()) { in parse() 48 const char *LexedBackendName = CurPtr; in parse() 49 while (*CurPtr++ != 0) in parse() 51 if (CurPtr == Buffer.getBufferEnd()) in parse() 55 while (CurPtr != Buffer.getBufferEnd()) { in parse() 56 if (std::distance(CurPtr, Buffer.getBufferEnd()) < 8) in parse() 60 support::endian::read64(CurPtr, llvm::endianness::native); in parse() 61 CurPtr += 8; in parse()
|
| H A D | NativeFormatting.cpp | 27 char *CurPtr = EndPtr; in format_to_buffer() local 30 *--CurPtr = '0' + char(Value % 10); in format_to_buffer() 33 return EndPtr - CurPtr; in format_to_buffer() 154 char *CurPtr = EndPtr; in write_hex() local 157 *--CurPtr = hexdigit(x, !Upper); in write_hex()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | Lexer.h | 632 bool CheckUnicodeWhitespace(Token &Result, uint32_t C, const char *CurPtr); 634 bool LexUnicodeIdentifierStart(Token &Result, uint32_t C, const char *CurPtr); 747 const char *LexUDSuffix(Token &Result, const char *CurPtr, 754 bool LexIdentifierContinue(Token &Result, const char *CurPtr); 756 bool LexNumericConstant (Token &Result, const char *CurPtr); 757 bool LexStringLiteral (Token &Result, const char *CurPtr, 759 bool LexRawStringLiteral (Token &Result, const char *CurPtr, 761 bool LexAngledStringLiteral(Token &Result, const char *CurPtr); 762 bool LexCharConstant (Token &Result, const char *CurPtr, 764 bool LexEndOfFile (Token &Result, const char *CurPtr); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | COFF.cpp | 55 uint64_t CurPtr = 0; in createLinkGraphFromCOFFObject() local 61 reinterpret_cast<const object::dos_header *>(Data.data() + CurPtr); in createLinkGraphFromCOFFObject() 64 CurPtr = DH->AddressOfNewExeHeader; in createLinkGraphFromCOFFObject() 65 if (memcmp(Data.data() + CurPtr, COFF::PEMagic, sizeof(COFF::PEMagic)) != in createLinkGraphFromCOFFObject() 69 CurPtr += sizeof(COFF::PEMagic); in createLinkGraphFromCOFFObject() 73 if (Data.size() < CurPtr + sizeof(object::coff_file_header)) in createLinkGraphFromCOFFObject() 77 reinterpret_cast<const object::coff_file_header *>(Data.data() + CurPtr); in createLinkGraphFromCOFFObject() 89 CurPtr); in createLinkGraphFromCOFFObject() 96 CurPtr += sizeof(object::coff_bigobj_file_header); in createLinkGraphFromCOFFObject()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Allocator.h | 88 : AllocTy(std::move(Old.getAllocator())), CurPtr(Old.CurPtr), in BumpPtrAllocatorImpl() 92 Old.CurPtr = Old.End = nullptr; in BumpPtrAllocatorImpl() 107 CurPtr = RHS.CurPtr; 115 RHS.CurPtr = RHS.End = nullptr; 134 CurPtr = (char *)Slabs.front(); in Reset() 135 End = CurPtr + SlabSize; in Reset() 153 uintptr_t AlignedPtr = alignAddr(CurPtr, Alignment); in Allocate() 162 assert(AllocEndPtr >= uintptr_t(CurPtr) && in Allocate() 168 && CurPtr != nullptr)) { in Allocate() 169 CurPtr = reinterpret_cast<char *>(AllocEndPtr); in Allocate() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | Stmt.cpp | 634 const char *CurPtr = StrStart; in AnalyzeAsmString() local 640 for (; CurPtr != StrEnd; ++CurPtr) { in AnalyzeAsmString() 641 switch (*CurPtr) { in AnalyzeAsmString() 646 Result += *CurPtr; in AnalyzeAsmString() 665 if (CurPtr == StrEnd) { in AnalyzeAsmString() 671 char CurChar = *CurPtr++; in AnalyzeAsmString() 687 if (CurPtr == StrEnd) { in AnalyzeAsmString() 689 DiagOffs = CurPtr-StrStart-1; in AnalyzeAsmString() 693 char EscapedChar = *CurPtr++; in AnalyzeAsmString() 722 const char *Begin = CurPtr - 1; // Points to the character following '%'. in AnalyzeAsmString() [all …]
|
| H A D | CommentLexer.cpp | 231 const char *CurPtr = BufferPtr; in findBCPLCommentEnd() local 232 while (CurPtr != BufferEnd) { in findBCPLCommentEnd() 233 while (!isVerticalWhitespace(*CurPtr)) { in findBCPLCommentEnd() 234 CurPtr++; in findBCPLCommentEnd() 235 if (CurPtr == BufferEnd) in findBCPLCommentEnd() 239 const char *EscapePtr = CurPtr - 1; in findBCPLCommentEnd() 247 CurPtr = skipNewline(CurPtr, BufferEnd); in findBCPLCommentEnd() 249 return CurPtr; // Not an escaped newline. in findBCPLCommentEnd()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 1009 Address CurPtr = BeginPtr; in EmitNewArrayInitializer() local 1045 Builder.CreateMemSet(CurPtr, Builder.getInt8(0), RemainingSize, false); in EmitNewArrayInitializer() 1072 AggValueSlot::forAddr(CurPtr, ElementType.getQualifiers(), in EmitNewArrayInitializer() 1085 CurPtr = Builder.CreateConstInBoundsGEP( in EmitNewArrayInitializer() 1086 CurPtr, InitListElements, "string.init.end"); in EmitNewArrayInitializer() 1108 CurPtr = CurPtr.withElementType(ElementTy); in EmitNewArrayInitializer() 1133 CharUnits StartAlign = CurPtr.getAlignment(); in EmitNewArrayInitializer() 1140 Builder.CreateStore(CurPtr.emitRawPointer(*this), EndOfInit); in EmitNewArrayInitializer() 1145 StoreAnyExprIntoOneUnit(*this, IE, IE->getType(), CurPtr, in EmitNewArrayInitializer() 1147 CurPtr = Address(Builder.CreateInBoundsGEP(CurPtr.getElementType(), in EmitNewArrayInitializer() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | COFFObjectFile.cpp | 894 uint64_t CurPtr = 0; in initialize() local 906 CurPtr = DH->AddressOfNewExeHeader; in initialize() 908 if (memcmp(base() + CurPtr, COFF::PEMagic, sizeof(COFF::PEMagic)) != 0) { in initialize() 912 CurPtr += sizeof(COFF::PEMagic); // Skip the PE magic bytes. in initialize() 917 if (Error E = getObject(COFFHeader, Data, base() + CurPtr)) in initialize() 925 if (Error E = getObject(COFFBigObjHeader, Data, base() + CurPtr)) in initialize() 933 CurPtr += sizeof(coff_bigobj_file_header); in initialize() 943 CurPtr += sizeof(coff_file_header); in initialize() 951 if (Error E = getObject(Header, Data, base() + CurPtr)) in initialize() 958 DataDirAddr = base() + CurPtr + sizeof(pe32_header); in initialize() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/ |
| H A D | LLLexer.h | 29 const char *CurPtr; variable
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/ |
| H A D | AsmLexer.h | 47 const char *CurPtr = nullptr; variable
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 430 bool ReadDataFromGlobal(Constant *C, uint64_t ByteOffset, unsigned char *CurPtr, in ReadDataFromGlobal() argument 454 CurPtr[i] = Val.extractBits(8, n * 8).getZExtValue(); in ReadDataFromGlobal() 463 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 467 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 471 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 488 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal() 505 CurPtr += NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal() 535 if (!ReadDataFromGlobal(C->getAggregateElement(Index), Offset, CurPtr, in ReadDataFromGlobal() 546 CurPtr += BytesWritten; in ReadDataFromGlobal() 554 return ReadDataFromGlobal(CE->getOperand(0), ByteOffset, CurPtr, in ReadDataFromGlobal() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPromoteAlloca.cpp | 426 Value *CurPtr = GEP; in GEPToVectorIndex() local 427 while (auto *CurGEP = dyn_cast<GetElementPtrInst>(CurPtr)) { in GEPToVectorIndex() 432 CurPtr = CurGEP->getPointerOperand(); in GEPToVectorIndex() 435 assert(CurPtr == Alloca && "GEP not based on alloca"); in GEPToVectorIndex()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | AttributorAttributes.cpp | 1603 auto HandlePassthroughUser = [&](Value *Usr, Value *CurPtr, bool &Follow) { in updateImpl() argument 1613 assert(OffsetInfoMap.contains(CurPtr) && in updateImpl() 1617 auto &PtrOI = OffsetInfoMap[CurPtr]; in updateImpl() 1626 Value *CurPtr = U.get(); in updateImpl() local 1628 LLVM_DEBUG(dbgs() << "[AAPointerInfo] Analyze " << *CurPtr << " in " << *Usr in updateImpl() 1630 assert(OffsetInfoMap.count(CurPtr) && in updateImpl() 1632 assert(!OffsetInfoMap[CurPtr].isUnassigned() && in updateImpl() 1637 return HandlePassthroughUser(Usr, CurPtr, Follow); in updateImpl() 1648 auto &PtrOI = OffsetInfoMap[CurPtr]; in updateImpl() 1665 return HandlePassthroughUser(Usr, CurPtr, Follow); in updateImpl() [all …]
|