Lines Matching refs:TokStart

41   TokStart = nullptr;  in setBuffer()
91 StringRef(TokStart, CurPtr - TokStart)); in LexFloatLiteral()
117 return ReturnError(TokStart, "invalid hexadecimal floating-point constant: " in LexHexFloatLiteral()
122 return ReturnError(TokStart, "invalid hexadecimal floating-point constant: " in LexHexFloatLiteral()
135 return ReturnError(TokStart, "invalid hexadecimal floating-point constant: " in LexHexFloatLiteral()
138 return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart)); in LexHexFloatLiteral()
161 if (CurPtr == TokStart+1 && TokStart[0] == '.') in LexIdentifier()
162 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier()
164 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier()
182 return ReturnError(TokStart, "unterminated comment"); in LexSlash()
203 return AsmToken(AsmToken::Eof, StringRef(TokStart, 0)); in LexLineComment()
204 return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 0)); in LexLineComment()
265 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
269 return ReturnError(TokStart, !isHex ? "invalid decimal number" : in LexDigit()
288 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
297 return ReturnError(TokStart, "invalid binary number"); in LexDigit()
299 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
303 return ReturnError(TokStart, "invalid binary number"); in LexDigit()
328 if (StringRef(TokStart, CurPtr - TokStart).getAsInteger(0, Result)) in LexDigit()
329 return ReturnError(TokStart, "invalid hexadecimal number"); in LexDigit()
339 return intToken(StringRef(TokStart, CurPtr - TokStart), Result); in LexDigit()
346 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
348 return ReturnError(TokStart, !isHex ? "invalid octal number" : in LexDigit()
370 return ReturnError(TokStart, "unterminated single quote"); in LexSingleQuote()
375 return ReturnError(TokStart, "single quote way too long"); in LexSingleQuote()
379 StringRef Res = StringRef(TokStart,CurPtr - TokStart); in LexSingleQuote()
392 Value = TokStart[1]; in LexSingleQuote()
409 return ReturnError(TokStart, "unterminated string constant"); in LexQuote()
414 return AsmToken(AsmToken::String, StringRef(TokStart, CurPtr - TokStart)); in LexQuote()
418 TokStart = CurPtr; in LexUntilEndOfStatement()
426 return StringRef(TokStart, CurPtr-TokStart); in LexUntilEndOfStatement()
430 TokStart = CurPtr; in LexUntilEndOfLine()
436 return StringRef(TokStart, CurPtr-TokStart); in LexUntilEndOfLine()
441 const char *SavedTokStart = TokStart; in peekTokens()
466 TokStart = SavedTokStart; in peekTokens()
490 TokStart = CurPtr; in LexToken()
494 if (isAtStartOfComment(TokStart)) { in LexToken()
499 return AsmToken(AsmToken::Hash, StringRef(TokStart, 1)); in LexToken()
503 if (isAtStatementSeparator(TokStart)) { in LexToken()
506 StringRef(TokStart, strlen(MAI.getSeparatorString()))); in LexToken()
513 return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 1)); in LexToken()
524 return ReturnError(TokStart, "invalid character in input"); in LexToken()
525 case EOF: return AsmToken(AsmToken::Eof, StringRef(TokStart, 0)); in LexToken()
538 return AsmToken(AsmToken::Space, StringRef(TokStart, len)); in LexToken()
543 return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 1)); in LexToken()
544 case ':': return AsmToken(AsmToken::Colon, StringRef(TokStart, 1)); in LexToken()
545 case '+': return AsmToken(AsmToken::Plus, StringRef(TokStart, 1)); in LexToken()
546 case '-': return AsmToken(AsmToken::Minus, StringRef(TokStart, 1)); in LexToken()
547 case '~': return AsmToken(AsmToken::Tilde, StringRef(TokStart, 1)); in LexToken()
548 case '(': return AsmToken(AsmToken::LParen, StringRef(TokStart, 1)); in LexToken()
549 case ')': return AsmToken(AsmToken::RParen, StringRef(TokStart, 1)); in LexToken()
550 case '[': return AsmToken(AsmToken::LBrac, StringRef(TokStart, 1)); in LexToken()
551 case ']': return AsmToken(AsmToken::RBrac, StringRef(TokStart, 1)); in LexToken()
552 case '{': return AsmToken(AsmToken::LCurly, StringRef(TokStart, 1)); in LexToken()
553 case '}': return AsmToken(AsmToken::RCurly, StringRef(TokStart, 1)); in LexToken()
554 case '*': return AsmToken(AsmToken::Star, StringRef(TokStart, 1)); in LexToken()
555 case ',': return AsmToken(AsmToken::Comma, StringRef(TokStart, 1)); in LexToken()
556 case '$': return AsmToken(AsmToken::Dollar, StringRef(TokStart, 1)); in LexToken()
557 case '@': return AsmToken(AsmToken::At, StringRef(TokStart, 1)); in LexToken()
558 case '\\': return AsmToken(AsmToken::BackSlash, StringRef(TokStart, 1)); in LexToken()
561 return ++CurPtr, AsmToken(AsmToken::EqualEqual, StringRef(TokStart, 2)); in LexToken()
562 return AsmToken(AsmToken::Equal, StringRef(TokStart, 1)); in LexToken()
565 return ++CurPtr, AsmToken(AsmToken::PipePipe, StringRef(TokStart, 2)); in LexToken()
566 return AsmToken(AsmToken::Pipe, StringRef(TokStart, 1)); in LexToken()
567 case '^': return AsmToken(AsmToken::Caret, StringRef(TokStart, 1)); in LexToken()
570 return ++CurPtr, AsmToken(AsmToken::AmpAmp, StringRef(TokStart, 2)); in LexToken()
571 return AsmToken(AsmToken::Amp, StringRef(TokStart, 1)); in LexToken()
574 return ++CurPtr, AsmToken(AsmToken::ExclaimEqual, StringRef(TokStart, 2)); in LexToken()
575 return AsmToken(AsmToken::Exclaim, StringRef(TokStart, 1)); in LexToken()
576 case '%': return AsmToken(AsmToken::Percent, StringRef(TokStart, 1)); in LexToken()
578 case '#': return AsmToken(AsmToken::Hash, StringRef(TokStart, 1)); in LexToken()
587 StringRef(TokStart, 2)); in LexToken()
589 StringRef(TokStart, 2)); in LexToken()
591 StringRef(TokStart, 2)); in LexToken()
592 default: return AsmToken(AsmToken::Less, StringRef(TokStart, 1)); in LexToken()
597 StringRef(TokStart, 2)); in LexToken()
599 StringRef(TokStart, 2)); in LexToken()
600 default: return AsmToken(AsmToken::Greater, StringRef(TokStart, 1)); in LexToken()