Home
last modified time | relevance | path

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

/external/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/llvm/lib/TableGen/
DTGLexer.cpp33 CurPtr = CurBuf->getBufferStart(); in TGLexer()
49 char CurChar = *CurPtr++; in getNextChar()
56 if (CurPtr-1 != CurBuf->getBufferEnd()) in getNextChar()
65 CurPtr = ParentIncludeLoc.getPointer(); in getNextChar()
70 --CurPtr; // Another call to lex will return EOF again. in getNextChar()
78 if ((*CurPtr == '\n' || (*CurPtr == '\r')) && in getNextChar()
79 *CurPtr != CurChar) in getNextChar()
80 ++CurPtr; // Eat the two char newline sequence. in getNextChar()
86 return *(CurPtr + Index); in peekNextChar()
90 TokStart = CurPtr; in LexToken()
[all …]
DTGLexer.h64 const char *CurPtr; variable
/external/clang/lib/Lex/
DLexer.cpp527 const char *CurPtr = Buffer->getBufferStart(); in ComputePreamble() local
529 while (CurPtr != Buffer->getBufferEnd()) { in ComputePreamble()
530 char ch = *CurPtr++; in ComputePreamble()
537 if (CurPtr != Buffer->getBufferEnd()) in ComputePreamble()
538 MaxLineOffset = CurPtr - Buffer->getBufferStart(); in ComputePreamble()
1466 void Lexer::LexIdentifier(Token &Result, const char *CurPtr) { in LexIdentifier() argument
1469 unsigned char C = *CurPtr++; in LexIdentifier()
1471 C = *CurPtr++; in LexIdentifier()
1473 --CurPtr; // Back up over the skipped character. in LexIdentifier()
1484 FormTokenWithChars(Result, CurPtr, tok::raw_identifier); in LexIdentifier()
[all …]
DPTHLexer.cpp41 : PreprocessorLexer(&PP, FID), TokBuf(D), CurPtr(D), LastHashTokPtr(0), in PTHLexer()
55 const unsigned char *CurPtrShadow = CurPtr; in Lex()
66 CurPtr = CurPtrShadow; in Lex()
118 LastHashTokPtr = CurPtr - DISK_TOKEN_SIZE; in Lex()
178 const unsigned char* p = CurPtr; in DiscardToEndOfLine()
192 CurPtr = p; in DiscardToEndOfLine()
264 if (CurPtr > HashEntryI) { in SkipBlock()
265 assert(CurPtr == HashEntryI + DISK_TOKEN_SIZE); in SkipBlock()
268 CurPtr += DISK_TOKEN_SIZE*2; in SkipBlock()
276 CurPtr = HashEntryI; in SkipBlock()
[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 0; in isLabelTail()
156 ++CurPtr; in isLabelTail()
169 CurPtr = CurBuf->getBufferStart(); in LLLexer()
177 char CurChar = *CurPtr++; in getNextChar()
183 if (CurPtr-1 != CurBuf->getBufferEnd()) in getNextChar()
187 --CurPtr; // Another call to lex will return EOF again. in getNextChar()
194 TokStart = CurPtr; in LexToken()
217 if (const char *Ptr = isLabelTail(CurPtr)) { in LexToken()
[all …]
DLLLexer.h30 const char *CurPtr; variable
/external/clang/include/clang/Lex/
DLexer.h534 const char *LexUDSuffix(Token &Result, const char *CurPtr);
537 void LexIdentifier (Token &Result, const char *CurPtr);
538 void LexNumericConstant (Token &Result, const char *CurPtr);
539 void LexStringLiteral (Token &Result, const char *CurPtr,
541 void LexRawStringLiteral (Token &Result, const char *CurPtr,
543 void LexAngledStringLiteral(Token &Result, const char *CurPtr);
544 void LexCharConstant (Token &Result, const char *CurPtr,
546 bool LexEndOfFile (Token &Result, const char *CurPtr);
548 bool SkipWhitespace (Token &Result, const char *CurPtr);
549 bool SkipBCPLComment (Token &Result, const char *CurPtr);
[all …]
DPTHLexer.h32 const unsigned char* CurPtr; variable
87 tok::TokenKind x = (tok::TokenKind)*CurPtr; in isNextPPTokenLParen()
/external/clang/lib/AST/
DStmt.cpp385 const char *CurPtr = StrStart; in AnalyzeAsmString() local
391 for (; CurPtr != StrEnd; ++CurPtr) { in AnalyzeAsmString()
392 switch (*CurPtr) { in AnalyzeAsmString()
397 Result += *CurPtr; in AnalyzeAsmString()
413 if (CurPtr == StrEnd) { in AnalyzeAsmString()
419 char CurChar = *CurPtr++; in AnalyzeAsmString()
433 if (CurPtr == StrEnd) { in AnalyzeAsmString()
435 DiagOffs = CurPtr-StrStart-1; in AnalyzeAsmString()
439 char EscapedChar = *CurPtr++; in AnalyzeAsmString()
461 if (CurPtr == StrEnd) { // Premature end. in AnalyzeAsmString()
[all …]
DMicrosoftMangle.cpp282 char *CurPtr = EndPtr; in mangleNumber() local
284 *--CurPtr = 'A' + (Number % 16); in mangleNumber()
287 Out.write(CurPtr, EndPtr-CurPtr); in mangleNumber()
/external/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.cpp113 char *CurPtr = EndPtr; in operator <<() local
116 *--CurPtr = '0' + char(N % 10); in operator <<()
119 return write(CurPtr, EndPtr-CurPtr); in operator <<()
139 char *CurPtr = EndPtr; in operator <<() local
142 *--CurPtr = '0' + char(N % 10); in operator <<()
145 return write(CurPtr, EndPtr-CurPtr); in operator <<()
165 char *CurPtr = EndPtr; in write_hex() local
169 *--CurPtr = (x < 10 ? '0' + x : 'a' + x - 10); in write_hex()
173 return write(CurPtr, EndPtr-CurPtr); in write_hex()
/external/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/include/llvm/Support/
DAllocator.h113 char *CurPtr;
206 char *End = Slab == Allocator.CurSlab ? Allocator.CurPtr :
/external/llvm/include/llvm/MC/MCParser/
DAsmLexer.h30 const char *CurPtr; variable
/external/llvm/lib/Analysis/
DConstantFolding.cpp276 unsigned char *CurPtr, unsigned BytesLeft, in ReadDataFromGlobal() argument
295 CurPtr[i] = (unsigned char)(Val >> (ByteOffset * 8)); in ReadDataFromGlobal()
304 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, TD); in ReadDataFromGlobal()
308 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, TD); in ReadDataFromGlobal()
325 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal()
342 CurPtr += NextEltOffset-CurEltOffset-ByteOffset; in ReadDataFromGlobal()
363 if (!ReadDataFromGlobal(C->getAggregateElement(Index), Offset, CurPtr, in ReadDataFromGlobal()
371 CurPtr += EltSize; in ReadDataFromGlobal()
379 return ReadDataFromGlobal(CE->getOperand(0), ByteOffset, CurPtr, in ReadDataFromGlobal()