Home
last modified time | relevance | path

Searched refs:CurPtr (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmLexer.cpp46 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 …]
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGLexer.cpp50 CurPtr = CurBuf.begin(); in TGLexer()
67 return {getLoc(), SMLoc::getFromPointer(CurPtr)}; in getLocRange()
93 CurPtr = ParentIncludeLoc.getPointer(); in processEOF()
97 TokStart = CurPtr; in processEOF()
109 char CurChar = *CurPtr++; in getNextChar()
117 if (CurPtr - 1 == CurBuf.end()) { in getNextChar()
118 --CurPtr; // Arrange for another call to return EOF again. in getNextChar()
131 if ((*CurPtr == '\n' || (*CurPtr == '\r')) && in getNextChar()
132 *CurPtr != CurChar) in getNextChar()
133 ++CurPtr; // Eat the two char newline sequence. in getNextChar()
[all …]
H A DTGLexer.h192 const char *CurPtr = nullptr; variable
216 return CurCode = LexToken(CurPtr == CurBuf.begin()); in Lex()
237 return std::make_pair(CurIntVal, (CurPtr - TokStart)-2); in getCurBinaryIntVal()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp655 const char *CurPtr = Buffer.begin(); in ComputePreamble() local
657 while (CurPtr != Buffer.end()) { in ComputePreamble()
658 char ch = *CurPtr++; in ComputePreamble()
665 if (CurPtr != Buffer.end()) in ComputePreamble()
666 MaxLineOffset = CurPtr - Buffer.begin(); in ComputePreamble()
1766 bool Lexer::tryConsumeIdentifierUCN(const char *&CurPtr, unsigned Size, in tryConsumeIdentifierUCN() argument
1768 const char *UCNPtr = CurPtr + Size; in tryConsumeIdentifierUCN()
1769 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); in tryConsumeIdentifierUCN()
1781 makeCharRange(*this, CurPtr, UCNPtr), in tryConsumeIdentifierUCN()
1790 makeCharRange(*this, CurPtr, UCNPtr)); in tryConsumeIdentifierUCN()
[all …]
H A DDependencyDirectivesScanner.cpp167 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 DLLLexer.cpp147 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()
162 CurPtr = CurBuf.begin(); in LLLexer()
166 char CurChar = *CurPtr++; in getNextChar()
172 if (CurPtr-1 != CurBuf.end()) in getNextChar()
176 --CurPtr; // Another call to lex will return EOF again. in getNextChar()
183 TokStart = CurPtr; in LexToken()
207 if (const char *Ptr = isLabelTail(CurPtr)) { in LexToken()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DCodeGenCoverage.cpp44 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 DNativeFormatting.cpp28 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/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DCOFF.cpp56 uint64_t CurPtr = 0; in createLinkGraphFromCOFFObject()
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()
57 uint64_t CurPtr = 0; createLinkGraphFromCOFFObject() local
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DAllocator.h87 : 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()
152 size_t Adjustment = offsetToAlignedAddr(CurPtr, Alignment); in Allocate()
162 if (LLVM_LIKELY(Adjustment + SizeToAllocate <= size_t(End - CurPtr) in Allocate()
164 && CurPtr != nullptr)) { in Allocate()
165 char *AlignedPtr = CurPtr + Adjustment; in Allocate()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp607 const char *CurPtr = StrStart; in AnalyzeAsmString() local
613 for (; CurPtr != StrEnd; ++CurPtr) { in AnalyzeAsmString()
614 switch (*CurPtr) { in AnalyzeAsmString()
619 Result += *CurPtr; in AnalyzeAsmString()
638 if (CurPtr == StrEnd) { in AnalyzeAsmString()
644 char CurChar = *CurPtr++; in AnalyzeAsmString()
660 if (CurPtr == StrEnd) { in AnalyzeAsmString()
662 DiagOffs = CurPtr-StrStart-1; in AnalyzeAsmString()
666 char EscapedChar = *CurPtr++; in AnalyzeAsmString()
695 const char *Begin = CurPtr - 1; // Points to the character following '%'. in AnalyzeAsmString()
[all …]
H A DCommentLexer.cpp222 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/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp1004 Address CurPtr = BeginPtr; in EmitNewArrayInitializer() local
1040 Builder.CreateMemSet(CurPtr, Builder.getInt8(0), RemainingSize, false); in EmitNewArrayInitializer()
1067 AggValueSlot::forAddr(CurPtr, ElementType.getQualifiers(), in EmitNewArrayInitializer()
1080 CurPtr = Builder.CreateConstInBoundsGEP( in EmitNewArrayInitializer()
1081 CurPtr, InitListElements, "string.init.end"); in EmitNewArrayInitializer()
1103 CurPtr = CurPtr.withElementType(ElementTy); in EmitNewArrayInitializer()
1128 CharUnits StartAlign = CurPtr.getAlignment(); in EmitNewArrayInitializer()
1135 Builder.CreateStore(CurPtr.emitRawPointer(*this), EndOfInit); in EmitNewArrayInitializer()
1140 StoreAnyExprIntoOneUnit(*this, IE, IE->getType(), CurPtr, in EmitNewArrayInitializer()
1142 CurPtr = Address(Builder.CreateInBoundsGEP(CurPtr.getElementType(), in EmitNewArrayInitializer()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DCOFFObjectFile.cpp840 uint64_t CurPtr = 0; in initialize() local
852 CurPtr = DH->AddressOfNewExeHeader; in initialize()
854 if (memcmp(base() + CurPtr, COFF::PEMagic, sizeof(COFF::PEMagic)) != 0) { in initialize()
858 CurPtr += sizeof(COFF::PEMagic); // Skip the PE magic bytes. in initialize()
863 if (Error E = getObject(COFFHeader, Data, base() + CurPtr)) in initialize()
871 if (Error E = getObject(COFFBigObjHeader, Data, base() + CurPtr)) in initialize()
879 CurPtr += sizeof(coff_bigobj_file_header); in initialize()
889 CurPtr += sizeof(coff_file_header); in initialize()
897 if (Error E = getObject(Header, Data, base() + CurPtr)) in initialize()
904 DataDirAddr = base() + CurPtr + sizeof(pe32_header); in initialize()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DAsmLexer.h28 const char *CurPtr = nullptr; variable
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLLexer.h29 const char *CurPtr; variable
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp417 bool ReadDataFromGlobal(Constant *C, uint64_t ByteOffset, unsigned char *CurPtr, in ReadDataFromGlobal() argument
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()
471 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal()
488 CurPtr += NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
518 if (!ReadDataFromGlobal(C->getAggregateElement(Index), Offset, CurPtr, in ReadDataFromGlobal()
529 CurPtr += BytesWritten; in ReadDataFromGlobal()
537 return ReadDataFromGlobal(CE->getOperand(0), ByteOffset, CurPtr, in ReadDataFromGlobal()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp1602 auto HandlePassthroughUser = [&](Value *Usr, Value *CurPtr, bool &Follow) { in updateImpl() argument
1612 assert(OffsetInfoMap.contains(CurPtr) && in updateImpl()
1616 auto &PtrOI = OffsetInfoMap[CurPtr]; in updateImpl()
1625 Value *CurPtr = U.get(); in updateImpl() local
1627 LLVM_DEBUG(dbgs() << "[AAPointerInfo] Analyze " << *CurPtr << " in " << *Usr in updateImpl()
1629 assert(OffsetInfoMap.count(CurPtr) && in updateImpl()
1634 return HandlePassthroughUser(Usr, CurPtr, Follow); in updateImpl()
1645 auto &PtrOI = OffsetInfoMap[CurPtr]; in updateImpl()
1662 return HandlePassthroughUser(Usr, CurPtr, Follow); in updateImpl()
1672 auto &PtrOI = OffsetInfoMap[CurPtr]; in updateImpl()
[all …]