/external/swiftshader/third_party/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 | 150 const AsmToken &Lex(); 169 const std::vector<std::vector<AsmToken> > &A, 435 const AsmToken &AsmParser::Lex() { in Lex() 436 const AsmToken *tok = &Lexer.Lex(); in Lex() 438 if (tok->is(AsmToken::Eof)) { in Lex() 448 if (tok->is(AsmToken::Error)) in Lex() 466 while (Lexer.isNot(AsmToken::Eof)) { in Run() 530 while (Lexer.isNot(AsmToken::EndOfStatement) && in EatToEndOfStatement() 531 Lexer.isNot(AsmToken::Eof)) in EatToEndOfStatement() 535 if (Lexer.is(AsmToken::EndOfStatement)) in EatToEndOfStatement() [all …]
|
D | COFFAsmParser.cpp | 137 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute() 148 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute() 151 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute() 164 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch() 193 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveScl() 206 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveType() 225 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSEHDirectiveStartProc() 258 if (getLexer().isNot(AsmToken::Comma)) in ParseSEHDirectiveHandler() 264 if (getLexer().is(AsmToken::Comma)) { in ParseSEHDirectiveHandler() 269 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSEHDirectiveHandler() [all …]
|
D | ELFAsmParser.cpp | 164 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute() 175 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute() 178 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute() 190 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch() 206 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSize() 214 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSize() 227 if (getLexer().is(AsmToken::String)) { in ParseSectionName() 238 if (getLexer().is(AsmToken::Minus)) { in ParseSectionName() 241 } else if (getLexer().is(AsmToken::String)) { in ParseSectionName() 244 } else if (getLexer().is(AsmToken::Identifier)) { in ParseSectionName() [all …]
|
D | DarwinAsmParser.cpp | 300 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch() 335 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveDesc() 343 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveDesc() 359 if (getLexer().isNot(AsmToken::String)) in ParseDirectiveDumpOrLoad() 364 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveDumpOrLoad() 387 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveLsym() 395 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveLsym() 417 if (!getLexer().is(AsmToken::Comma)) in ParseDirectiveSection() 429 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSection() 458 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSecureLogUnique() [all …]
|
/external/llvm/lib/MC/MCParser/ |
D | AsmLexer.cpp | 47 AsmToken AsmLexer::ReturnError(const char *Loc, const std::string &Msg) { in ReturnError() 50 return AsmToken(AsmToken::Error, StringRef(Loc, CurPtr - Loc)); in ReturnError() 64 AsmToken AsmLexer::LexFloatLiteral() { in LexFloatLiteral() 80 return AsmToken(AsmToken::Real, in LexFloatLiteral() 90 AsmToken AsmLexer::LexHexFloatLiteral(bool NoIntDigits) { in LexHexFloatLiteral() 128 return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart)); in LexHexFloatLiteral() 136 AsmToken AsmLexer::LexIdentifier() { in LexIdentifier() 152 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier() 154 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier() 159 AsmToken AsmLexer::LexSlash() { in LexSlash() [all …]
|
D | AsmParser.cpp | 52 typedef std::vector<AsmToken> MCAsmMacroArgument; 226 const AsmToken &Lex() override; 260 if (getTok().getKind() == AsmToken::Hash) { in parseEOL() 263 Lexer.UnLex(AsmToken(AsmToken::EndOfStatement, CommentStr)); in parseEOL() 265 if (getTok().getKind() != AsmToken::EndOfStatement) in parseEOL() 273 bool parseToken(AsmToken::TokenKind T, const Twine &ErrMsg) { in parseToken() 274 if (T == AsmToken::EndOfStatement) in parseToken() 283 if (getTok().getKind() != AsmToken::Integer) in parseIntToken() 375 unsigned getBinOpPrecedence(AsmToken::TokenKind K, 662 const AsmToken &AsmParser::Lex() { in Lex() [all …]
|
D | ELFAsmParser.cpp | 160 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute() 171 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute() 174 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute() 187 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseSectionSwitch() 205 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSize() 213 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSize() 226 if (getLexer().is(AsmToken::String)) { in ParseSectionName() 235 if (getLexer().is(AsmToken::Comma) || in ParseSectionName() 236 getLexer().is(AsmToken::EndOfStatement)) in ParseSectionName() 240 if (getLexer().is(AsmToken::String)) { in ParseSectionName() [all …]
|
D | COFFAsmParser.cpp | 269 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute() 280 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute() 283 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute() 304 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch() 315 if (!getLexer().is(AsmToken::Identifier)) in ParseSectionName() 347 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection() 350 if (getLexer().isNot(AsmToken::String)) in ParseDirectiveSection() 362 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection() 368 if (!getLexer().is(AsmToken::Identifier)) in ParseDirectiveSection() 375 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSection() [all …]
|
D | DarwinAsmParser.cpp | 396 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseSectionSwitch() 450 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveDesc() 458 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseDirectiveDesc() 495 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseDirectiveIndirectSymbol() 508 if (getLexer().isNot(AsmToken::String)) in parseDirectiveDumpOrLoad() 513 if (getLexer().isNot(AsmToken::EndOfStatement)) in parseDirectiveDumpOrLoad() 531 if (getLexer().isNot(AsmToken::String)) in parseDirectiveLinkerOption() 541 if (getLexer().is(AsmToken::EndOfStatement)) in parseDirectiveLinkerOption() 544 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveLinkerOption() 563 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveLsym() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/AsmParser/ |
D | X86AsmLexer.cpp | 27 AsmToken tentativeToken; 29 const AsmToken &lexTentative() { in lexTentative() 35 const AsmToken &lexDefinite() { in lexDefinite() 43 AsmToken LexTokenATT(); 44 AsmToken LexTokenIntel(); 46 AsmToken LexToken() { in LexToken() 49 return AsmToken(AsmToken::Error, "", 0); in LexToken() 55 return AsmToken(AsmToken::Error, "", 0); in LexToken() 73 AsmToken X86AsmLexer::LexTokenATT() { in LexTokenATT() 74 AsmToken lexedToken = lexDefinite(); in LexTokenATT() [all …]
|
D | X86AsmParser.cpp | 93 virtual bool ParseDirective(AsmToken DirectiveID); 395 const AsmToken &TokPercent = Parser.getTok(); in ParseRegister() 396 assert(TokPercent.is(AsmToken::Percent) && "Invalid token kind!"); in ParseRegister() 400 const AsmToken &Tok = Parser.getTok(); in ParseRegister() 401 if (Tok.isNot(AsmToken::Identifier)) in ParseRegister() 431 if (getLexer().isNot(AsmToken::LParen)) in ParseRegister() 436 const AsmToken &IntTok = Parser.getTok(); in ParseRegister() 437 if (IntTok.isNot(AsmToken::Integer)) in ParseRegister() 451 if (getParser().Lex().isNot(AsmToken::RParen)) in ParseRegister() 494 case AsmToken::Percent: { in ParseOperand() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/AsmParser/ |
D | MBlazeAsmLexer.cpp | 34 const AsmToken &lexDefinite() { in lexDefinite() 38 AsmToken LexTokenUAL(); 62 AsmToken LexToken() { in LexToken() 65 return AsmToken(AsmToken::Error, "", 0); in LexToken() 71 return AsmToken(AsmToken::Error, "", 0); in LexToken() 92 AsmToken MBlazeBaseAsmLexer::LexTokenUAL() { in LexTokenUAL() 93 const AsmToken &lexedToken = lexDefinite(); in LexTokenUAL() 97 return AsmToken(lexedToken); in LexTokenUAL() 98 case AsmToken::Error: in LexTokenUAL() 100 return AsmToken(lexedToken); in LexTokenUAL() [all …]
|
/external/swiftshader/third_party/LLVM/tools/llvm-mc/ |
D | llvm-mc.cpp | 265 while (Lexer.Lex().isNot(AsmToken::Eof)) { in AsLexInput() 266 AsmToken Tok = Lexer.getTok(); in AsLexInput() 273 case AsmToken::Error: in AsLexInput() 276 case AsmToken::Identifier: in AsLexInput() 279 case AsmToken::Integer: in AsLexInput() 282 case AsmToken::Real: in AsLexInput() 285 case AsmToken::Register: in AsLexInput() 288 case AsmToken::String: in AsLexInput() 292 case AsmToken::Amp: Out->os() << "Amp"; break; in AsLexInput() 293 case AsmToken::AmpAmp: Out->os() << "AmpAmp"; break; in AsLexInput() [all …]
|
/external/llvm/tools/llvm-mc/ |
D | llvm-mc.cpp | 256 while (Lexer.Lex().isNot(AsmToken::Eof)) { in AsLexInput() 257 const AsmToken &Tok = Lexer.getTok(); in AsLexInput() 265 case AsmToken::Error: in AsLexInput() 268 case AsmToken::Identifier: in AsLexInput() 271 case AsmToken::Integer: in AsLexInput() 274 case AsmToken::Real: in AsLexInput() 277 case AsmToken::String: in AsLexInput() 281 case AsmToken::Amp: OS << "Amp"; break; in AsLexInput() 282 case AsmToken::AmpAmp: OS << "AmpAmp"; break; in AsLexInput() 283 case AsmToken::At: OS << "At"; break; in AsLexInput() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/AsmParser/ |
D | ARMAsmLexer.cpp | 35 const AsmToken &lexDefinite() { in lexDefinite() 39 AsmToken LexTokenUAL(); 63 AsmToken LexToken() { in LexToken() 66 return AsmToken(AsmToken::Error, "", 0); in LexToken() 72 return AsmToken(AsmToken::Error, "", 0); in LexToken() 101 AsmToken ARMBaseAsmLexer::LexTokenUAL() { in LexTokenUAL() 102 const AsmToken &lexedToken = lexDefinite(); in LexTokenUAL() 106 case AsmToken::Error: in LexTokenUAL() 109 case AsmToken::Identifier: { in LexTokenUAL() 131 return AsmToken(AsmToken::Register, in LexTokenUAL() [all …]
|
/external/llvm/include/llvm/MC/MCParser/ |
D | MCAsmLexer.h | 25 class AsmToken { 71 AsmToken() {} in AsmToken() function 72 AsmToken(TokenKind Kind, StringRef Str, APInt IntVal) in AsmToken() function 74 AsmToken(TokenKind Kind, StringRef Str, int64_t IntVal = 0) 127 SmallVector<AsmToken, 1> CurTok; 142 virtual AsmToken LexToken() = 0; 156 const AsmToken &Lex() { in Lex() 162 AsmToken T = LexToken(); in Lex() 168 void UnLex(AsmToken const &Token) { in UnLex() 178 const AsmToken &getTok() const { in getTok() [all …]
|
D | AsmLexer.h | 40 AsmToken LexToken() override; 50 size_t peekTokens(MutableArrayRef<AsmToken> Buf, 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 …]
|
/external/swiftshader/third_party/LLVM/include/llvm/MC/MCParser/ |
D | AsmLexer.h | 42 virtual AsmToken LexToken(); 60 AsmToken ReturnError(const char *Loc, const std::string &Msg); 62 AsmToken LexIdentifier(); 63 AsmToken LexSlash(); 64 AsmToken LexLineComment(); 65 AsmToken LexDigit(); 66 AsmToken LexSingleQuote(); 67 AsmToken LexQuote(); 68 AsmToken LexFloatLiteral();
|
D | MCAsmLexer.h | 22 class AsmToken { 65 AsmToken() {} in AsmToken() function 66 AsmToken(TokenKind _Kind, StringRef _Str, int64_t _IntVal = 0) 118 AsmToken CurTok; 131 virtual AsmToken LexToken() = 0; 145 const AsmToken &Lex() { in Lex() 155 const AsmToken &getTok() { in getTok() 170 AsmToken::TokenKind getKind() const { return CurTok.getKind(); } in getKind() 173 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); } in is() 176 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); } in isNot()
|
/external/swiftshader/third_party/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()
|
/external/llvm/lib/Target/X86/AsmParser/ |
D | X86AsmParser.cpp | 820 bool ParseDirective(AsmToken DirectiveID) override; 873 const AsmToken &PercentTok = Parser.getTok(); in ParseRegister() 878 if (!isParsingIntelSyntax() && PercentTok.is(AsmToken::Percent)) in ParseRegister() 881 const AsmToken &Tok = Parser.getTok(); in ParseRegister() 884 if (Tok.isNot(AsmToken::Identifier)) { in ParseRegister() 928 if (getLexer().isNot(AsmToken::LParen)) in ParseRegister() 933 const AsmToken &IntTok = Parser.getTok(); in ParseRegister() 934 if (IntTok.isNot(AsmToken::Integer)) in ParseRegister() 948 if (getParser().Lex().isNot(AsmToken::RParen)) in ParseRegister() 1265 const AsmToken &Tok = Parser.getTok(); in ParseIntelExpression() [all …]
|
/external/llvm/lib/Target/AMDGPU/AsmParser/ |
D | AMDGPUAsmParser.cpp | 650 bool ParseDirective(AsmToken DirectiveID) override; 828 if (getLexer().is(AsmToken::Identifier)) { in ParseAMDGPURegister() 857 if (getLexer().isNot(AsmToken::LBrac)) in ParseAMDGPURegister() 864 const bool isRBrace = getLexer().is(AsmToken::RBrac); in ParseAMDGPURegister() 865 if (!isRBrace && getLexer().isNot(AsmToken::Colon)) in ParseAMDGPURegister() 875 if (getLexer().isNot(AsmToken::RBrac)) in ParseAMDGPURegister() 883 } else if (getLexer().is(AsmToken::LBrac)) { in ParseAMDGPURegister() 893 if (getLexer().is(AsmToken::Comma)) { in ParseAMDGPURegister() 895 } else if (getLexer().is(AsmToken::RBrac)) { in ParseAMDGPURegister() 970 if (getLexer().getKind() == AsmToken::Minus) { in parseImm() [all …]
|
/external/llvm/lib/Target/Hexagon/AsmParser/ |
D | HexagonAsmParser.cpp | 90 bool isLabel(AsmToken &Token) override; 166 AsmToken ID, OperandVector &Operands) override; 168 virtual bool ParseDirective(AsmToken DirectiveID) override; 732 if (!Parser.getTok().is(AsmToken::Colon)) in matchBundleOptions() 862 bool HexagonAsmParser::ParseDirective(AsmToken DirectiveID) { in ParseDirective() 884 assert((getLexer().isNot(AsmToken::EndOfStatement)) && in ParseDirectiveSubsection() 891 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSubsection() 912 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveFalign() 938 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveValue() 956 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveValue() [all …]
|
/external/llvm/lib/Target/Sparc/AsmParser/ |
D | SparcAsmParser.cpp | 56 bool ParseDirective(AsmToken DirectiveID) override; 77 bool matchRegisterName(const AsmToken &Tok, unsigned &RegNo, 595 const AsmToken &Tok = Parser.getTok(); in ParseRegister() 599 if (getLexer().getKind() != AsmToken::Percent) in ParseRegister() 624 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction() 626 if (getLexer().is(AsmToken::Comma)) { in ParseInstruction() 639 while (getLexer().is(AsmToken::Comma) || getLexer().is(AsmToken::Plus)) { in ParseInstruction() 640 if (getLexer().is(AsmToken::Plus)) { in ParseInstruction() 653 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseInstruction() 663 ParseDirective(AsmToken DirectiveID) in ParseDirective() [all …]
|