Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmLexer.cpp82 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()
331 (CurPtr[-1] != '0' && CurPtr[-1] != '1') ? CurPtr - 1 : nullptr; in LexDigit()
333 (CurPtr[-1] < '0' || CurPtr[-1] > '9') ? CurPtr - 1 : nullptr; in LexDigit()
381 } else if (*CurPtr == 'o' || *CurPtr == 'O' || *CurPtr == 'q' || in LexDigit()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/TableGen/
H A DTGLexer.cpp129 if ((*CurPtr == '\n' || (*CurPtr == '\r')) && in getNextChar()
276 if (*CurPtr == 0 && CurPtr == CurBuf.end()) in LexString()
279 if (*CurPtr == '\n' || *CurPtr == '\r') in LexString()
322 if (!isalpha(CurPtr[0]) && CurPtr[0] != '_') in LexVarName()
328 while (isalpha(*CurPtr) || isdigit(*CurPtr) || *CurPtr == '_') in LexVarName()
340 while (isalpha(*CurPtr) || isdigit(*CurPtr) || *CurPtr == '_') in LexIdentifier()
490 while (CurPtr[0] == '0' || CurPtr[0] == '1') in LexNumber()
889 while (*CurPtr == ' ' || *CurPtr == '\t') in prepLexMacroName()
894 if (*CurPtr != '_' && !isalpha(*CurPtr)) in prepLexMacroName()
898 while (isalpha(*CurPtr) || isdigit(*CurPtr) || *CurPtr == '_') in prepLexMacroName()
[all …]
H A DTGLexer.h83 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()
/freebsd-13.1/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp1746 CurPtr = ConsumeChar(CurPtr, Size, Result); in LexIdentifier()
1775 CurPtr = ConsumeChar(CurPtr, Size, Result); in LexNumericConstant()
1909 CurPtr = ConsumeChar(CurPtr, Size, Result); in LexUDSuffix()
2473 if (CurPtr[0] == CurPtr[1]) in isEndOfBlockCommentWithEscapedNewLine()
2489 } else if (CurPtr[0] == '/' && CurPtr[-1] == '?' && CurPtr[-2] == '?') { in isEndOfBlockCommentWithEscapedNewLine()
2502 if (*CurPtr != '\n' && *CurPtr != '\r') in isEndOfBlockCommentWithEscapedNewLine()
2817 if (CurPtr != BufferStart && (CurPtr[-1] != '\n' && CurPtr[-1] != '\r')) { in LexEndOfFile()
2962 if (CurPtr[i] != CurPtr[0]) in HandleEndOfConflictMarker()
2973 while (CurPtr != BufferEnd && *CurPtr != '\r' && *CurPtr != '\n') in HandleEndOfConflictMarker()
2991 for (; CurPtr != BufferEnd; ++CurPtr) { in findPlaceholderEnd()
[all …]
H A DDependencyDirectivesSourceMinimizer.cpp99 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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp149 if (CurPtr[0] == ':') return CurPtr+1; in isLabelTail()
213 if (CurPtr[0] == '.' && CurPtr[1] == '.') { in LexToken()
321 CurPtr[0] == '-' || CurPtr[0] == '$' || in ReadVarName()
322 CurPtr[0] == '.' || CurPtr[0] == '_') { in ReadVarName()
341 for (++CurPtr; isdigit(static_cast<unsigned char>(CurPtr[0])); ++CurPtr) in LexUIntID()
418 CurPtr[0] == '-' || CurPtr[0] == '$' || in LexExclaim()
419 CurPtr[0] == '.' || CurPtr[0] == '_' || CurPtr[0] == '\\') { in LexExclaim()
423 CurPtr[0] == '.' || CurPtr[0] == '_' || CurPtr[0] == '\\') in LexExclaim()
457 for (; isLabelChar(*CurPtr); ++CurPtr) { in LexIdentifier()
1013 if ((CurPtr[0] >= 'K' && CurPtr[0] <= 'M') || CurPtr[0] == 'H' || in Lex0x()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Lex/
H A DLexer.h700 const char *LexUDSuffix(Token &Result, const char *CurPtr,
706 bool LexStringLiteral (Token &Result, const char *CurPtr,
708 bool LexRawStringLiteral (Token &Result, const char *CurPtr,
711 bool LexCharConstant (Token &Result, const char *CurPtr,
714 bool SkipWhitespace (Token &Result, const char *CurPtr,
716 bool SkipLineComment (Token &Result, const char *CurPtr,
722 bool IsStartOfConflictMarker(const char *CurPtr);
723 bool HandleEndOfConflictMarker(const char *CurPtr);
725 bool lexEditorPlaceholder(Token &Result, const char *CurPtr);
727 bool isCodeCompletionPoint(const char *CurPtr) const;
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DCodeGenCoverage.cpp46 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 DNativeFormatting.cpp23 char *CurPtr = EndPtr; in format_to_buffer() local
26 *--CurPtr = '0' + char(Value % 10); in format_to_buffer()
29 return EndPtr - CurPtr; in format_to_buffer()
153 char *CurPtr = EndPtr; in write_hex() local
156 *--CurPtr = hexdigit(x, !Upper); in write_hex()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DAllocator.h89 : 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()
160 char *AlignedPtr = CurPtr + Adjustment; in Allocate()
161 CurPtr = AlignedPtr + SizeToAllocate; in Allocate()
195 CurPtr = AlignedPtr + SizeToAllocate; in Allocate()
300 char *CurPtr = nullptr;
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp605 for (; CurPtr != StrEnd; ++CurPtr) { in AnalyzeAsmString()
606 switch (*CurPtr) { in AnalyzeAsmString()
611 Result += *CurPtr; in AnalyzeAsmString()
630 if (CurPtr == StrEnd) { in AnalyzeAsmString()
652 if (CurPtr == StrEnd) { in AnalyzeAsmString()
706 --CurPtr; in AnalyzeAsmString()
707 while (CurPtr != StrEnd && isDigit(*CurPtr)) in AnalyzeAsmString()
738 const char *NameEnd = (const char*)memchr(CurPtr, ']', StrEnd-CurPtr); in AnalyzeAsmString()
741 if (NameEnd == CurPtr) in AnalyzeAsmString()
744 StringRef SymbolicName(CurPtr, NameEnd - CurPtr); in AnalyzeAsmString()
[all …]
H A DCommentLexer.cpp241 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()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp993 Address CurPtr = BeginPtr; in EmitNewArrayInitializer() local
1055 CurPtr = in EmitNewArrayInitializer()
1081 CurPtr = Builder.CreateElementBitCast(CurPtr, ElementTy); in EmitNewArrayInitializer()
1100 CharUnits StartAlign = CurPtr.getAlignment(); in EmitNewArrayInitializer()
1116 CurPtr = Address(Builder.CreateInBoundsGEP(CurPtr.getElementType(), in EmitNewArrayInitializer()
1138 CurPtr = Builder.CreateBitCast(CurPtr, BeginPtr.getType()); in EmitNewArrayInitializer()
1172 Builder.CreateStore(CurPtr.getPointer(), EndOfInit); in EmitNewArrayInitializer()
1252 Builder.CreatePHI(CurPtr.getType(), 2, "array.cur"); in EmitNewArrayInitializer()
1253 CurPtrPhi->addIncoming(CurPtr.getPointer(), EntryBB); in EmitNewArrayInitializer()
1255 CurPtr = Address(CurPtrPhi, ElementAlign); in EmitNewArrayInitializer()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Object/
H A DCOFFObjectFile.cpp737 uint64_t CurPtr = 0; in initialize() local
749 CurPtr = DH->AddressOfNewExeHeader; in initialize()
754 CurPtr += sizeof(COFF::PEMagic); // Skip the PE magic bytes. in initialize()
759 if (Error E = getObject(COFFHeader, Data, base() + CurPtr)) in initialize()
775 CurPtr += sizeof(coff_bigobj_file_header); in initialize()
785 CurPtr += sizeof(coff_file_header); in initialize()
793 if (Error E = getObject(Header, Data, base() + CurPtr)) in initialize()
800 DataDirAddr = base() + CurPtr + sizeof(pe32_header); in initialize()
804 DataDirAddr = base() + CurPtr + sizeof(pe32plus_header); in initialize()
815 CurPtr += COFFHeader->SizeOfOptionalHeader; in initialize()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DAsmLexer.h28 const char *CurPtr = nullptr; variable
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLLexer.h29 const char *CurPtr; variable
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp450 CurPtr[i] = (unsigned char)(Val >> (n * 8)); in ReadDataFromGlobal()
459 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
463 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
467 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal()
484 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal()
501 CurPtr += NextEltOffset - CurEltOffset - ByteOffset; in ReadDataFromGlobal()
525 if (!ReadDataFromGlobal(C->getAggregateElement(Index), Offset, CurPtr, in ReadDataFromGlobal()
536 CurPtr += BytesWritten; in ReadDataFromGlobal()
544 return ReadDataFromGlobal(CE->getOperand(0), ByteOffset, CurPtr, in ReadDataFromGlobal()
633 unsigned char *CurPtr = RawBytes; in FoldReinterpretLoadFromConstPtr() local
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp1179 Value *CurPtr = U.get(); in updateImpl() local
1181 LLVM_DEBUG(dbgs() << "[AAPointerInfo] Analyze " << *CurPtr << " in " in updateImpl()
1184 OffsetInfo &PtrOI = OffsetInfoMap[CurPtr]; in updateImpl()
1222 CurPtr->getType()->getPointerElementType(), Indices); in updateImpl()
1248 if (&AssociatedValue == CurPtr->stripAndAccumulateConstantOffsets( in updateImpl()
1253 << *CurPtr << " in " << *Usr << "\n"); in updateImpl()
1261 << *CurPtr << " in " << *Usr << "\n"); in updateImpl()
1269 return handleAccess(A, *LoadI, *CurPtr, /* Content */ nullptr, in updateImpl()
1273 if (StoreI->getValueOperand() == CurPtr) { in updateImpl()
1281 return handleAccess(A, *StoreI, *CurPtr, Content, AccessKind::AK_WRITE, in updateImpl()