Home
last modified time | relevance | path

Searched refs:AsmToken (Results 1 – 25 of 77) sorted by relevance

1234

/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/MCParser/
DMCAsmLexer.cpp19 CurTok.emplace_back(AsmToken::Space, StringRef()); in MCAsmLexer()
28 SMLoc AsmToken::getLoc() const { in getLoc()
32 SMLoc AsmToken::getEndLoc() const { in getEndLoc()
36 SMRange AsmToken::getLocRange() const { in getLocRange()
40 void AsmToken::dump(raw_ostream &OS) const { in dump()
42 case AsmToken::Error: in dump()
45 case AsmToken::Identifier: in dump()
48 case AsmToken::Integer: in dump()
51 case AsmToken::Real: in dump()
54 case AsmToken::String: in dump()
[all …]
DAsmLexer.cpp53 AsmToken AsmLexer::ReturnError(const char *Loc, const std::string &Msg) { in ReturnError()
56 return AsmToken(AsmToken::Error, StringRef(Loc, CurPtr - Loc)); in ReturnError()
70 AsmToken AsmLexer::LexFloatLiteral() { in LexFloatLiteral()
86 return AsmToken(AsmToken::Real, in LexFloatLiteral()
96 AsmToken AsmLexer::LexHexFloatLiteral(bool NoIntDigits) { in LexHexFloatLiteral()
134 return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart)); in LexHexFloatLiteral()
143 AsmToken AsmLexer::LexIdentifier() { in LexIdentifier()
159 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier()
161 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier()
166 AsmToken AsmLexer::LexSlash() { in LexSlash()
[all …]
DAsmParser.cpp84 typedef std::vector<AsmToken> MCAsmMacroArgument;
225 const AsmToken &Lex() override;
342 unsigned getBinOpPrecedence(AsmToken::TokenKind K,
802 const AsmToken &AsmParser::Lex() { in Lex()
803 if (Lexer.getTok().is(AsmToken::Error)) in Lex()
807 if (getTok().is(AsmToken::EndOfStatement)) { in Lex()
814 const AsmToken *tok = &Lexer.Lex(); in Lex()
817 while (tok->is(AsmToken::Comment)) { in Lex()
823 if (tok->is(AsmToken::Eof)) { in Lex()
878 while (Lexer.isNot(AsmToken::Eof)) { in Run()
[all …]
DELFAsmParser.cpp179 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute()
190 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute()
193 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute()
206 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseSectionSwitch()
224 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSize()
232 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseDirectiveSize()
246 if (getLexer().is(AsmToken::String)) { in ParseSectionName()
254 if (getLexer().is(AsmToken::Comma) || in ParseSectionName()
255 getLexer().is(AsmToken::EndOfStatement)) in ParseSectionName()
259 if (getLexer().is(AsmToken::String)) { in ParseSectionName()
[all …]
DCOFFAsmParser.cpp294 if (getLexer().isNot(AsmToken::EndOfStatement)) { in ParseDirectiveSymbolAttribute()
305 if (getLexer().is(AsmToken::EndOfStatement)) in ParseDirectiveSymbolAttribute()
308 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSymbolAttribute()
329 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch()
340 if (!getLexer().is(AsmToken::Identifier)) in ParseSectionName()
373 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection()
376 if (getLexer().isNot(AsmToken::String)) in ParseDirectiveSection()
388 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection()
394 if (!getLexer().is(AsmToken::Identifier)) in ParseDirectiveSection()
401 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSection()
[all …]
DMCAsmParser.cpp34 const AsmToken &MCAsmParser::getTok() const { in getTok()
44 if (getTok().getKind() != AsmToken::EndOfStatement) in parseEOL()
50 bool MCAsmParser::parseToken(AsmToken::TokenKind T, const Twine &Msg) { in parseToken()
51 if (T == AsmToken::EndOfStatement) in parseToken()
60 if (getTok().getKind() != AsmToken::Integer) in parseIntToken()
67 bool MCAsmParser::parseOptionalToken(AsmToken::TokenKind T) { in parseOptionalToken()
99 if (getTok().is(AsmToken::Error)) in Error()
106 if (getTok().is(AsmToken::Error)) in addErrorSuffix()
114 if (parseOptionalToken(AsmToken::EndOfStatement)) in parseMany()
119 if (parseOptionalToken(AsmToken::EndOfStatement)) in parseMany()
[all …]
/external/swiftshader/third_party/LLVM/lib/MC/MCParser/
DAsmLexer.cpp46 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 …]
DAsmParser.cpp150 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 …]
DCOFFAsmParser.cpp137 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 …]
/external/llvm/lib/MC/MCParser/
DAsmLexer.cpp47 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 …]
DAsmParser.cpp52 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 …]
DELFAsmParser.cpp160 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 …]
DCOFFAsmParser.cpp269 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 …]
/external/swiftshader/third_party/LLVM/lib/Target/X86/AsmParser/
DX86AsmLexer.cpp27 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 …]
/external/swiftshader/third_party/LLVM/tools/llvm-mc/
Dllvm-mc.cpp265 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/swiftshader/third_party/LLVM/lib/Target/MBlaze/AsmParser/
DMBlazeAsmLexer.cpp34 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-7.0/llvm/lib/Target/BPF/AsmParser/
DBPFAsmParser.cpp46 bool ParseDirective(AsmToken DirectiveID) override;
325 const AsmToken &Tok = getParser().getTok(); in ParseRegister()
343 if (getLexer().getKind() == AsmToken::Identifier) { in parseOperandAsOperator()
356 case AsmToken::Minus: in parseOperandAsOperator()
357 case AsmToken::Plus: { in parseOperandAsOperator()
358 if (getLexer().peekTok().is(AsmToken::Integer)) in parseOperandAsOperator()
363 case AsmToken::Equal: in parseOperandAsOperator()
364 case AsmToken::Greater: in parseOperandAsOperator()
365 case AsmToken::Less: in parseOperandAsOperator()
366 case AsmToken::Pipe: in parseOperandAsOperator()
[all …]
/external/llvm/tools/llvm-mc/
Dllvm-mc.cpp256 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-7.0/llvm/lib/Target/AVR/AsmParser/
DAVRAsmParser.cpp59 bool ParseDirective(AsmToken DirectiveID) override;
346 if (Parser.getTok().is(AsmToken::Identifier)) { in parseRegister()
348 if (Parser.getLexer().peekTok().is(AsmToken::Colon)) { in parseRegister()
352 if (Parser.getTok().is(AsmToken::Identifier)) { in parseRegister()
369 AsmToken const &T = Parser.getTok(); in tryParseRegisterOperand()
382 if ((Parser.getTok().getKind() == AsmToken::Plus || in tryParseExpression()
383 Parser.getTok().getKind() == AsmToken::Minus) && in tryParseExpression()
384 Parser.getLexer().peekTok().getKind() == AsmToken::Identifier) { in tryParseExpression()
407 AsmToken tokens[2]; in tryParseRelocExpression()
411 if ((tokens[0].getKind() == AsmToken::Identifier && in tryParseRelocExpression()
[all …]
/external/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h25 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 …]
DAsmLexer.h40 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-7.0/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h42 SmallVector<AsmToken, 1> CurTok;
58 virtual AsmToken LexToken() = 0;
82 const AsmToken &Lex() { in Lex()
85 IsAtStartOfStatement = CurTok.front().getKind() == AsmToken::EndOfStatement; in Lex()
90 AsmToken T = LexToken(); in Lex()
96 void UnLex(AsmToken const &Token) { in UnLex()
109 const AsmToken &getTok() const { in getTok()
114 const AsmToken peekTok(bool ShouldSkipSpace = true) {
115 AsmToken Tok;
117 MutableArrayRef<AsmToken> Buf(Tok);
[all …]
DAsmLexer.h38 AsmToken LexToken() override;
51 size_t peekTokens(MutableArrayRef<AsmToken> Buf,
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();
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/ARM/AsmParser/
DARMAsmLexer.cpp35 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/swiftshader/third_party/LLVM/include/llvm/MC/MCParser/
DAsmLexer.h42 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();

1234