/external/swiftshader/third_party/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...] |
COFFAsmParser.cpp | 137 if (getLexer().isNot(AsmToken::EndOfStatement)) { 148 if (getLexer().is(AsmToken::EndOfStatement)) 151 if (getLexer().isNot(AsmToken::Comma)) 164 if (getLexer().isNot(AsmToken::EndOfStatement)) 193 if (getLexer().isNot(AsmToken::EndOfStatement)) 206 if (getLexer().isNot(AsmToken::EndOfStatement)) 225 if (getLexer().isNot(AsmToken::EndOfStatement)) 258 if (getLexer().isNot(AsmToken::Comma)) 264 if (getLexer().is(AsmToken::Comma)) { 269 if (getLexer().isNot(AsmToken::EndOfStatement) [all...] |
ELFAsmParser.cpp | 164 if (getLexer().isNot(AsmToken::EndOfStatement)) { 175 if (getLexer().is(AsmToken::EndOfStatement)) 178 if (getLexer().isNot(AsmToken::Comma)) 190 if (getLexer().isNot(AsmToken::EndOfStatement)) 206 if (getLexer().isNot(AsmToken::Comma)) 214 if (getLexer().isNot(AsmToken::EndOfStatement)) 227 if (getLexer().is(AsmToken::String)) { 238 if (getLexer().is(AsmToken::Minus)) { 241 } else if (getLexer().is(AsmToken::String)) { 244 } else if (getLexer().is(AsmToken::Identifier)) [all...] |
AsmParser.cpp | 150 const AsmToken &Lex(); 169 const std::vector<std::vector<AsmToken> > &A, 435 const AsmToken &AsmParser::Lex() { 436 const AsmToken *tok = &Lexer.Lex(); 438 if (tok->is(AsmToken::Eof)) { 448 if (tok->is(AsmToken::Error)) 466 while (Lexer.isNot(AsmToken::Eof)) { 530 while (Lexer.isNot(AsmToken::EndOfStatement) && 531 Lexer.isNot(AsmToken::Eof)) 535 if (Lexer.is(AsmToken::EndOfStatement) [all...] |
MCAsmLexer.cpp | 15 MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()), TokStart(0) { 25 SMLoc AsmToken::getLoc() const {
|
DarwinAsmParser.cpp | 300 if (getLexer().isNot(AsmToken::EndOfStatement)) 335 if (getLexer().isNot(AsmToken::Comma)) 343 if (getLexer().isNot(AsmToken::EndOfStatement)) 359 if (getLexer().isNot(AsmToken::String)) 364 if (getLexer().isNot(AsmToken::EndOfStatement)) 387 if (getLexer().isNot(AsmToken::Comma)) 395 if (getLexer().isNot(AsmToken::EndOfStatement)) 417 if (!getLexer().is(AsmToken::Comma)) 429 if (getLexer().isNot(AsmToken::EndOfStatement)) 458 if (getLexer().isNot(AsmToken::EndOfStatement) [all...] |
/external/llvm/lib/MC/MCParser/ |
AsmLexer.cpp | 46 /// location. This is defined to always return AsmToken::Error. 47 AsmToken AsmLexer::ReturnError(const char *Loc, const std::string &Msg) { 50 return AsmToken(AsmToken::Error, StringRef(Loc, CurPtr - Loc)); 64 AsmToken AsmLexer::LexFloatLiteral() { 80 return AsmToken(AsmToken::Real, 90 AsmToken AsmLexer::LexHexFloatLiteral(bool NoIntDigits) { 128 return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart)) [all...] |
MCAsmLexer.cpp | 16 CurTok.emplace_back(AsmToken::Space, StringRef()); 26 SMLoc AsmToken::getLoc() const { 30 SMLoc AsmToken::getEndLoc() const { 34 SMRange AsmToken::getLocRange() const {
|
ELFAsmParser.cpp | 160 if (getLexer().isNot(AsmToken::EndOfStatement)) { 171 if (getLexer().is(AsmToken::EndOfStatement)) 174 if (getLexer().isNot(AsmToken::Comma)) 187 if (getLexer().isNot(AsmToken::EndOfStatement)) { 205 if (getLexer().isNot(AsmToken::Comma)) 213 if (getLexer().isNot(AsmToken::EndOfStatement)) 226 if (getLexer().is(AsmToken::String)) { 235 if (getLexer().is(AsmToken::Comma) || 236 getLexer().is(AsmToken::EndOfStatement)) 240 if (getLexer().is(AsmToken::String)) [all...] |
AsmParser.cpp | 52 typedef std::vector<AsmToken> MCAsmMacroArgument; 226 const AsmToken &Lex() override; 260 if (getTok().getKind() == AsmToken::Hash) { 263 Lexer.UnLex(AsmToken(AsmToken::EndOfStatement, CommentStr)); 265 if (getTok().getKind() != AsmToken::EndOfStatement) 273 bool parseToken(AsmToken::TokenKind T, const Twine &ErrMsg) { 274 if (T == AsmToken::EndOfStatement) 283 if (getTok().getKind() != AsmToken::Integer) 375 unsigned getBinOpPrecedence(AsmToken::TokenKind K [all...] |
COFFAsmParser.cpp | 269 if (getLexer().isNot(AsmToken::EndOfStatement)) { 280 if (getLexer().is(AsmToken::EndOfStatement)) 283 if (getLexer().isNot(AsmToken::Comma)) 304 if (getLexer().isNot(AsmToken::EndOfStatement)) 315 if (!getLexer().is(AsmToken::Identifier)) 347 if (getLexer().is(AsmToken::Comma)) { 350 if (getLexer().isNot(AsmToken::String)) 362 if (getLexer().is(AsmToken::Comma)) { 368 if (!getLexer().is(AsmToken::Identifier)) 375 if (getLexer().isNot(AsmToken::Comma) [all...] |
DarwinAsmParser.cpp | 396 if (getLexer().isNot(AsmToken::EndOfStatement)) 450 if (getLexer().isNot(AsmToken::Comma)) 458 if (getLexer().isNot(AsmToken::EndOfStatement)) 495 if (getLexer().isNot(AsmToken::EndOfStatement)) 508 if (getLexer().isNot(AsmToken::String)) 513 if (getLexer().isNot(AsmToken::EndOfStatement)) 531 if (getLexer().isNot(AsmToken::String)) 541 if (getLexer().is(AsmToken::EndOfStatement)) 544 if (getLexer().isNot(AsmToken::Comma)) 563 if (getLexer().isNot(AsmToken::Comma) [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/X86/AsmParser/ |
X86AsmLexer.cpp | 27 AsmToken tentativeToken; 29 const AsmToken &lexTentative() { 35 const AsmToken &lexDefinite() { 43 AsmToken LexTokenATT(); 44 AsmToken LexTokenIntel(); 46 AsmToken LexToken() { 49 return AsmToken(AsmToken::Error, "", 0); 55 return AsmToken(AsmToken::Error, "", 0) [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/AsmParser/ |
MBlazeAsmLexer.cpp | 34 const AsmToken &lexDefinite() { 38 AsmToken LexTokenUAL(); 62 AsmToken LexToken() { 65 return AsmToken(AsmToken::Error, "", 0); 71 return AsmToken(AsmToken::Error, "", 0); 92 AsmToken MBlazeBaseAsmLexer::LexTokenUAL() { 93 const AsmToken &lexedToken = lexDefinite(); 97 return AsmToken(lexedToken) [all...] |
MBlazeAsmParser.cpp | 69 virtual bool ParseDirective(AsmToken DirectiveID); 399 case AsmToken::Identifier: 426 case AsmToken::Identifier: 444 case AsmToken::LParen: 445 case AsmToken::Plus: 446 case AsmToken::Minus: 447 case AsmToken::Integer: 448 case AsmToken::Identifier: 494 if (getLexer().is(AsmToken::EndOfStatement)) 501 while (getLexer().isNot(AsmToken::EndOfStatement) & [all...] |
/external/llvm/include/llvm/MC/MCParser/ |
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...] |
MCAsmLexer.h | 25 class AsmToken { 71 AsmToken() {} 72 AsmToken(TokenKind Kind, StringRef Str, APInt IntVal) 74 AsmToken(TokenKind Kind, StringRef Str, int64_t IntVal = 0) 127 SmallVector<AsmToken, 1> CurTok; 142 virtual AsmToken LexToken() = 0; 156 const AsmToken &Lex() { 162 AsmToken T = LexToken(); 168 void UnLex(AsmToken const &Token) { 178 const AsmToken &getTok() const [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/ARM/AsmParser/ |
ARMAsmLexer.cpp | 35 const AsmToken &lexDefinite() { 39 AsmToken LexTokenUAL(); 63 AsmToken LexToken() { 66 return AsmToken(AsmToken::Error, "", 0); 72 return AsmToken(AsmToken::Error, "", 0); 101 AsmToken ARMBaseAsmLexer::LexTokenUAL() { 102 const AsmToken &lexedToken = lexDefinite(); 106 case AsmToken::Error [all...] |
/external/swiftshader/third_party/LLVM/include/llvm/MC/MCParser/ |
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();
|
MCAsmLexer.h | 21 /// AsmToken - Target independent representation for an assembler token. 22 class AsmToken { 65 AsmToken() {} 66 AsmToken(TokenKind _Kind, StringRef _Str, int64_t _IntVal = 0) 118 AsmToken CurTok; 131 virtual AsmToken LexToken() = 0; 145 const AsmToken &Lex() { 155 const AsmToken &getTok() { 170 AsmToken::TokenKind getKind() const { return CurTok.getKind(); } 173 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); [all...] |
/external/swiftshader/third_party/LLVM/include/llvm/MC/ |
MCTargetAsmLexer.h | 21 AsmToken CurTok; 32 virtual AsmToken LexToken() = 0; 58 const AsmToken &Lex() { 63 const AsmToken &getTok() { 78 AsmToken::TokenKind getKind() const { return CurTok.getKind(); } 81 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); } 84 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); }
|
/external/swiftshader/third_party/LLVM/tools/llvm-mc/ |
llvm-mc.cpp | 265 while (Lexer.Lex().isNot(AsmToken::Eof)) { 266 AsmToken Tok = Lexer.getTok(); 273 case AsmToken::Error: 276 case AsmToken::Identifier: 279 case AsmToken::Integer: 282 case AsmToken::Real: 285 case AsmToken::Register: 288 case AsmToken::String: 292 case AsmToken::Amp: Out->os() << "Amp"; break; 293 case AsmToken::AmpAmp: Out->os() << "AmpAmp"; break [all...] |
/external/llvm/tools/llvm-mc/ |
llvm-mc.cpp | 256 while (Lexer.Lex().isNot(AsmToken::Eof)) { 257 const AsmToken &Tok = Lexer.getTok(); 265 case AsmToken::Error: 268 case AsmToken::Identifier: 271 case AsmToken::Integer: 274 case AsmToken::Real: 277 case AsmToken::String: 281 case AsmToken::Amp: OS << "Amp"; break; 282 case AsmToken::AmpAmp: OS << "AmpAmp"; break; 283 case AsmToken::At: OS << "At"; break [all...] |
/external/llvm/lib/Target/X86/AsmParser/ |
X86AsmParser.cpp | 820 bool ParseDirective(AsmToken DirectiveID) override; 873 const AsmToken &PercentTok = Parser.getTok(); 878 if (!isParsingIntelSyntax() && PercentTok.is(AsmToken::Percent)) 881 const AsmToken &Tok = Parser.getTok(); 884 if (Tok.isNot(AsmToken::Identifier)) { 928 if (getLexer().isNot(AsmToken::LParen)) 933 const AsmToken &IntTok = Parser.getTok(); 934 if (IntTok.isNot(AsmToken::Integer)) 948 if (getParser().Lex().isNot(AsmToken::RParen)) [all...] |
/external/llvm/lib/Target/AMDGPU/AsmParser/ |
AMDGPUAsmParser.cpp | 650 bool ParseDirective(AsmToken DirectiveID) override; 828 if (getLexer().is(AsmToken::Identifier)) { 857 if (getLexer().isNot(AsmToken::LBrac)) 864 const bool isRBrace = getLexer().is(AsmToken::RBrac); 865 if (!isRBrace && getLexer().isNot(AsmToken::Colon)) 875 if (getLexer().isNot(AsmToken::RBrac)) 883 } else if (getLexer().is(AsmToken::LBrac)) { 893 if (getLexer().is(AsmToken::Comma)) { 895 } else if (getLexer().is(AsmToken::RBrac)) { 970 if (getLexer().getKind() == AsmToken::Minus) [all...] |