/external/llvm/include/llvm/MC/MCParser/ |
AsmLexer.h | 39 AsmToken LexToken() override; 50 const AsmToken peekTok(bool ShouldSkipSpace = true) override; 59 AsmToken ReturnError(const char *Loc, const std::string &Msg); 61 AsmToken LexIdentifier(); 62 AsmToken LexSlash(); 63 AsmToken LexLineComment(); 64 AsmToken LexDigit(); 65 AsmToken LexSingleQuote(); 66 AsmToken LexQuote(); 67 AsmToken LexFloatLiteral() [all...] |
MCAsmLexer.h | 21 /// AsmToken - Target independent representation for an assembler token. 22 class AsmToken { 65 AsmToken() {} 66 AsmToken(TokenKind _Kind, StringRef _Str, APInt _IntVal) 68 AsmToken(TokenKind _Kind, StringRef _Str, int64_t _IntVal = 0) 120 AsmToken CurTok; 135 virtual AsmToken LexToken() = 0; 149 const AsmToken &Lex() { 159 const AsmToken &getTok() { 164 virtual const AsmToken peekTok(bool ShouldSkipSpace = true) = 0 [all...] |
MCAsmParserExtension.h | 69 const AsmToken &Lex() { return getParser().Lex(); } 71 const AsmToken &getTok() { return getParser().getTok(); }
|
MCAsmParser.h | 136 /// Lex - Get the next AsmToken in the stream, possibly handling file 138 virtual const AsmToken &Lex() = 0; 140 /// getTok - Get the current AsmToken from the stream. 141 const AsmToken &getTok();
|
/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, 100 AsmToken AsmLexer::LexHexFloatLiteral(bool NoIntDigits) { 138 return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart)) [all...] |
MCAsmLexer.cpp | 15 MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()), 26 SMLoc AsmToken::getLoc() const { 30 SMLoc AsmToken::getEndLoc() const {
|
ELFAsmParser.cpp | 170 if (getLexer().isNot(AsmToken::EndOfStatement)) { 181 if (getLexer().is(AsmToken::EndOfStatement)) 184 if (getLexer().isNot(AsmToken::Comma)) 197 if (getLexer().isNot(AsmToken::EndOfStatement)) { 215 if (getLexer().isNot(AsmToken::Comma)) 223 if (getLexer().isNot(AsmToken::EndOfStatement)) 236 if (getLexer().is(AsmToken::String)) { 246 if (getLexer().is(AsmToken::Minus)) { 249 } else if (getLexer().is(AsmToken::String)) { 252 } else if (getLexer().is(AsmToken::Identifier)) [all...] |
AsmParser.cpp | 56 typedef std::vector<AsmToken> MCAsmMacroArgument; 220 const AsmToken &Lex() override; 600 const AsmToken &AsmParser::Lex() { 601 const AsmToken *tok = &Lexer.Lex(); 603 if (tok->is(AsmToken::Eof)) { 613 if (tok->is(AsmToken::Error)) 644 while (Lexer.isNot(AsmToken::Eof)) { 711 while (Lexer.isNot(AsmToken::EndOfStatement) && Lexer.isNot(AsmToken::Eof)) 715 if (Lexer.is(AsmToken::EndOfStatement) [all...] |
DarwinAsmParser.cpp | 377 if (getLexer().isNot(AsmToken::EndOfStatement)) 412 if (getLexer().isNot(AsmToken::Comma)) 420 if (getLexer().isNot(AsmToken::EndOfStatement)) 456 if (getLexer().isNot(AsmToken::EndOfStatement)) 469 if (getLexer().isNot(AsmToken::String)) 474 if (getLexer().isNot(AsmToken::EndOfStatement)) 492 if (getLexer().isNot(AsmToken::String)) 502 if (getLexer().is(AsmToken::EndOfStatement)) 505 if (getLexer().isNot(AsmToken::Comma)) 524 if (getLexer().isNot(AsmToken::Comma) [all...] |
COFFAsmParser.cpp | 268 if (getLexer().isNot(AsmToken::EndOfStatement)) { 279 if (getLexer().is(AsmToken::EndOfStatement)) 282 if (getLexer().isNot(AsmToken::Comma)) 303 if (getLexer().isNot(AsmToken::EndOfStatement)) 314 if (!getLexer().is(AsmToken::Identifier)) 346 if (getLexer().is(AsmToken::Comma)) { 349 if (getLexer().isNot(AsmToken::String)) 361 if (getLexer().is(AsmToken::Comma)) { 370 if (getLexer().isNot(AsmToken::Comma)) 378 if (getLexer().isNot(AsmToken::EndOfStatement) [all...] |
MCAsmParser.cpp | 32 const AsmToken &MCAsmParser::getTok() {
|
/external/llvm/tools/llvm-mc/ |
llvm-mc.cpp | 248 while (Lexer.Lex().isNot(AsmToken::Eof)) { 249 AsmToken Tok = Lexer.getTok(); 257 case AsmToken::Error: 260 case AsmToken::Identifier: 263 case AsmToken::Integer: 266 case AsmToken::Real: 269 case AsmToken::String: 273 case AsmToken::Amp: Out->os() << "Amp"; break; 274 case AsmToken::AmpAmp: Out->os() << "AmpAmp"; break; 275 case AsmToken::At: Out->os() << "At"; break [all...] |
/external/llvm/lib/Target/Mips/AsmParser/ |
MipsAsmParser.cpp | 92 bool ParseDirective(AsmToken DirectiveID) override; [all...] |
/external/llvm/lib/Target/X86/AsmParser/ |
X86AsmParser.cpp | 761 bool ParseDirective(AsmToken DirectiveID) override; 834 const AsmToken &PercentTok = Parser.getTok(); 839 if (!isParsingIntelSyntax() && PercentTok.is(AsmToken::Percent)) 842 const AsmToken &Tok = Parser.getTok(); 845 if (Tok.isNot(AsmToken::Identifier)) { 878 if (getLexer().isNot(AsmToken::LParen)) 883 const AsmToken &IntTok = Parser.getTok(); 884 if (IntTok.isNot(AsmToken::Integer)) 898 if (getParser().Lex().isNot(AsmToken::RParen)) [all...] |
/external/llvm/lib/Target/Sparc/AsmParser/ |
SparcAsmParser.cpp | 56 bool ParseDirective(AsmToken DirectiveID) override; 73 bool matchRegisterName(const AsmToken &Tok, unsigned &RegNo, 431 const AsmToken &Tok = Parser.getTok(); 435 if (getLexer().getKind() != AsmToken::Percent) 460 if (getLexer().isNot(AsmToken::EndOfStatement)) { 462 if (getLexer().is(AsmToken::Comma)) { 475 while (getLexer().is(AsmToken::Comma)) { 485 if (getLexer().isNot(AsmToken::EndOfStatement)) { 495 ParseDirective(AsmToken DirectiveID) 525 if (getLexer().isNot(AsmToken::EndOfStatement)) [all...] |
/external/llvm/include/llvm/MC/ |
MCTargetAsmParser.h | 20 class AsmToken; 150 virtual bool ParseDirective(AsmToken DirectiveID) = 0;
|
/external/llvm/lib/Target/AArch64/AsmParser/ |
AArch64AsmParser.cpp | 131 bool ParseDirective(AsmToken DirectiveID) override; [all...] |
/external/llvm/lib/Target/ARM/AsmParser/ |
ARMAsmParser.cpp | 354 bool ParseDirective(AsmToken DirectiveID) override; [all...] |
/external/llvm/lib/Target/PowerPC/AsmParser/ |
PPCAsmParser.cpp | 230 bool MatchRegisterName(const AsmToken &Tok, 281 bool ParseDirective(AsmToken DirectiveID) override; 958 MatchRegisterName(const AsmToken &Tok, unsigned &RegNo, int64_t &IntVal) { 959 if (Tok.is(AsmToken::Identifier)) { [all...] |
/external/llvm/lib/Target/SystemZ/AsmParser/ |
SystemZAsmParser.cpp | 342 bool ParseDirective(AsmToken DirectiveID) override; 423 if (Parser.getTok().isNot(AsmToken::Percent)) 428 if (Parser.getTok().isNot(AsmToken::Identifier)) 479 if (Parser.getTok().isNot(AsmToken::Percent)) 507 if (getLexer().is(AsmToken::LParen)) { 510 if (getLexer().is(AsmToken::Percent)) { 515 if (getLexer().is(AsmToken::Comma)) 526 if (getLexer().is(AsmToken::Comma)) { 535 if (getLexer().isNot(AsmToken::RParen)) 579 bool SystemZAsmParser::ParseDirective(AsmToken DirectiveID) [all...] |