/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/MCParser/ |
D | AsmLexer.cpp | 44 CurPtr = ptr; in setBuffer() 46 CurPtr = CurBuf.begin(); in setBuffer() 56 return AsmToken(AsmToken::Error, StringRef(Loc, CurPtr - Loc)); in ReturnError() 60 if (CurPtr == CurBuf.end()) in getNextChar() 62 return (unsigned char)*CurPtr++; in getNextChar() 72 while (isDigit(*CurPtr)) in LexFloatLiteral() 73 ++CurPtr; in LexFloatLiteral() 78 if (*CurPtr == 'e' || *CurPtr == 'E') { in LexFloatLiteral() 79 ++CurPtr; in LexFloatLiteral() 80 if (*CurPtr == '-' || *CurPtr == '+') in LexFloatLiteral() [all …]
|
/external/llvm/lib/MC/MCParser/ |
D | AsmLexer.cpp | 25 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/swiftshader/third_party/LLVM/lib/MC/MCParser/ |
D | AsmLexer.cpp | 26 CurPtr = NULL; in AsmLexer() 37 CurPtr = ptr; in setBuffer() 39 CurPtr = CurBuf->getBufferStart(); in setBuffer() 53 char CurChar = *CurPtr++; in getNextChar() 60 if (CurPtr-1 != CurBuf->getBufferEnd()) in getNextChar() 64 --CurPtr; // Another call to lex will return EOF again. in getNextChar() 76 while (isdigit(*CurPtr)) in LexFloatLiteral() 77 ++CurPtr; in LexFloatLiteral() 82 if (*CurPtr == 'e' || *CurPtr == 'E') { in LexFloatLiteral() 83 ++CurPtr; in LexFloatLiteral() [all …]
|
/external/swiftshader/third_party/LLVM/lib/TableGen/ |
D | TGLexer.cpp | 31 CurPtr = CurBuf->getBufferStart(); in TGLexer() 47 char CurChar = *CurPtr++; in getNextChar() 54 if (CurPtr-1 != CurBuf->getBufferEnd()) in getNextChar() 63 CurPtr = ParentIncludeLoc.getPointer(); in getNextChar() 68 --CurPtr; // Another call to lex will return EOF again. in getNextChar() 76 if ((*CurPtr == '\n' || (*CurPtr == '\r')) && in getNextChar() 77 *CurPtr != CurChar) in getNextChar() 78 ++CurPtr; // Eat the two char newline sequence. in getNextChar() 84 TokStart = CurPtr; in LexToken() 121 if (*CurPtr == '/') in LexToken() [all …]
|
/external/llvm/lib/TableGen/ |
D | TGLexer.cpp | 32 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/ |
D | Lexer.cpp | 560 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 …]
|
D | PTHLexer.cpp | 39 : 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/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/ |
D | TGLexer.cpp | 34 CurPtr = CurBuf.begin(); in TGLexer() 50 char CurChar = *CurPtr++; in getNextChar() 57 if (CurPtr-1 != CurBuf.end()) in getNextChar() 66 CurPtr = ParentIncludeLoc.getPointer(); in getNextChar() 71 --CurPtr; // Another call to lex will return EOF again. in getNextChar() 79 if ((*CurPtr == '\n' || (*CurPtr == '\r')) && in getNextChar() 80 *CurPtr != CurChar) in getNextChar() 81 ++CurPtr; // Eat the two char newline sequence. in getNextChar() 87 return *(CurPtr + Index); in peekNextChar() 91 TokStart = CurPtr; in LexToken() [all …]
|
/external/swiftshader/third_party/LLVM/lib/AsmParser/ |
D | LLLexer.cpp | 174 static const char *isLabelTail(const char *CurPtr) { in isLabelTail() argument 176 if (CurPtr[0] == ':') return CurPtr+1; in isLabelTail() 177 if (!isLabelChar(CurPtr[0])) return 0; in isLabelTail() 178 ++CurPtr; in isLabelTail() 191 CurPtr = CurBuf->getBufferStart(); in LLLexer() 199 char CurChar = *CurPtr++; in getNextChar() 205 if (CurPtr-1 != CurBuf->getBufferEnd()) in getNextChar() 209 --CurPtr; // Another call to lex will return EOF again. in getNextChar() 216 TokStart = CurPtr; in LexToken() 239 if (const char *Ptr = isLabelTail(CurPtr)) { in LexToken() [all …]
|
/external/llvm/lib/AsmParser/ |
D | LLLexer.cpp | 152 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/swiftshader/third_party/llvm-7.0/llvm/lib/AsmParser/ |
D | LLLexer.cpp | 148 static const char *isLabelTail(const char *CurPtr) { in isLabelTail() argument 150 if (CurPtr[0] == ':') return CurPtr+1; in isLabelTail() 151 if (!isLabelChar(CurPtr[0])) return nullptr; in isLabelTail() 152 ++CurPtr; in isLabelTail() 164 CurPtr = CurBuf.begin(); in LLLexer() 168 char CurChar = *CurPtr++; in getNextChar() 174 if (CurPtr-1 != CurBuf.end()) in getNextChar() 178 --CurPtr; // Another call to lex will return EOF again. in getNextChar() 185 TokStart = CurPtr; in LexToken() 209 if (const char *Ptr = isLabelTail(CurPtr)) { in LexToken() [all …]
|
/external/clang/include/clang/Lex/ |
D | Lexer.h | 490 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/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | CodeGenCoverage.cpp | 53 const char *CurPtr = Buffer.getBufferStart(); in parse() local 55 while (CurPtr != Buffer.getBufferEnd()) { in parse() 57 const char *LexedBackendName = CurPtr; in parse() 58 while (*CurPtr++ != 0) in parse() 60 if (CurPtr == Buffer.getBufferEnd()) in parse() 64 while (CurPtr != Buffer.getBufferEnd()) { in parse() 65 if (std::distance(CurPtr, Buffer.getBufferEnd()) < 8) in parse() 68 uint64_t RuleID = support::endian::read64(CurPtr, support::native); in parse() 69 CurPtr += 8; in parse()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | Allocator.h | 148 : 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/include/llvm/Support/ |
D | Allocator.h | 145 : 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-7.0/llvm/include/llvm/Support/ |
D | Allocator.h | 158 : CurPtr(Old.CurPtr), End(Old.End), Slabs(std::move(Old.Slabs)), in BumpPtrAllocatorImpl() 162 Old.CurPtr = Old.End = nullptr; in BumpPtrAllocatorImpl() 177 CurPtr = RHS.CurPtr; 185 RHS.CurPtr = RHS.End = nullptr; 204 CurPtr = (char *)Slabs.front(); in Reset() 205 End = CurPtr + SlabSize; in Reset() 220 size_t Adjustment = alignmentAdjustment(CurPtr, Alignment); in Allocate() 230 if (Adjustment + SizeToAllocate <= size_t(End - CurPtr)) { in Allocate() 231 char *AlignedPtr = CurPtr + Adjustment; in Allocate() 232 CurPtr = AlignedPtr + SizeToAllocate; in Allocate() [all …]
|
/external/llvm/lib/Support/ |
D | raw_ostream.cpp | 119 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/ |
D | llvm-mcmarkup.cpp | 37 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/swiftshader/third_party/LLVM/lib/Support/ |
D | Allocator.cpp | 56 CurPtr = (char*)(CurSlab + 1); in StartNewSlab() 83 CurPtr = (char*)(CurSlab + 1); in Reset() 100 char *Ptr = AlignPtr(CurPtr, Alignment); in Allocate() 104 CurPtr = Ptr + Size; in Allocate() 125 Ptr = AlignPtr(CurPtr, Alignment); in Allocate() 126 CurPtr = Ptr + Size; in Allocate() 127 assert(CurPtr <= End && "Unable to allocate memory!"); in Allocate()
|
D | raw_ostream.cpp | 112 char *CurPtr = EndPtr; in operator <<() local 115 *--CurPtr = '0' + char(N % 10); in operator <<() 118 return write(CurPtr, EndPtr-CurPtr); in operator <<() 138 char *CurPtr = EndPtr; in operator <<() local 141 *--CurPtr = '0' + char(N % 10); in operator <<() 144 return write(CurPtr, EndPtr-CurPtr); in operator <<() 164 char *CurPtr = EndPtr; in write_hex() local 168 *--CurPtr = (x < 10 ? '0' + x : 'a' + x - 10); in write_hex() 172 return write(CurPtr, EndPtr-CurPtr); in write_hex()
|
/external/clang/lib/AST/ |
D | Stmt.cpp | 480 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/test/CodeGen/X86/ |
D | SwitchLowering.ll | 4 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]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/ |
D | SwitchLowering.ll | 4 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]
|
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/ |
D | SwitchLowering.ll | 4 define i8* @FindChar(i8* %CurPtr) { 12 %CurPtr_addr.0 = getelementptr i8* %CurPtr, i64 %gep.upgrd.1 ; <i8*> [#uses=1] 15 %tmp2 = getelementptr i8* %CurPtr, i32 %tmp2.rec ; <i8*> [#uses=1]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LoopRotate/ |
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
|