Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DMCAsmLexer.cpp18 CurTok.emplace_back(AsmToken::Space, StringRef()); in MCAsmLexer()
27 SMLoc AsmToken::getLoc() const { in getLoc()
31 SMLoc AsmToken::getEndLoc() const { in getEndLoc()
35 SMRange AsmToken::getLocRange() const { in getLocRange()
39 void AsmToken::dump(raw_ostream &OS) const { in dump()
41 case AsmToken::Error: in dump()
44 case AsmToken::Identifier: in dump()
47 case AsmToken::Integer: in dump()
50 case AsmToken::Real: in dump()
53 case AsmToken::String: in dump()
[all …]
H A DAsmLexer.cpp96 return AsmToken(AsmToken::Real, in LexFloatLiteral()
213 return AsmToken(AsmToken::Comment, in LexSlash()
244 return AsmToken(AsmToken::EndOfStatement, in LexLineComment()
248 return AsmToken(AsmToken::EndOfStatement, in LexLineComment()
298 return AsmToken(AsmToken::Integer, Ref, Value); in intToken()
299 return AsmToken(AsmToken::BigNum, Ref, Value); in intToken()
495 return AsmToken(AsmToken::Integer, Result, 0); in LexDigit()
621 return AsmToken(AsmToken::Integer, Res, Value); in LexSingleQuote()
748 return AsmToken(AsmToken::HashDirective, s); in LexToken()
762 return AsmToken(AsmToken::EndOfStatement, in LexToken()
[all …]
H A DMasmParser.cpp580 AsmToken::TokenKind ArgumentEndTok = AsmToken::EndOfStatement);
846 const AsmToken::TokenKind EndToken = AsmToken::EndOfStatement);
1176 Lexer.UnLex(AsmToken(AsmToken::Error, MacroId)); in expandMacros()
1273 AsmToken Tok; in peekTok()
2286 Lexer.UnLex(AsmToken(AsmToken::EndOfStatement, CommentStr)); in parseStatement()
3084 if (Lexer.is(AsmToken::Eof) || Lexer.is(AsmToken::Equal)) in parseMacroArgument()
3211 AsmToken newToken(AsmToken::Integer, in parseMacroArguments()
3391 if (Lexer.is(AsmToken::Dollar) || Lexer.is(AsmToken::At)) { in parseIdentifier()
3666 getLexer().UnLex(AsmToken(AsmToken::Identifier, ID)); in parseTextItem()
6914 A.push_back(AsmToken(AsmToken::String, B.getValue())); in expandStatement()
[all …]
H A DWasmAsmParser.cpp74 bool isNext(AsmToken::TokenKind Kind) { in isNext()
117 if (Lexer->isNot(AsmToken::Comma)) in parseGroup()
120 if (Lexer->is(AsmToken::Integer)) { in parseGroup()
126 if (Lexer->is(AsmToken::Comma)) { in parseGroup()
142 if (expect(AsmToken::Comma, ",")) in parseSectionDirective()
145 if (Lexer->isNot(AsmToken::String)) in parseSectionDirective()
172 if (expect(AsmToken::Comma, ",") || expect(AsmToken::At, "@")) in parseSectionDirective()
208 if (expect(AsmToken::Comma, ",")) in parseDirectiveSize()
224 if (!Lexer->is(AsmToken::Identifier)) in parseDirectiveType()
231 if (!(isNext(AsmToken::Comma) && isNext(AsmToken::At) && in parseDirectiveType()
[all …]
H A DAsmParser.cpp1097 Lexer.isNot(AsmToken::Comma) && Lexer.isNot(AsmToken::Eof)) in parseStringToComma()
1157 case AsmToken::At: in parsePrimaryExpr()
1587 case AsmToken::Amp: in getDarwinBinOpPrecedence()
1931 Lexer.UnLex(AsmToken(AsmToken::EndOfStatement, CommentStr)); in parseStatement()
2385 if (Lexer.isNot(AsmToken::LCurly) && Lexer.isNot(AsmToken::RCurly)) in parseCurlyBlockScope()
2692 if (Lexer.is(AsmToken::Eof) || Lexer.is(AsmToken::Equal)) in parseMacroArgument()
2794 AsmToken newToken(AsmToken::Integer, in parseMacroArguments()
2804 AsmToken newToken(AsmToken::String, in parseMacroArguments()
2958 if (Lexer.is(AsmToken::Dollar) || Lexer.is(AsmToken::At)) { in parseIdentifier()
2963 AsmToken Buf[1]; in parseIdentifier()
[all …]
H A DELFAsmParser.cpp402 if (L.isNot(AsmToken::Comma)) in maybeParseSectionType()
405 if (L.isNot(AsmToken::At) && L.isNot(AsmToken::Percent) && in maybeParseSectionType()
406 L.isNot(AsmToken::String)) { in maybeParseSectionType()
412 if (!L.is(AsmToken::String)) in maybeParseSectionType()
414 if (L.is(AsmToken::Integer)) { in maybeParseSectionType()
435 if (L.isNot(AsmToken::Comma)) in parseGroup()
438 if (L.is(AsmToken::Integer)) { in parseGroup()
444 if (L.is(AsmToken::Comma)) { in parseGroup()
460 if (L.isNot(AsmToken::Comma)) in parseLinkedToSym()
481 if (L.isNot(AsmToken::Comma)) in maybeParseUniqueID()
[all …]
H A DMCAsmParser.cpp38 const AsmToken &MCAsmParser::getTok() const { in getTok()
48 if (getTok().getKind() != AsmToken::EndOfStatement) in parseEOL()
62 if (T == AsmToken::EndOfStatement) in parseToken()
71 if (getTok().getKind() != AsmToken::Integer) in parseIntToken()
110 if (getTok().is(AsmToken::Error)) in Error()
117 if (getTok().is(AsmToken::Error)) in addErrorSuffix()
125 if (parseOptionalToken(AsmToken::EndOfStatement)) in parseMany()
132 if (hasComma && parseToken(AsmToken::Comma)) in parseMany()
149 const AsmToken &Tok = getTok(); in parseGNUAttribute()
150 if (Tok.isNot(AsmToken::Integer)) in parseGNUAttribute()
[all …]
H A DCOFFAsmParser.cpp332 if (!getLexer().is(AsmToken::Identifier) && !getLexer().is(AsmToken::String)) in ParseSectionName()
365 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection()
368 if (getLexer().isNot(AsmToken::String)) in ParseDirectiveSection()
380 if (getLexer().is(AsmToken::Comma)) { in ParseDirectiveSection()
393 if (getLexer().isNot(AsmToken::Comma)) in ParseDirectiveSection()
467 if (getLexer().is(AsmToken::Plus)) { in ParseDirectiveSecRel32()
497 if (getLexer().is(AsmToken::Plus) || getLexer().is(AsmToken::Minus)) { in ParseDirectiveRVA()
591 if (getLexer().is(AsmToken::Identifier)) in ParseDirectiveLinkOnce()
657 if (getLexer().isNot(AsmToken::Comma)) in ParseSEHDirectiveHandler()
663 if (getLexer().is(AsmToken::Comma)) { in ParseSEHDirectiveHandler()
[all …]
H A DDarwinAsmParser.cpp531 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveDesc()
643 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveLsym()
673 if (!getLexer().is(AsmToken::Comma)) in parseDirectiveSection()
837 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveTBSS()
848 if (getLexer().is(AsmToken::Comma)) { in parseDirectiveTBSS()
889 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveZerofill()
910 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveZerofill()
922 if (getLexer().isNot(AsmToken::Comma)) in parseDirectiveZerofill()
933 if (getLexer().is(AsmToken::Comma)) { in parseDirectiveZerofill()
1023 if (getLexer().isNot(AsmToken::Comma)) in parseMajorMinorVersionComponent()
[all …]
H A DCOFFMasmParser.cpp62 while (!getLexer().is(AsmToken::EndOfStatement)) { in IgnoreDirective()
244 if (getLexer().isNot(AsmToken::EndOfStatement)) in ParseSectionSwitch()
256 if (!getLexer().is(AsmToken::Identifier)) in ParseDirectiveSegment()
285 if (!getLexer().is(AsmToken::Identifier)) in ParseDirectiveSegmentEnd()
322 if (getLexer().is(AsmToken::Identifier)) { in ParseDirectiveProc()
342 if (getLexer().is(AsmToken::Identifier) && in ParseDirectiveProc()
376 if (getTok().isNot(AsmToken::Less) || in ParseDirectiveAlias()
379 if (getParser().parseToken(AsmToken::Equal)) in ParseDirectiveAlias()
381 if (getTok().isNot(AsmToken::Less) || in ParseDirectiveAlias()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp366 case AsmToken::Minus: in parseOperandAsOperator()
373 case AsmToken::Equal: in parseOperandAsOperator()
375 case AsmToken::Less: in parseOperandAsOperator()
376 case AsmToken::Pipe: in parseOperandAsOperator()
377 case AsmToken::Star: in parseOperandAsOperator()
380 case AsmToken::LBrac: in parseOperandAsOperator()
381 case AsmToken::RBrac: in parseOperandAsOperator()
382 case AsmToken::Slash: in parseOperandAsOperator()
383 case AsmToken::Amp: in parseOperandAsOperator()
440 case AsmToken::Minus: in parseImmediate()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DAsmLexer.h37 AsmToken LexToken() override;
50 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 …]
H A DMCAsmLexer.h41 SmallVector<AsmToken, 1> CurTok;
65 virtual AsmToken LexToken() = 0;
81 const AsmToken &Lex() { in Lex()
89 AsmToken T = LexToken(); in Lex()
95 void UnLex(AsmToken const &Token) { in UnLex()
108 const AsmToken &getTok() const { in getTok()
113 const AsmToken peekTok(bool ShouldSkipSpace = true) {
114 AsmToken Tok;
116 MutableArrayRef<AsmToken> Buf(Tok);
126 virtual size_t peekTokens(MutableArrayRef<AsmToken> Buf,
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp433 AsmToken tokens[2]; in tryParseRelocExpression()
452 if (CurTok == AsmToken::Minus || CurTok == AsmToken::Plus) in tryParseRelocExpression()
524 case AsmToken::LParen: in parseOperand()
525 case AsmToken::Integer: in parseOperand()
526 case AsmToken::Dot: in parseOperand()
528 case AsmToken::Plus: in parseOperand()
529 case AsmToken::Minus: { in parseOperand()
533 case AsmToken::Integer: in parseOperand()
534 case AsmToken::BigNum: in parseOperand()
536 case AsmToken::Real: in parseOperand()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp379 if (!isNext(AsmToken::Comma)) in parseRegTypeList()
483 if (!Tok.is(AsmToken::Integer)) in parseLimits()
490 if (isNext(AsmToken::Comma)) { in parseLimits()
493 if (!Tok.is(AsmToken::Integer)) in parseLimits()
662 case AsmToken::Identifier: { in ParseInstruction()
696 case AsmToken::Minus: in ParseInstruction()
711 case AsmToken::Integer: in ParseInstruction()
716 case AsmToken::Real: { in ParseInstruction()
721 case AsmToken::LCurly: { in ParseInstruction()
732 expect(AsmToken::RCurly, "}"); in ParseInstruction()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp1847 AsmToken::TokenKind PrevTK = AsmToken::Error; in ParseIntelExpression()
1868 case AsmToken::Real: in ParseIntelExpression()
1874 case AsmToken::Dot: in ParseIntelExpression()
1910 case AsmToken::At: in ParseIntelExpression()
1923 getLexer().UnLex(AsmToken(AsmToken::Identifier, RHS)); in ParseIntelExpression()
1925 getLexer().UnLex(AsmToken(AsmToken::Dot, Dot)); in ParseIntelExpression()
1927 getLexer().UnLex(AsmToken(AsmToken::Identifier, LHS)); in ParseIntelExpression()
2000 (PrevTK == AsmToken::RBrac || PrevTK == AsmToken::RParen)) { in ParseIntelExpression()
2314 getLexer().UnLex(AsmToken(AsmToken::Dot, TrailingDot)); in ParseIntelDotOperator()
2843 AsmToken Buf[2]; in ParseMemOperand()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp417 case AsmToken::Identifier: { in parseRegister()
433 assert(getLexer().is(AsmToken::LParen)); in parseBaseRegImm()
445 if (getLexer().isNot(AsmToken::Comma)) { in parseBaseRegImm()
472 if (getLexer().isNot(AsmToken::RParen)) { in parseBaseRegImm()
488 case AsmToken::LParen: in parseImmediate()
489 case AsmToken::Minus: in parseImmediate()
490 case AsmToken::Plus: in parseImmediate()
491 case AsmToken::Integer: in parseImmediate()
492 case AsmToken::String: in parseImmediate()
524 if (getLexer().is(AsmToken::LParen)) in parseOperand()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp55 bool ParseDirectiveRefSym(AsmToken DirectiveID);
316 AsmToken const &T = getParser().getTok(); in tryParseRegister()
403 if (getLexer().is(AsmToken::EndOfStatement)) in ParseInstruction()
411 if (getLexer().is(AsmToken::Comma)) { in ParseInstruction()
454 case AsmToken::Identifier: { in ParseOperand()
464 case AsmToken::Integer: in ParseOperand()
465 case AsmToken::Plus: in ParseOperand()
466 case AsmToken::Minus: { in ParseOperand()
490 case AsmToken::Amp: { in ParseOperand()
503 case AsmToken::At: { in ParseOperand()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/
H A DVEAsmParser.cpp1179 case AsmToken::Minus: in parseMEMOperand()
1181 case AsmToken::Dot: in parseMEMOperand()
1221 case AsmToken::Minus: in parseMEMOperand()
1223 case AsmToken::Dot: in parseMEMOperand()
1228 case AsmToken::Comma: in parseMEMOperand()
1245 case AsmToken::Comma: in parseMEMOperand()
1286 case AsmToken::Minus: in parseMEMAsOperand()
1288 case AsmToken::Dot: in parseMEMAsOperand()
1317 case AsmToken::Comma: in parseMEMAsOperand()
1336 case AsmToken::Comma: in parseMEMAsOperand()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp992 bool Type = Lexer.is(AsmToken::Identifier) || Lexer.is(AsmToken::Dot) || in tryParseRegister()
993 Lexer.is(AsmToken::Integer) || Lexer.is(AsmToken::Real) || in tryParseRegister()
996 Lexer.is(AsmToken::Colon) || Lookahead.back().is(AsmToken::Colon); in tryParseRegister()
1016 Lexer.UnLex(AsmToken(AsmToken::Identifier, DotString)); in tryParseRegister()
1068 AsmToken(AsmToken::TokenKind::Comma, Comma)); in parseExpression()
1111 case AsmToken::Eof: in parseInstruction()
1116 case AsmToken::LCurly: { in parseInstruction()
1124 case AsmToken::RCurly: { in parseInstruction()
1132 case AsmToken::Comma: { in parseInstruction()
1140 case AsmToken::LessEqual: in parseInstruction()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp1227 AsmToken LParen; in parseRegister()
1232 AsmToken Buf[2]; in parseRegister()
1281 case AsmToken::Minus: in parseCSRSystemRegister()
1282 case AsmToken::Plus: in parseCSRSystemRegister()
1284 case AsmToken::Tilde: in parseCSRSystemRegister()
1356 case AsmToken::Dot: in parseImmediate()
1357 case AsmToken::Minus: in parseImmediate()
1358 case AsmToken::Plus: in parseImmediate()
1360 case AsmToken::Tilde: in parseImmediate()
1451 case AsmToken::Plus: in parseBareSymbol()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp736 while (getLexer().is(AsmToken::Comma) || getLexer().is(AsmToken::Plus)) { in ParseInstruction()
800 if (Tok.is(AsmToken::Plus) || Tok.is(AsmToken::Minus)) { in parseMEMOperand()
905 case AsmToken::LParen: in parseCallTarget()
906 case AsmToken::Integer: in parseCallTarget()
908 case AsmToken::Dot: in parseCallTarget()
1004 case AsmToken::Percent: in parseSparcAsmOperand()
1055 case AsmToken::Plus: in parseSparcAsmOperand()
1056 case AsmToken::Minus: in parseSparcAsmOperand()
1057 case AsmToken::Integer: in parseSparcAsmOperand()
1058 case AsmToken::LParen: in parseSparcAsmOperand()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/
H A DAMDGPUAsmParser.cpp1254 bool isRegister(const AsmToken &Token, const AsmToken &NextToken) const;
2748 if (!IsReal && Tok.is(AsmToken::Minus) && NextTok.is(AsmToken::Real)) { in parseImm()
2836 if (Token.is(AsmToken::Identifier) && NextToken.is(AsmToken::LParen)) { in isNamedOperandModifier()
2845 return Token.is(AsmToken::Identifier) && NextToken.is(AsmToken::Colon); in isOpcodeModifierWithVal()
2932 if (isToken(AsmToken::Minus) && peekToken().is(AsmToken::Minus)) { in parseRegOrImmWithFPInputMods()
4435 if (!isToken(AsmToken::Integer) && !isToken(AsmToken::Identifier)) { in ParseAsAbsoluteExpression()
6049 if (trySkipToken(AsmToken::Amp) || trySkipToken(AsmToken::Comma)) { in parseCnt()
6527 AsmToken
6532 AsmToken
6542 Tokens[Idx] = AsmToken(AsmToken::Error, ""); in peekTokens()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp696 Optional<AsmToken> PercentTok; in parseRegister()
807 case AsmToken::Identifier: in parseImmediate()
809 case AsmToken::Plus: in parseImmediate()
810 case AsmToken::Minus: in parseImmediate()
811 case AsmToken::Integer: in parseImmediate()
812 case AsmToken::Dot: in parseImmediate()
848 if (Lexer.is(AsmToken::Minus)) in parsePrePost()
850 else if (Lexer.is(AsmToken::Plus)) in parsePrePost()
919 if (Lexer.isNot(AsmToken::LBrac)) { in parseMemoryOperand()
973 if (Lexer.is(AsmToken::RBrac)) { in parseMemoryOperand()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/M68k/AsmParser/
H A DM68kAsmParser.cpp534 AsmToken PercentToken; in parseRegister()
538 if (getTok().is(AsmToken::Percent)) { in parseRegister()
585 case AsmToken::Identifier: in isExpr()
586 case AsmToken::Integer: in isExpr()
588 case AsmToken::Minus: in isExpr()
597 if (getLexer().isNot(AsmToken::Hash)) { in parseImm()
634 if (getLexer().is(AsmToken::Minus)) { in parseMemOp()
644 if (getLexer().isNot(AsmToken::LParen)) { in parseMemOp()
667 if (getLexer().isNot(AsmToken::Comma)) { in parseMemOp()
689 if (Parser.getTok().is(AsmToken::Comma)) { in parseMemOp()
[all …]

12