Home
last modified time | relevance | path

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

/external/llvm/lib/MC/MCParser/
DAsmLexer.cpp26 CurPtr = NULL; in AsmLexer()
36 CurPtr = ptr; in setBuffer()
38 CurPtr = CurBuf->getBufferStart(); in setBuffer()
52 char CurChar = *CurPtr++; in getNextChar()
59 if (CurPtr-1 != CurBuf->getBufferEnd()) in getNextChar()
63 --CurPtr; // Another call to lex will return EOF again. in getNextChar()
75 while (isdigit(*CurPtr)) in LexFloatLiteral()
76 ++CurPtr; in LexFloatLiteral()
81 if (*CurPtr == 'e' || *CurPtr == 'E') { in LexFloatLiteral()
82 ++CurPtr; in LexFloatLiteral()
[all …]
/external/llvm/utils/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 …]
DTGLexer.h63 const char *CurPtr; variable
/external/clang/lib/Lex/
DLexer.cpp1160 void Lexer::LexIdentifier(Token &Result, const char *CurPtr) { in LexIdentifier() argument
1163 unsigned char C = *CurPtr++; in LexIdentifier()
1165 C = *CurPtr++; in LexIdentifier()
1167 --CurPtr; // Back up over the skipped character. in LexIdentifier()
1178 FormTokenWithChars(Result, CurPtr, tok::raw_identifier); in LexIdentifier()
1199 C = getCharAndSize(CurPtr, Size); in LexIdentifier()
1207 Diag(CurPtr, diag::ext_dollar_in_identifier); in LexIdentifier()
1208 CurPtr = ConsumeChar(CurPtr, Size, Result); in LexIdentifier()
1209 C = getCharAndSize(CurPtr, Size); in LexIdentifier()
1217 CurPtr = ConsumeChar(CurPtr, Size, Result); 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.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 …]
DLLLexer.h30 const char *CurPtr; variable
/external/clang/include/clang/Lex/
DLexer.h472 void LexIdentifier (Token &Result, const char *CurPtr);
473 void LexNumericConstant (Token &Result, const char *CurPtr);
474 void LexStringLiteral (Token &Result, const char *CurPtr,bool Wide);
475 void LexAngledStringLiteral(Token &Result, const char *CurPtr);
476 void LexCharConstant (Token &Result, const char *CurPtr);
477 bool LexEndOfFile (Token &Result, const char *CurPtr);
479 bool SkipWhitespace (Token &Result, const char *CurPtr);
480 bool SkipBCPLComment (Token &Result, const char *CurPtr);
481 bool SkipBlockComment (Token &Result, const char *CurPtr);
482 bool SaveBCPLComment (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.cpp305 const char *CurPtr = StrStart; in AnalyzeAsmString() local
311 for (; CurPtr != StrEnd; ++CurPtr) { in AnalyzeAsmString()
312 switch (*CurPtr) { in AnalyzeAsmString()
317 Result += *CurPtr; in AnalyzeAsmString()
333 if (CurPtr == StrEnd) { in AnalyzeAsmString()
339 char CurChar = *CurPtr++; in AnalyzeAsmString()
353 if (CurPtr == StrEnd) { in AnalyzeAsmString()
355 DiagOffs = CurPtr-StrStart-1; in AnalyzeAsmString()
359 char EscapedChar = *CurPtr++; in AnalyzeAsmString()
381 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.cpp112 char *CurPtr = EndPtr; in operator <<() local
115 *--CurPtr = '0' + char(N % 10); in operator <<()
118 return write(CurPtr, EndPtr-CurPtr); in operator <<()
137 char *CurPtr = EndPtr; in operator <<() local
140 *--CurPtr = '0' + char(N % 10); in operator <<()
143 return write(CurPtr, EndPtr-CurPtr); in operator <<()
163 char *CurPtr = EndPtr; in write_hex() local
167 *--CurPtr = (x < 10 ? '0' + x : 'a' + x - 10); in write_hex()
171 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/lib/Analysis/
DConstantFolding.cpp234 unsigned char *CurPtr, unsigned BytesLeft, in ReadDataFromGlobal() argument
253 CurPtr[i] = (unsigned char)(Val >> (ByteOffset * 8)); in ReadDataFromGlobal()
262 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, TD); in ReadDataFromGlobal()
266 return ReadDataFromGlobal(C, ByteOffset, CurPtr, BytesLeft, TD); in ReadDataFromGlobal()
283 !ReadDataFromGlobal(CS->getOperand(Index), ByteOffset, CurPtr, in ReadDataFromGlobal()
300 CurPtr += NextEltOffset-CurEltOffset-ByteOffset; in ReadDataFromGlobal()
313 if (!ReadDataFromGlobal(CA->getOperand(Index), Offset, CurPtr, in ReadDataFromGlobal()
321 CurPtr += EltSize; in ReadDataFromGlobal()
331 if (!ReadDataFromGlobal(CV->getOperand(Index), Offset, CurPtr, in ReadDataFromGlobal()
339 CurPtr += EltSize; in ReadDataFromGlobal()
[all …]
/external/llvm/test/CodeGen/Blackfin/
Dswitch2.ll3 define i8* @FindChar(i8* %CurPtr) {
/external/llvm/include/llvm/MC/MCParser/
DAsmLexer.h33 const char *CurPtr; variable