/external/llvm/lib/MC/MCParser/ |
D | AsmLexer.cpp | 46 AsmToken AsmLexer::ReturnError(const char *Loc, const std::string &Msg) { in ReturnError() 49 return AsmToken(AsmToken::Error, StringRef(Loc, 0)); in ReturnError() 74 AsmToken AsmLexer::LexFloatLiteral() { in LexFloatLiteral() 90 return AsmToken(AsmToken::Real, in LexFloatLiteral() 98 AsmToken AsmLexer::LexIdentifier() { in LexIdentifier() 113 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier() 115 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier() 120 AsmToken AsmLexer::LexSlash() { in LexSlash() 124 default: return AsmToken(AsmToken::Slash, StringRef(CurPtr-1, 1)); in LexSlash() 146 AsmToken AsmLexer::LexLineComment() { in LexLineComment() [all …]
|
D | AsmParser.cpp | 48 typedef std::vector<AsmToken> MacroArgument; 169 virtual const AsmToken &Lex(); 505 const AsmToken &AsmParser::Lex() { in Lex() 506 const AsmToken *tok = &Lexer.Lex(); in Lex() 508 if (tok->is(AsmToken::Eof)) { in Lex() 518 if (tok->is(AsmToken::Error)) in Lex() 547 while (Lexer.isNot(AsmToken::Eof)) { in Run() 612 while (Lexer.isNot(AsmToken::EndOfStatement) && in EatToEndOfStatement() 613 Lexer.isNot(AsmToken::Eof)) in EatToEndOfStatement() 617 if (Lexer.is(AsmToken::EndOfStatement)) in EatToEndOfStatement() [all …]
|
D | COFFAsmParser.cpp | 139 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute() 150 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute() 153 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute() 166 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch() 195 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveScl() 208 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveType() 227 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSecRel32() 242 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSEHDirectiveStartProc() 275 if (getLexer().isNot(AsmToken::Comma)) in ParseSEHDirectiveHandler() 281 if (getLexer().is(AsmToken::Comma)) { in ParseSEHDirectiveHandler() [all …]
|
D | ELFAsmParser.cpp | 166 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute() 177 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute() 180 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute() 192 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch() 208 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSize() 216 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSize() 229 if (getLexer().is(AsmToken::String)) { in ParseSectionName() 240 if (getLexer().is(AsmToken::Minus)) { in ParseSectionName() 243 } else if (getLexer().is(AsmToken::String)) { in ParseSectionName() 246 } else if (getLexer().is(AsmToken::Identifier)) { in ParseSectionName() [all …]
|
D | DarwinAsmParser.cpp | 312 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch() 347 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveDesc() 355 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveDesc() 371 if (getLexer().isNot(AsmToken::String)) in ParseDirectiveDumpOrLoad() 376 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveDumpOrLoad() 399 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveLsym() 407 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveLsym() 429 if (!getLexer().is(AsmToken::Comma)) in ParseDirectiveSection() 441 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSection() 501 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSecureLogUnique() [all …]
|
D | MCAsmLexer.cpp | 15 MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()), TokStart(0) { in MCAsmLexer() 25 SMLoc AsmToken::getLoc() const { in getLoc() 29 SMLoc AsmToken::getEndLoc() const { in getEndLoc()
|
D | MCAsmParser.cpp | 32 const AsmToken &MCAsmParser::getTok() { in getTok()
|
/external/llvm/lib/Target/X86/AsmParser/ |
D | X86AsmLexer.cpp | 26 AsmToken tentativeToken; 28 const AsmToken &lexTentative() { in lexTentative() 34 const AsmToken &lexDefinite() { in lexDefinite() 42 AsmToken LexTokenATT(); 43 AsmToken LexTokenIntel(); 45 AsmToken LexToken() { in LexToken() 48 return AsmToken(AsmToken::Error, "", 0); in LexToken() 54 return AsmToken(AsmToken::Error, "", 0); in LexToken() 72 AsmToken X86AsmLexer::LexTokenATT() { in LexTokenATT() 73 AsmToken lexedToken = lexDefinite(); in LexTokenATT() [all …]
|
D | X86AsmParser.cpp | 120 virtual bool ParseDirective(AsmToken DirectiveID); 524 const AsmToken &PercentTok = Parser.getTok(); in ParseRegister() 529 if (!isParsingIntelSyntax() && PercentTok.is(AsmToken::Percent)) in ParseRegister() 532 const AsmToken &Tok = Parser.getTok(); in ParseRegister() 533 if (Tok.isNot(AsmToken::Identifier)) { in ParseRegister() 567 if (getLexer().isNot(AsmToken::LParen)) in ParseRegister() 572 const AsmToken &IntTok = Parser.getTok(); in ParseRegister() 573 if (IntTok.isNot(AsmToken::Integer)) in ParseRegister() 587 if (getParser().Lex().isNot(AsmToken::RParen)) in ParseRegister() 656 if (getLexer().isNot(AsmToken::LBrac)) in ParseIntelBracExpression() [all …]
|
/external/llvm/lib/Target/MBlaze/AsmParser/ |
D | MBlazeAsmLexer.cpp | 30 const AsmToken &lexDefinite() { in lexDefinite() 34 AsmToken LexTokenUAL(); 58 AsmToken LexToken() { in LexToken() 61 return AsmToken(AsmToken::Error, "", 0); in LexToken() 67 return AsmToken(AsmToken::Error, "", 0); in LexToken() 88 AsmToken MBlazeBaseAsmLexer::LexTokenUAL() { in LexTokenUAL() 89 const AsmToken &lexedToken = lexDefinite(); in LexTokenUAL() 93 return AsmToken(lexedToken); in LexTokenUAL() 94 case AsmToken::Error: in LexTokenUAL() 96 return AsmToken(lexedToken); in LexTokenUAL() [all …]
|
D | MBlazeAsmParser.cpp | 73 virtual bool ParseDirective(AsmToken DirectiveID); 401 case AsmToken::Identifier: in ParseRegister() 428 case AsmToken::Identifier: in ParseFsl() 446 case AsmToken::LParen: in ParseImmediate() 447 case AsmToken::Plus: in ParseImmediate() 448 case AsmToken::Minus: in ParseImmediate() 449 case AsmToken::Integer: in ParseImmediate() 450 case AsmToken::Identifier: in ParseImmediate() 496 if (getLexer().is(AsmToken::EndOfStatement)) in ParseInstruction() 503 while (getLexer().isNot(AsmToken::EndOfStatement) && in ParseInstruction() [all …]
|
/external/llvm/tools/llvm-mc/ |
D | llvm-mc.cpp | 230 while (Lexer.Lex().isNot(AsmToken::Eof)) { in AsLexInput() 231 AsmToken Tok = Lexer.getTok(); in AsLexInput() 239 case AsmToken::Error: in AsLexInput() 242 case AsmToken::Identifier: in AsLexInput() 245 case AsmToken::Integer: in AsLexInput() 248 case AsmToken::Real: in AsLexInput() 251 case AsmToken::Register: in AsLexInput() 254 case AsmToken::String: in AsLexInput() 258 case AsmToken::Amp: Out->os() << "Amp"; break; in AsLexInput() 259 case AsmToken::AmpAmp: Out->os() << "AmpAmp"; break; in AsLexInput() [all …]
|
/external/llvm/lib/Target/ARM/AsmParser/ |
D | ARMAsmLexer.cpp | 32 const AsmToken &lexDefinite() { in lexDefinite() 36 AsmToken LexTokenUAL(); 60 AsmToken LexToken() { in LexToken() 63 return AsmToken(AsmToken::Error, "", 0); in LexToken() 69 return AsmToken(AsmToken::Error, "", 0); in LexToken() 98 AsmToken ARMBaseAsmLexer::LexTokenUAL() { in LexTokenUAL() 99 const AsmToken &lexedToken = lexDefinite(); in LexTokenUAL() 103 case AsmToken::Error: in LexTokenUAL() 106 case AsmToken::Identifier: { in LexTokenUAL() 126 return AsmToken(AsmToken::Register, in LexTokenUAL() [all …]
|
D | ARMAsmParser.cpp | 258 bool ParseDirective(AsmToken DirectiveID); 2467 const AsmToken &Tok = Parser.getTok(); in tryParseRegister() 2468 if (Tok.isNot(AsmToken::Identifier)) return -1; in tryParseRegister() 2521 const AsmToken &Tok = Parser.getTok(); in tryParseShiftRegister() 2522 assert(Tok.is(AsmToken::Identifier) && "Token is not an Identifier"); in tryParseShiftRegister() 2555 if (Parser.getTok().is(AsmToken::Hash) || in tryParseShiftRegister() 2556 Parser.getTok().is(AsmToken::Dollar)) { in tryParseShiftRegister() 2584 } else if (Parser.getTok().is(AsmToken::Identifier)) { in tryParseShiftRegister() 2625 const AsmToken &ExclaimTok = Parser.getTok(); in tryParseRegisterWithWriteBack() 2626 if (ExclaimTok.is(AsmToken::Exclaim)) { in tryParseRegisterWithWriteBack() [all …]
|
/external/llvm/include/llvm/MC/MCParser/ |
D | 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();
|
D | MCAsmLexer.h | 21 class AsmToken { 65 AsmToken() {} in AsmToken() function 66 AsmToken(TokenKind _Kind, StringRef _Str, int64_t _IntVal = 0) 119 AsmToken CurTok; 132 virtual AsmToken LexToken() = 0; 146 const AsmToken &Lex() { in Lex() 156 const AsmToken &getTok() { in getTok() 171 AsmToken::TokenKind getKind() const { return CurTok.getKind(); } in getKind() 174 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); } in is() 177 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); } in isNot()
|
D | MCAsmParser.h | 17 class AsmToken; variable 93 virtual const AsmToken &Lex() = 0; 96 const AsmToken &getTok();
|
D | MCAsmParserExtension.h | 69 const AsmToken &Lex() { return getParser().Lex(); } in Lex() 71 const AsmToken &getTok() { return getParser().getTok(); } in getTok()
|
/external/llvm/lib/Target/Mips/AsmParser/ |
D | MipsAsmParser.cpp | 56 bool ParseDirective(AsmToken DirectiveID); 432 const AsmToken &Tok = Parser.getTok(); in tryParseRegister() 435 if (Tok.is(AsmToken::Identifier)) { in tryParseRegister() 438 } else if (Tok.is(AsmToken::Integer)) in tryParseRegister() 460 && Operands.size() == 2 && Parser.getTok().is(AsmToken::Integer)){ in tryParseRegisterOperand() 493 case AsmToken::Dollar: { in ParseOperand() 499 if (getLexer().is(AsmToken::LParen)) { in ParseOperand() 503 if (getLexer().isNot(AsmToken::Dollar)) in ParseOperand() 510 if (!getLexer().is(AsmToken::RParen)) in ParseOperand() 535 case AsmToken::Identifier: in ParseOperand() [all …]
|
/external/llvm/include/llvm/MC/ |
D | MCTargetAsmLexer.h | 21 AsmToken CurTok; 32 virtual AsmToken LexToken() = 0; 58 const AsmToken &Lex() { in Lex() 63 const AsmToken &getTok() { in getTok() 78 AsmToken::TokenKind getKind() const { return CurTok.getKind(); } in getKind() 81 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); } in is() 84 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); } in isNot()
|
D | MCTargetAsmParser.h | 19 class AsmToken; variable 79 virtual bool ParseDirective(AsmToken DirectiveID) = 0;
|
/external/llvm/lib/MC/MCDisassembler/ |
D | EDDisassembler.cpp | 329 SmallVectorImpl<AsmToken> &tokens, in parseInst() 362 AsmToken OpcodeToken = genericParser->Lex(); in parseInst() 363 …AsmToken NextToken = genericParser->Lex(); // consume next token, because specificParser expects … in parseInst() 365 if (OpcodeToken.is(AsmToken::Identifier)) { in parseInst() 369 if (NextToken.isNot(AsmToken::Eof) && in parseInst() 382 SpecificAsmLexer->isNot(AsmToken::Eof) && in parseInst() 383 SpecificAsmLexer->isNot(AsmToken::EndOfStatement)) { in parseInst() 384 if (SpecificAsmLexer->is(AsmToken::Error)) { in parseInst()
|
D | EDToken.cpp | 93 SmallVector<AsmToken, 10> asmTokens; in tokenize() 104 SmallVectorImpl<AsmToken>::iterator tokenIterator; in tokenize() 143 case AsmToken::Identifier: in tokenize() 160 case AsmToken::Integer: in tokenize() 175 case AsmToken::Register: in tokenize()
|
D | EDDisassembler.h | 34 class AsmToken; variable 262 llvm::SmallVectorImpl<llvm::AsmToken> &tokens,
|