/external/llvm/lib/MC/MCParser/ |
AsmLexer.cpp | 45 /// location. This is defined to always return AsmToken::Error. 46 AsmToken AsmLexer::ReturnError(const char *Loc, const std::string &Msg) { 49 return AsmToken(AsmToken::Error, StringRef(Loc, 0)); 74 AsmToken AsmLexer::LexFloatLiteral() { 90 return AsmToken(AsmToken::Real, 98 AsmToken AsmLexer::LexIdentifier() { 113 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)) [all...] |
MCAsmLexer.cpp | 15 MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()), 26 SMLoc AsmToken::getLoc() const { 30 SMLoc AsmToken::getEndLoc() const {
|
AsmParser.cpp | 55 typedef std::vector<AsmToken> MCAsmMacroArgument; 208 virtual const AsmToken &Lex(); 278 /// is initially unknown, set it to AsmToken::Eof. It will be set to the 281 AsmToken::TokenKind &ArgumentDelimiter); 571 const AsmToken &AsmParser::Lex() { 572 const AsmToken *tok = &Lexer.Lex(); 574 if (tok->is(AsmToken::Eof)) { 584 if (tok->is(AsmToken::Error)) 614 while (Lexer.isNot(AsmToken::Eof)) { 677 while (Lexer.isNot(AsmToken::EndOfStatement) & [all...] |
COFFAsmParser.cpp | 140 if (getLexer().isNot(AsmToken::EndOfStatement)) { 151 if (getLexer().is(AsmToken::EndOfStatement)) 154 if (getLexer().isNot(AsmToken::Comma)) 167 if (getLexer().isNot(AsmToken::EndOfStatement)) 196 if (getLexer().isNot(AsmToken::EndOfStatement)) 209 if (getLexer().isNot(AsmToken::EndOfStatement)) 228 if (getLexer().isNot(AsmToken::EndOfStatement)) 243 if (getLexer().isNot(AsmToken::EndOfStatement)) 276 if (getLexer().isNot(AsmToken::Comma)) 282 if (getLexer().is(AsmToken::Comma)) [all...] |
ELFAsmParser.cpp | 168 if (getLexer().isNot(AsmToken::EndOfStatement)) { 179 if (getLexer().is(AsmToken::EndOfStatement)) 182 if (getLexer().isNot(AsmToken::Comma)) 194 if (getLexer().isNot(AsmToken::EndOfStatement)) 210 if (getLexer().isNot(AsmToken::Comma)) 218 if (getLexer().isNot(AsmToken::EndOfStatement)) 231 if (getLexer().is(AsmToken::String)) { 242 if (getLexer().is(AsmToken::Minus)) { 245 } else if (getLexer().is(AsmToken::String)) { 248 } else if (getLexer().is(AsmToken::Identifier)) [all...] |
DarwinAsmParser.cpp | 364 if (getLexer().isNot(AsmToken::EndOfStatement)) 399 if (getLexer().isNot(AsmToken::Comma)) 407 if (getLexer().isNot(AsmToken::EndOfStatement)) 423 if (getLexer().isNot(AsmToken::String)) 428 if (getLexer().isNot(AsmToken::EndOfStatement)) 446 if (getLexer().isNot(AsmToken::String)) 456 if (getLexer().is(AsmToken::EndOfStatement)) 459 if (getLexer().isNot(AsmToken::Comma)) 478 if (getLexer().isNot(AsmToken::Comma)) 486 if (getLexer().isNot(AsmToken::EndOfStatement) [all...] |
MCAsmParser.cpp | 32 const AsmToken &MCAsmParser::getTok() {
|
/external/llvm/include/llvm/MC/MCParser/ |
AsmLexer.h | 39 virtual AsmToken LexToken(); 57 AsmToken ReturnError(const char *Loc, const std::string &Msg); 59 AsmToken LexIdentifier(); 60 AsmToken LexSlash(); 61 AsmToken LexLineComment(); 62 AsmToken LexDigit(); 63 AsmToken LexSingleQuote(); 64 AsmToken LexQuote(); 65 AsmToken LexFloatLiteral();
|
MCAsmLexer.h | 20 /// AsmToken - Target independent representation for an assembler token. 21 class AsmToken { 63 AsmToken() {} 64 AsmToken(TokenKind _Kind, StringRef _Str, int64_t _IntVal = 0) 110 AsmToken CurTok; 124 virtual AsmToken LexToken() = 0; 138 const AsmToken &Lex() { 148 const AsmToken &getTok() { 163 AsmToken::TokenKind getKind() const { return CurTok.getKind(); } 166 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); [all...] |
MCAsmParserExtension.h | 69 const AsmToken &Lex() { return getParser().Lex(); } 71 const AsmToken &getTok() { return getParser().getTok(); }
|
MCAsmParser.h | 118 /// Lex - Get the next AsmToken in the stream, possibly handling file 120 virtual const AsmToken &Lex() = 0; 122 /// getTok - Get the current AsmToken from the stream. 123 const AsmToken &getTok();
|
/external/llvm/tools/llvm-mc/ |
llvm-mc.cpp | 251 while (Lexer.Lex().isNot(AsmToken::Eof)) { 252 AsmToken Tok = Lexer.getTok(); 260 case AsmToken::Error: 263 case AsmToken::Identifier: 266 case AsmToken::Integer: 269 case AsmToken::Real: 272 case AsmToken::String: 276 case AsmToken::Amp: Out->os() << "Amp"; break; 277 case AsmToken::AmpAmp: Out->os() << "AmpAmp"; break; 278 case AsmToken::At: Out->os() << "At"; break [all...] |
/external/llvm/lib/Target/Mips/AsmParser/ |
MipsAsmParser.cpp | 84 bool ParseDirective(AsmToken DirectiveID); 730 const AsmToken &Tok = Parser.getTok(); 733 if (Tok.is(AsmToken::Identifier)) { 736 } else if (Tok.is(AsmToken::Integer)) 777 case AsmToken::Dollar: { 783 if (getLexer().is(AsmToken::LParen)) { 787 if (getLexer().isNot(AsmToken::Dollar)) 794 if (!getLexer().is(AsmToken::RParen)) 819 case AsmToken::Identifier: 820 case AsmToken::LParen [all...] |
/external/llvm/include/llvm/MC/ |
MCTargetAsmParser.h | 19 class AsmToken; 128 virtual bool ParseDirective(AsmToken DirectiveID) = 0;
|
/external/llvm/lib/Target/X86/AsmParser/ |
X86AsmParser.cpp | 117 virtual bool ParseDirective(AsmToken DirectiveID); 566 const AsmToken &PercentTok = Parser.getTok(); 571 if (!isParsingIntelSyntax() && PercentTok.is(AsmToken::Percent)) 574 const AsmToken &Tok = Parser.getTok(); 577 if (Tok.isNot(AsmToken::Identifier)) { 610 if (getLexer().isNot(AsmToken::LParen)) 615 const AsmToken &IntTok = Parser.getTok(); 616 if (IntTok.isNot(AsmToken::Integer)) 630 if (getParser().Lex().isNot(AsmToken::RParen)) 900 const AsmToken &Tok = Parser.getTok() [all...] |
/external/llvm/lib/Target/MBlaze/AsmParser/ |
MBlazeAsmParser.cpp | 69 virtual bool ParseDirective(AsmToken DirectiveID); 409 if (getLexer().getKind() != AsmToken::Identifier) 437 case AsmToken::Identifier: 455 case AsmToken::LParen: 456 case AsmToken::Plus: 457 case AsmToken::Minus: 458 case AsmToken::Integer: 459 case AsmToken::Identifier: 504 if (getLexer().is(AsmToken::EndOfStatement)) 511 while (getLexer().isNot(AsmToken::EndOfStatement) & [all...] |
/external/llvm/lib/Target/AArch64/AsmParser/ |
AArch64AsmParser.cpp | 71 bool ParseDirective(AsmToken DirectiveID); [all...] |
/external/llvm/lib/Target/ARM/AsmParser/ |
ARMAsmParser.cpp | 270 bool ParseDirective(AsmToken DirectiveID); [all...] |