Home
last modified time | relevance | path

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

123

/external/llvm-project/llvm/lib/MC/MCParser/
DAsmLexer.cpp45 CurPtr = ptr; in setBuffer()
47 CurPtr = CurBuf.begin(); in setBuffer()
58 return AsmToken(AsmToken::Error, StringRef(Loc, CurPtr - Loc)); in ReturnError()
62 if (CurPtr == CurBuf.end()) in getNextChar()
64 return (unsigned char)*CurPtr++; in getNextChar()
68 if (CurPtr == CurBuf.end()) in peekNextChar()
70 return (unsigned char)*CurPtr; in peekNextChar()
78 while (isDigit(*CurPtr)) in LexFloatLiteral()
79 ++CurPtr; in LexFloatLiteral()
81 if (*CurPtr == '-' || *CurPtr == '+') in LexFloatLiteral()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DAsmLexer.cpp43 CurPtr = ptr; in setBuffer()
45 CurPtr = CurBuf.begin(); in setBuffer()
55 return AsmToken(AsmToken::Error, StringRef(Loc, CurPtr - Loc)); in ReturnError()
59 if (CurPtr == CurBuf.end()) in getNextChar()
61 return (unsigned char)*CurPtr++; in getNextChar()
69 while (isDigit(*CurPtr)) in LexFloatLiteral()
70 ++CurPtr; in LexFloatLiteral()
72 if (*CurPtr == '-' || *CurPtr == '+') in LexFloatLiteral()
73 return ReturnError(CurPtr, "Invalid sign in float literal"); in LexFloatLiteral()
76 if ((*CurPtr == 'e' || *CurPtr == 'E')) { in LexFloatLiteral()
[all …]
/external/llvm/lib/MC/MCParser/
DAsmLexer.cpp25 CurPtr = nullptr; in AsmLexer()
38 CurPtr = ptr; in setBuffer()
40 CurPtr = CurBuf.begin(); in setBuffer()
50 return AsmToken(AsmToken::Error, StringRef(Loc, CurPtr - Loc)); in ReturnError()
54 if (CurPtr == CurBuf.end()) in getNextChar()
56 return (unsigned char)*CurPtr++; in getNextChar()
66 while (isdigit(*CurPtr)) in LexFloatLiteral()
67 ++CurPtr; in LexFloatLiteral()
72 if (*CurPtr == 'e' || *CurPtr == 'E') { in LexFloatLiteral()
73 ++CurPtr; in LexFloatLiteral()
[all …]
/external/llvm/lib/TableGen/
DTGLexer.cpp32 CurPtr = CurBuf.begin(); in TGLexer()
48 char CurChar = *CurPtr++; in getNextChar()
55 if (CurPtr-1 != CurBuf.end()) in getNextChar()
64 CurPtr = ParentIncludeLoc.getPointer(); in getNextChar()
69 --CurPtr; // Another call to lex will return EOF again. in getNextChar()
77 if ((*CurPtr == '\n' || (*CurPtr == '\r')) && in getNextChar()
78 *CurPtr != CurChar) in getNextChar()
79 ++CurPtr; // Eat the two char newline sequence. in getNextChar()
85 return *(CurPtr + Index); in peekNextChar()
89 TokStart = CurPtr; in LexToken()
[all …]
/external/clang/lib/Lex/
DLexer.cpp560 const char *CurPtr = Buffer.begin(); in ComputePreamble() local
562 while (CurPtr != Buffer.end()) { in ComputePreamble()
563 char ch = *CurPtr++; in ComputePreamble()
570 if (CurPtr != Buffer.end()) in ComputePreamble()
571 MaxLineOffset = CurPtr - Buffer.begin(); in ComputePreamble()
1459 bool Lexer::tryConsumeIdentifierUCN(const char *&CurPtr, unsigned Size, in tryConsumeIdentifierUCN() argument
1461 const char *UCNPtr = CurPtr + Size; in tryConsumeIdentifierUCN()
1462 uint32_t CodePoint = tryReadUCN(UCNPtr, CurPtr, /*Token=*/nullptr); in tryConsumeIdentifierUCN()
1468 makeCharRange(*this, CurPtr, UCNPtr), in tryConsumeIdentifierUCN()
1472 if ((UCNPtr - CurPtr == 6 && CurPtr[1] == 'u') || in tryConsumeIdentifierUCN()
[all …]
DPTHLexer.cpp39 : PreprocessorLexer(&PP, FID), TokBuf(D), CurPtr(D), LastHashTokPtr(nullptr), in PTHLexer()
52 const unsigned char *CurPtrShadow = CurPtr; in Lex()
65 CurPtr = CurPtrShadow; in Lex()
112 LastHashTokPtr = CurPtr - StoredTokenSize; in Lex()
170 const unsigned char* p = CurPtr; in DiscardToEndOfLine()
184 CurPtr = p; in DiscardToEndOfLine()
256 if (CurPtr > HashEntryI) { in SkipBlock()
257 assert(CurPtr == HashEntryI + StoredTokenSize); in SkipBlock()
260 CurPtr += StoredTokenSize * 2; in SkipBlock()
268 CurPtr = HashEntryI; in SkipBlock()
[all …]
/external/llvm-project/llvm/lib/TableGen/
DTGLexer.cpp50 CurPtr = CurBuf.begin(); in TGLexer()
91 CurPtr = ParentIncludeLoc.getPointer(); in processEOF()
95 TokStart = CurPtr; in processEOF()
107 char CurChar = *CurPtr++; in getNextChar()
114 if (CurPtr-1 != CurBuf.end()) in getNextChar()
118 --CurPtr; // Another call to lex will return EOF again. in getNextChar()
126 if ((*CurPtr == '\n' || (*CurPtr == '\r')) && in getNextChar()
127 *CurPtr != CurChar) in getNextChar()
128 ++CurPtr; // Eat the two char newline sequence. in getNextChar()
134 return *(CurPtr + Index); in peekNextChar()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/
DTGLexer.cpp49 CurPtr = CurBuf.begin(); in TGLexer()
90 CurPtr = ParentIncludeLoc.getPointer(); in processEOF()
94 TokStart = CurPtr; in processEOF()
106 char CurChar = *CurPtr++; in getNextChar()
113 if (CurPtr-1 != CurBuf.end()) in getNextChar()
117 --CurPtr; // Another call to lex will return EOF again. in getNextChar()
125 if ((*CurPtr == '\n' || (*CurPtr == '\r')) && in getNextChar()
126 *CurPtr != CurChar) in getNextChar()
127 ++CurPtr; // Eat the two char newline sequence. in getNextChar()
133 return *(CurPtr + Index); in peekNextChar()
[all …]
/external/llvm-project/clang/lib/Lex/
DLexer.cpp603 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 …]
/external/llvm/lib/AsmParser/
DLLLexer.cpp152 static const char *isLabelTail(const char *CurPtr) { in isLabelTail() argument
154 if (CurPtr[0] == ':') return CurPtr+1; in isLabelTail()
155 if (!isLabelChar(CurPtr[0])) return nullptr; in isLabelTail()
156 ++CurPtr; in isLabelTail()
169 CurPtr = CurBuf.begin(); in LLLexer()
173 char CurChar = *CurPtr++; in getNextChar()
179 if (CurPtr-1 != CurBuf.end()) in getNextChar()
183 --CurPtr; // Another call to lex will return EOF again. in getNextChar()
190 TokStart = CurPtr; in LexToken()
214 if (const char *Ptr = isLabelTail(CurPtr)) { in LexToken()
[all …]
/external/llvm-project/llvm/lib/AsmParser/
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()
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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
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()
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 …]
/external/clang/include/clang/Lex/
DLexer.h490 bool CheckUnicodeWhitespace(Token &Result, uint32_t C, const char *CurPtr);
495 bool LexUnicode(Token &Result, uint32_t C, const char *CurPtr);
616 const char *LexUDSuffix(Token &Result, const char *CurPtr,
620 bool LexIdentifier (Token &Result, const char *CurPtr);
621 bool LexNumericConstant (Token &Result, const char *CurPtr);
622 bool LexStringLiteral (Token &Result, const char *CurPtr,
624 bool LexRawStringLiteral (Token &Result, const char *CurPtr,
626 bool LexAngledStringLiteral(Token &Result, const char *CurPtr);
627 bool LexCharConstant (Token &Result, const char *CurPtr,
629 bool LexEndOfFile (Token &Result, const char *CurPtr);
[all …]
/external/llvm-project/clang/include/clang/Lex/
DLexer.h574 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 …]
/external/llvm-project/llvm/lib/Support/
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()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DCodeGenCoverage.cpp52 const char *CurPtr = Buffer.getBufferStart(); in parse() local
54 while (CurPtr != Buffer.getBufferEnd()) { in parse()
56 const char *LexedBackendName = CurPtr; in parse()
57 while (*CurPtr++ != 0) in parse()
59 if (CurPtr == Buffer.getBufferEnd()) in parse()
63 while (CurPtr != Buffer.getBufferEnd()) { in parse()
64 if (std::distance(CurPtr, Buffer.getBufferEnd()) < 8) in parse()
67 uint64_t RuleID = support::endian::read64(CurPtr, support::native); in parse()
68 CurPtr += 8; in parse()
/external/llvm/include/llvm/Support/
DAllocator.h145 : CurPtr(nullptr), End(nullptr), BytesAllocated(0), Allocator() {} in BumpPtrAllocatorImpl()
148 : CurPtr(nullptr), End(nullptr), BytesAllocated(0), in BumpPtrAllocatorImpl()
154 : CurPtr(Old.CurPtr), End(Old.End), Slabs(std::move(Old.Slabs)), in BumpPtrAllocatorImpl()
158 Old.CurPtr = Old.End = nullptr; in BumpPtrAllocatorImpl()
173 CurPtr = RHS.CurPtr;
180 RHS.CurPtr = RHS.End = nullptr;
199 CurPtr = (char *)Slabs.front(); in Reset()
200 End = CurPtr + SlabSize; in Reset()
215 size_t Adjustment = alignmentAdjustment(CurPtr, Alignment); in Allocate()
219 if (Adjustment + Size <= size_t(End - CurPtr)) { in Allocate()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DAllocator.h148 : CurPtr(nullptr), End(nullptr), BytesAllocated(0), Allocator() {} in BumpPtrAllocatorImpl()
151 : CurPtr(nullptr), End(nullptr), BytesAllocated(0), in BumpPtrAllocatorImpl()
157 : CurPtr(Old.CurPtr), End(Old.End), Slabs(std::move(Old.Slabs)), in BumpPtrAllocatorImpl()
161 Old.CurPtr = Old.End = nullptr; in BumpPtrAllocatorImpl()
176 CurPtr = RHS.CurPtr;
183 RHS.CurPtr = RHS.End = nullptr;
202 CurPtr = (char *)Slabs.front(); in Reset()
203 End = CurPtr + SlabSize; in Reset()
218 size_t Adjustment = alignmentAdjustment(CurPtr, Alignment); in Allocate()
222 if (Adjustment + Size <= size_t(End - CurPtr)) { in Allocate()
[all …]
/external/llvm-project/llvm/include/llvm/Support/
DAllocator.h88 : CurPtr(Old.CurPtr), End(Old.End), Slabs(std::move(Old.Slabs)), 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()
148 size_t Adjustment = offsetToAlignedAddr(CurPtr, Alignment); in Allocate()
158 if (Adjustment + SizeToAllocate <= size_t(End - CurPtr)) { in Allocate()
159 char *AlignedPtr = CurPtr + Adjustment; in Allocate()
160 CurPtr = AlignedPtr + SizeToAllocate; in Allocate()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DAllocator.h159 : CurPtr(Old.CurPtr), End(Old.End), Slabs(std::move(Old.Slabs)), in BumpPtrAllocatorImpl()
163 Old.CurPtr = Old.End = nullptr; in BumpPtrAllocatorImpl()
178 CurPtr = RHS.CurPtr;
186 RHS.CurPtr = RHS.End = nullptr;
205 CurPtr = (char *)Slabs.front(); in Reset()
206 End = CurPtr + SlabSize; in Reset()
219 size_t Adjustment = offsetToAlignedAddr(CurPtr, Alignment); in Allocate()
229 if (Adjustment + SizeToAllocate <= size_t(End - CurPtr)) { in Allocate()
230 char *AlignedPtr = CurPtr + Adjustment; in Allocate()
231 CurPtr = AlignedPtr + SizeToAllocate; in Allocate()
[all …]
/external/llvm/lib/Support/
Draw_ostream.cpp119 char *CurPtr = EndPtr; in operator <<() local
122 *--CurPtr = '0' + char(N % 10); in operator <<()
125 return write(CurPtr, EndPtr-CurPtr); in operator <<()
145 char *CurPtr = EndPtr; in operator <<() local
148 *--CurPtr = '0' + char(N % 10); in operator <<()
151 return write(CurPtr, EndPtr-CurPtr); in operator <<()
171 char *CurPtr = EndPtr; in write_hex() local
175 *--CurPtr = hexdigit(x, /*LowerCase*/true); in write_hex()
179 return write(CurPtr, EndPtr-CurPtr); in write_hex()
422 char *CurPtr = EndPtr; in operator <<() local
[all …]
/external/llvm/tools/llvm-mcmarkup/
Dllvm-mcmarkup.cpp37 StringRef::const_iterator CurPtr; member in MarkupLexer
41 : Start(Source.begin()), CurPtr(Source.begin()), End(Source.end()) {} in MarkupLexer()
43 bool isEOF() { return CurPtr == End; } in isEOF()
45 if (CurPtr == End) return EOF; in getNextChar()
46 return *CurPtr++; in getNextChar()
49 if (CurPtr == End) return EOF; in peekNextChar()
50 return *CurPtr; in peekNextChar()
52 StringRef::const_iterator getPosition() const { return CurPtr; } in getPosition()
/external/clang/lib/AST/
DStmt.cpp480 const char *CurPtr = StrStart; in AnalyzeAsmString() local
486 for (; CurPtr != StrEnd; ++CurPtr) { in AnalyzeAsmString()
487 switch (*CurPtr) { in AnalyzeAsmString()
492 Result += *CurPtr; in AnalyzeAsmString()
511 if (CurPtr == StrEnd) { in AnalyzeAsmString()
517 char CurChar = *CurPtr++; in AnalyzeAsmString()
531 if (CurPtr == StrEnd) { in AnalyzeAsmString()
533 DiagOffs = CurPtr-StrStart-1; in AnalyzeAsmString()
537 char EscapedChar = *CurPtr++; in AnalyzeAsmString()
559 const char *Begin = CurPtr - 1; // Points to the character following '%'. in AnalyzeAsmString()
[all …]
/external/llvm-project/clang/lib/AST/
DStmt.cpp599 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 …]
/external/llvm/test/CodeGen/X86/
DSwitchLowering.ll4 define i8* @FindChar(i8* %CurPtr) {
12 … %CurPtr_addr.0 = getelementptr i8, i8* %CurPtr, i64 %gep.upgrd.1 ; <i8*> [#uses=1]
15 %tmp2 = getelementptr i8, i8* %CurPtr, i32 %tmp2.rec ; <i8*> [#uses=1]

123