Lines Matching refs:Identifier
247 /// \brief Parse an identifier or string (as a quoted identifier)
248 /// and set \p Res to the identifier contents.
891 case AsmToken::Identifier: {
892 StringRef Identifier;
893 if (parseIdentifier(Identifier)) {
919 Split = std::make_pair(Identifier, VName);
922 Split = Identifier.split('@');
933 Split = std::make_pair(Identifier, VName);
936 EndLoc = SMLoc::getFromPointer(Identifier.end());
939 StringRef SymbolName = Identifier;
981 if (Lexer.getKind() == AsmToken::Identifier) {
1000 Lex(); // Eat identifier.
1020 Lex(); // Eat identifier.
1133 if (Lexer.isNot(AsmToken::Identifier))
1394 /// ::= Label* Identifier OperandList* EndOfStatement
1418 // Statements always start with an identifier.
1434 Lex(); // Consume the integer token to be used as an identifier token.
1441 identifier in this context.
1445 // Treat '{' as a valid identifier in this context.
1450 // Treat '}' as a valid identifier in this context.
1519 // identifier ':' -> Label.
1587 // identifier '=' ... -> assignment statement
2291 if (Lexer.is(AsmToken::Identifier) && Lexer.peekTok().is(AsmToken::Equal)) {
2293 Error(IDLoc, "invalid argument identifier for formal argument");
2299 TokError("expected '=' after formal parameter identifier");
2461 /// ::= identifier
2468 // and return the combined identifier.
2472 // Consume the prefix character, and check for a following identifier.
2474 if (Lexer.isNot(AsmToken::Identifier))
2477 // We have a '$' or '@' followed by an identifier, make sure they are adjacent.
2481 // Construct the joined identifier and consume the token.
2488 if (Lexer.isNot(AsmToken::Identifier) && Lexer.isNot(AsmToken::String))
2493 Lex(); // Consume the identifier token.
2499 /// ::= .equ identifier ',' expression
2500 /// ::= .equiv identifier ',' expression
2501 /// ::= .set identifier ',' expression
2506 return TokError("expected identifier after '" + Twine(IDVal) + "'");
2607 /// ::= .reloc expression , identifier [ , expression ]
2628 if (Lexer.isNot(AsmToken::Identifier))
2759 Lexer.isNot(AsmToken::Identifier))
2765 if (getLexer().is(AsmToken::Identifier)) {
3311 return Error(Loc, "expected identifier in directive");
3320 return Error(Loc, "expected identifier in directive");
3354 return Error(Loc, "expected identifier in directive");
3360 return Error(Loc, "expected identifier in directive");
3364 if (getLexer().is(AsmToken::Identifier)) {
3367 "unexpected identifier in '.cv_inline_linetable' directive");
3392 while (getLexer().is(AsmToken::Identifier)) {
3396 return Error(Loc, "expected identifier in directive");
3402 return Error(Loc, "expected identifier in directive");
3443 return TokError("Expected an identifier");
3454 return TokError("Expected an identifier");
3660 return TokError("expected identifier in directive");
3771 return TokError("expected identifier in '.macro' directive");
3786 return TokError("expected identifier in '.macro' directive");
3846 if (getLexer().is(AsmToken::Identifier)) {
4030 return TokError("expected identifier in '.purgem' directive");
4168 /// ::= { ".globl", ".weak", ... } [ identifier ( , identifier )* ]
4176 return Error(Loc, "expected identifier in directive");
4201 /// ::= ( .comm | .lcomm ) identifier , size_expression [ , align_expression ]
4208 return TokError("expected identifier in directive");
4210 // Handle the identifier as the key symbol.
4504 return TokError("expected identifier after '.ifdef'");
4801 if (Lexer.is(AsmToken::Identifier) &&
4809 if (Lexer.is(AsmToken::Identifier) && getTok().getIdentifier() == ".endr") {
4902 return TokError("expected identifier in '.irp' directive");
4944 return TokError("expected identifier in '.irpc' directive");
4974 Arg.emplace_back(AsmToken::Identifier, Values.slice(I, I + 1));
5335 // FIXME: Diagnose assignment to protected identifier (e.g., register name).