| /llvm-project-15.0.7/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 …]
|
| /llvm-project-15.0.7/llvm/lib/TableGen/ |
| H A D | TGLexer.cpp | 127 if ((*CurPtr == '\n' || (*CurPtr == '\r')) && in getNextChar() 274 if (*CurPtr == 0 && CurPtr == CurBuf.end()) in LexString() 277 if (*CurPtr == '\n' || *CurPtr == '\r') in LexString() 320 if (!isalpha(CurPtr[0]) && CurPtr[0] != '_') in LexVarName() 326 while (isalpha(*CurPtr) || isdigit(*CurPtr) || *CurPtr == '_') in LexVarName() 338 while (isalpha(*CurPtr) || isdigit(*CurPtr) || *CurPtr == '_') in LexIdentifier() 488 while (CurPtr[0] == '0' || CurPtr[0] == '1') in LexNumber() 888 while (*CurPtr == ' ' || *CurPtr == '\t') in prepLexMacroName() 893 if (*CurPtr != '_' && !isalpha(*CurPtr)) in prepLexMacroName() 897 while (isalpha(*CurPtr) || isdigit(*CurPtr) || *CurPtr == '_') in prepLexMacroName() [all …]
|
| H A D | TGLexer.h | 84 const char *CurPtr = nullptr; variable 108 return CurCode = LexToken(CurPtr == CurBuf.begin()); in Lex() 130 return std::make_pair(CurIntVal, (CurPtr - TokStart)-2); in getCurBinaryIntVal()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | Lexer.cpp | 1863 CurPtr = ConsumeChar(CurPtr, Size, Result); in LexNumericConstant() 1996 CurPtr = ConsumeChar(CurPtr, Size, Result); in LexUDSuffix() 2061 CurPtr = LexUDSuffix(Result, CurPtr, true); in LexStringLiteral() 2586 if (CurPtr[0] == CurPtr[1]) in isEndOfBlockCommentWithEscapedNewLine() 2602 } else if (CurPtr[0] == '/' && CurPtr[-1] == '?' && CurPtr[-2] == '?') { in isEndOfBlockCommentWithEscapedNewLine() 2615 if (*CurPtr != '\n' && *CurPtr != '\r') in isEndOfBlockCommentWithEscapedNewLine() 2981 if (CurPtr != BufferStart && (CurPtr[-1] != '\n' && CurPtr[-1] != '\r')) { in LexEndOfFile() 3134 if (CurPtr[i] != CurPtr[0]) in HandleEndOfConflictMarker() 3145 while (CurPtr != BufferEnd && *CurPtr != '\r' && *CurPtr != '\n') in HandleEndOfConflictMarker() 3163 for (; CurPtr != BufferEnd; ++CurPtr) { in findPlaceholderEnd() [all …]
|
| H A D | DependencyDirectivesScanner.cpp | 139 unsigned getOffsetAt(const char *CurPtr) const { in getOffsetAt() 140 return CurPtr - Input.data(); in getOffsetAt() 145 bool reportError(const char *CurPtr, unsigned Err); 167 bool Scanner::reportError(const char *CurPtr, unsigned Err) { in reportError() argument 170 assert(CurPtr >= Input.data() && "invalid buffer ptr"); in reportError() 171 Diags->Report(InputSourceLoc.getLocWithOffset(getOffsetAt(CurPtr)), Err); in reportError()
|
| /llvm-project-15.0.7/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 149 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() 962 if ((CurPtr[0] >= 'K' && CurPtr[0] <= 'M') || CurPtr[0] == 'H' || in Lex0x() [all …]
|
| /llvm-project-15.0.7/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 | 26 char *CurPtr = EndPtr; in format_to_buffer() local 29 *--CurPtr = '0' + char(Value % 10); in format_to_buffer() 32 return EndPtr - CurPtr; in format_to_buffer() 156 char *CurPtr = EndPtr; in write_hex() local 159 *--CurPtr = hexdigit(x, !Upper); in write_hex()
|
| /llvm-project-15.0.7/clang/include/clang/Lex/ |
| H A D | Lexer.h | 733 const char *LexUDSuffix(Token &Result, const char *CurPtr, 740 bool LexIdentifierContinue(Token &Result, const char *CurPtr); 743 bool LexStringLiteral (Token &Result, const char *CurPtr, 745 bool LexRawStringLiteral (Token &Result, const char *CurPtr, 748 bool LexCharConstant (Token &Result, const char *CurPtr, 751 bool SkipWhitespace (Token &Result, const char *CurPtr, 759 bool IsStartOfConflictMarker(const char *CurPtr); 760 bool HandleEndOfConflictMarker(const char *CurPtr); 762 bool lexEditorPlaceholder(Token &Result, const char *CurPtr); 764 bool isCodeCompletionPoint(const char *CurPtr) const; [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | COFF.cpp | 57 uint64_t CurPtr = 0; in createLinkGraphFromCOFFObject() local 63 reinterpret_cast<const object::dos_header *>(Data.data() + CurPtr); in createLinkGraphFromCOFFObject() 66 CurPtr = DH->AddressOfNewExeHeader; in createLinkGraphFromCOFFObject() 67 if (memcmp(Data.data() + CurPtr, COFF::PEMagic, sizeof(COFF::PEMagic)) != in createLinkGraphFromCOFFObject() 71 CurPtr += sizeof(COFF::PEMagic); in createLinkGraphFromCOFFObject() 75 if (Data.size() < CurPtr + sizeof(object::coff_file_header)) in createLinkGraphFromCOFFObject() 79 reinterpret_cast<const object::coff_file_header *>(Data.data() + CurPtr); in createLinkGraphFromCOFFObject() 91 CurPtr); in createLinkGraphFromCOFFObject() 98 CurPtr += sizeof(object::coff_bigobj_file_header); in createLinkGraphFromCOFFObject()
|
| /llvm-project-15.0.7/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 …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | MisleadingBidirectional.cpp | 20 const char *CurPtr = Buffer.begin(); in containsMisleadingBidi() local 42 while (CurPtr < Buffer.end()) { in containsMisleadingBidi() 43 unsigned char C = *CurPtr; in containsMisleadingBidi() 45 ++CurPtr; in containsMisleadingBidi() 55 (const llvm::UTF8 **)&CurPtr, (const llvm::UTF8 *)Buffer.end(), in containsMisleadingBidi() 60 ++CurPtr; in containsMisleadingBidi()
|
| H A D | MisleadingIdentifier.cpp | 126 const char *CurPtr = Buffer.begin(); in hasRTLCharacters() local 128 while (CurPtr < EndPtr) { in hasRTLCharacters() 131 (const llvm::UTF8 **)&CurPtr, (const llvm::UTF8 *)EndPtr, &CodePoint, in hasRTLCharacters()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Stmt.cpp | 611 for (; CurPtr != StrEnd; ++CurPtr) { in AnalyzeAsmString() 612 switch (*CurPtr) { in AnalyzeAsmString() 617 Result += *CurPtr; in AnalyzeAsmString() 636 if (CurPtr == StrEnd) { in AnalyzeAsmString() 658 if (CurPtr == StrEnd) { in AnalyzeAsmString() 712 --CurPtr; in AnalyzeAsmString() 713 while (CurPtr != StrEnd && isDigit(*CurPtr)) in AnalyzeAsmString() 744 const char *NameEnd = (const char*)memchr(CurPtr, ']', StrEnd-CurPtr); in AnalyzeAsmString() 747 if (NameEnd == CurPtr) in AnalyzeAsmString() 750 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()
|
| /llvm-project-15.0.7/llvm/test/Transforms/LoopRotate/ |
| H A D | simplifylatch.ll | 42 ;CHECK-NEXT: %arrayidx1 = getelementptr inbounds i8, i8* %CurPtr, i64 0 47 define i32 @foo(i8* %CurPtr, i32 %a) #0 { 58 %arrayidx = getelementptr inbounds i8, i8* %CurPtr, i64 %idxprom 61 %arrayidx1 = getelementptr inbounds i8, i8* %CurPtr, i64 0
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 994 Address CurPtr = BeginPtr; in EmitNewArrayInitializer() local 1056 CurPtr = Builder.CreateConstInBoundsGEP( in EmitNewArrayInitializer() 1057 CurPtr, InitListElements, "string.init.end"); in EmitNewArrayInitializer() 1077 CurPtr = Builder.CreateElementBitCast(CurPtr, ElementTy); in EmitNewArrayInitializer() 1096 CharUnits StartAlign = CurPtr.getAlignment(); in EmitNewArrayInitializer() 1112 CurPtr = Address(Builder.CreateInBoundsGEP( in EmitNewArrayInitializer() 1113 CurPtr.getElementType(), CurPtr.getPointer(), in EmitNewArrayInitializer() 1115 CurPtr.getElementType(), in EmitNewArrayInitializer() 1134 CurPtr = Builder.CreateElementBitCast(CurPtr, BeginPtr.getElementType()); in EmitNewArrayInitializer() 1249 CurPtrPhi->addIncoming(CurPtr.getPointer(), EntryBB); in EmitNewArrayInitializer() [all …]
|
| /llvm-project-15.0.7/clang/test/Analysis/inlining/ |
| H A D | placement-new-fp-suppression.cpp | 53 size_t Adjustment = alignmentAdjustment(CurPtr, Alignment); in Allocate() 65 char *CurPtr = nullptr; member in BumpPtrAllocator
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | SwitchLowering.ll | 5 define ptr @FindChar(ptr %CurPtr) { 48 … %CurPtr_addr.0 = getelementptr i8, ptr %CurPtr, i64 %gep.upgrd.1 ; <ptr> [#uses=1] 51 %tmp2 = getelementptr i8, ptr %CurPtr, i32 %tmp2.rec ; <ptr> [#uses=1]
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | COFFObjectFile.cpp | 793 uint64_t CurPtr = 0; in initialize() local 805 CurPtr = DH->AddressOfNewExeHeader; in initialize() 811 CurPtr += sizeof(COFF::PEMagic); // Skip the PE magic bytes. in initialize() 816 if (Error E = getObject(COFFHeader, Data, base() + CurPtr)) in initialize() 832 CurPtr += sizeof(coff_bigobj_file_header); in initialize() 842 CurPtr += sizeof(coff_file_header); in initialize() 850 if (Error E = getObject(Header, Data, base() + CurPtr)) in initialize() 857 DataDirAddr = base() + CurPtr + sizeof(pe32_header); in initialize() 861 DataDirAddr = base() + CurPtr + sizeof(pe32plus_header); in initialize() 873 CurPtr += COFFHeader->SizeOfOptionalHeader; in initialize() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/MC/MCParser/ |
| H A D | AsmLexer.h | 28 const char *CurPtr = nullptr; variable
|
| /llvm-project-15.0.7/llvm/include/llvm/AsmParser/ |
| H A D | LLLexer.h | 29 const char *CurPtr; variable
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 443 CurPtr[i] = (unsigned char)(Val >> (n * 8)); in ReadDataFromGlobal() 452 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 456 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 460 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, DL); in ReadDataFromGlobal() 494 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 …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | AttributorAttributes.cpp | 1256 Value *CurPtr = U.get(); in updateImpl() local 1260 assert(OffsetInfoMap.count(CurPtr) && in updateImpl() 1278 OffsetInfo &PtrOI = OffsetInfoMap[CurPtr]; in updateImpl() 1316 OffsetInfo &PtrOI = OffsetInfoMap[CurPtr]; in updateImpl() 1342 << *CurPtr << " in " << *Usr << "\n"); in updateImpl() 1345 << *CurPtr << " in " << *Usr << "\n"); in updateImpl() 1359 if (getUnderlyingObject(CurPtr) == &AssociatedValue) in updateImpl() 1364 OffsetInfoMap[CurPtr].Offset, Changed, in updateImpl() 1369 if (StoreI->getValueOperand() == CurPtr) { in updateImpl() 1377 if (getUnderlyingObject(CurPtr) == &AssociatedValue) in updateImpl() [all …]
|