Home
last modified time | relevance | path

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

12

/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/swiftshader/third_party/LLVM/lib/MC/MCParser/
DAsmLexer.cpp26 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/
DTGLexer.cpp31 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/
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 …]
DTGLexer.h69 const char *CurPtr; variable
114 return std::make_pair(CurIntVal, (CurPtr - TokStart)-2); in getCurBinaryIntVal()
/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/swiftshader/third_party/LLVM/lib/AsmParser/
DLLLexer.cpp174 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/
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/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 …]
DPTHLexer.h32 const unsigned char* CurPtr; variable
86 tok::TokenKind x = (tok::TokenKind)*CurPtr; in isNextPPTokenLParen()
/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/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/swiftshader/third_party/LLVM/lib/Support/
DAllocator.cpp56 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()
Draw_ostream.cpp112 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/
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 …]
DCommentLexer.cpp242 const char *CurPtr = BufferPtr; in findBCPLCommentEnd() local
243 while (CurPtr != BufferEnd) { in findBCPLCommentEnd()
244 while (!isVerticalWhitespace(*CurPtr)) { in findBCPLCommentEnd()
245 CurPtr++; in findBCPLCommentEnd()
246 if (CurPtr == BufferEnd) in findBCPLCommentEnd()
250 const char *EscapePtr = CurPtr - 1; in findBCPLCommentEnd()
258 CurPtr = skipNewline(CurPtr, BufferEnd); in findBCPLCommentEnd()
260 return CurPtr; // Not an escaped newline. in findBCPLCommentEnd()
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/
DSwitchLowering.ll4 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/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]
/external/llvm/test/Transforms/LoopRotate/
Dsimplifylatch.ll42 ;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
/external/clang/lib/CodeGen/
DCGExprCXX.cpp840 Address CurPtr = BeginPtr; in EmitNewArrayInitializer() local
864 CurPtr = Builder.CreateElementBitCast(CurPtr, ElementTy); in EmitNewArrayInitializer()
883 CharUnits StartAlign = CurPtr.getAlignment(); in EmitNewArrayInitializer()
890 Builder.CreateBitCast(CurPtr.getPointer(), BeginPtr.getType()); in EmitNewArrayInitializer()
897 ILE->getInit(i)->getType(), CurPtr); in EmitNewArrayInitializer()
898 CurPtr = Address(Builder.CreateInBoundsGEP(CurPtr.getPointer(), in EmitNewArrayInitializer()
919 CurPtr = Builder.CreateBitCast(CurPtr, BeginPtr.getType()); in EmitNewArrayInitializer()
944 Builder.CreateMemSet(CurPtr, Builder.getInt8(0), RemainingSize, false); in EmitNewArrayInitializer()
979 Builder.CreateStore(CurPtr.getPointer(), EndOfInit); in EmitNewArrayInitializer()
986 EmitCXXAggrConstructorCall(Ctor, NumElements, CurPtr, CCE, in EmitNewArrayInitializer()
[all …]
/external/llvm/lib/Object/
DCOFFObjectFile.cpp642 uint64_t CurPtr = 0; in COFFObjectFile() local
654 CurPtr = DH->AddressOfNewExeHeader; in COFFObjectFile()
656 if (memcmp(base() + CurPtr, COFF::PEMagic, sizeof(COFF::PEMagic)) != 0) { in COFFObjectFile()
660 CurPtr += sizeof(COFF::PEMagic); // Skip the PE magic bytes. in COFFObjectFile()
665 if ((EC = getObject(COFFHeader, Data, base() + CurPtr))) in COFFObjectFile()
673 if ((EC = getObject(COFFBigObjHeader, Data, base() + CurPtr))) in COFFObjectFile()
681 CurPtr += sizeof(coff_bigobj_file_header); in COFFObjectFile()
691 CurPtr += sizeof(coff_file_header); in COFFObjectFile()
699 if ((EC = getObject(Header, Data, base() + CurPtr))) in COFFObjectFile()
706 DataDirAddr = base() + CurPtr + sizeof(pe32_header); in COFFObjectFile()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DConstantFolding.cpp239 unsigned char *CurPtr, unsigned BytesLeft, in ReadDataFromGlobal() argument
258 CurPtr[i] = (unsigned char)(Val >> (ByteOffset * 8)); in ReadDataFromGlobal()
267 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, TD); in ReadDataFromGlobal()
271 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, TD); in ReadDataFromGlobal()
288 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal()
305 CurPtr += NextEltOffset-CurEltOffset-ByteOffset; in ReadDataFromGlobal()
318 if (!ReadDataFromGlobal(CA->getOperand(Index), Offset, CurPtr, in ReadDataFromGlobal()
326 CurPtr += EltSize; in ReadDataFromGlobal()
336 if (!ReadDataFromGlobal(CV->getOperand(Index), Offset, CurPtr, in ReadDataFromGlobal()
344 CurPtr += EltSize; in ReadDataFromGlobal()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DAllocator.h113 char *CurPtr;
206 char *End = Slab == Allocator.CurSlab ? Allocator.CurPtr :

12