Lines Matching refs:Parser

115   MCAsmParser &Parser;  member in __anon2f82d7160111::UnwindContext
124 UnwindContext(MCAsmParser &P) : Parser(P), FPReg(ARM::SP) {} in UnwindContext()
145 Parser.Note(Loc, ".fnstart was specified here"); in emitFnStartLocNotes()
150 Parser.Note(Loc, ".cantunwind was specified here"); in emitCantUnwindLocNotes()
155 Parser.Note(Loc, ".handlerdata was specified here"); in emitHandlerDataLocNotes()
165 Parser.Note(*PI++, ".personality was specified here"); in emitPersonalityLocNotes()
167 Parser.Note(*PII++, ".personalityindex was specified here"); in emitPersonalityLocNotes()
683 ARMAsmParser(const MCSubtargetInfo &STI, MCAsmParser &Parser, in ARMAsmParser() argument
685 : MCTargetAsmParser(Options, STI, MII), UC(Parser), MS(STI) { in ARMAsmParser()
686 MCAsmParserExtension::Initialize(Parser); in ARMAsmParser()
4073 MCAsmParser &Parser = getParser(); in tryParseRegister() local
4074 const AsmToken &Tok = Parser.getTok(); in tryParseRegister()
4111 Parser.Lex(); // Eat identifier token. in tryParseRegister()
4119 Parser.Lex(); // Eat identifier token. in tryParseRegister()
4130 MCAsmParser &Parser = getParser(); in tryParseShiftRegister() local
4131 SMLoc S = Parser.getTok().getLoc(); in tryParseShiftRegister()
4132 const AsmToken &Tok = Parser.getTok(); in tryParseShiftRegister()
4149 Parser.Lex(); // Eat the operator. in tryParseShiftRegister()
4170 if (Parser.getTok().is(AsmToken::Hash) || in tryParseShiftRegister()
4171 Parser.getTok().is(AsmToken::Dollar)) { in tryParseShiftRegister()
4172 Parser.Lex(); // Eat hash. in tryParseShiftRegister()
4173 SMLoc ImmLoc = Parser.getTok().getLoc(); in tryParseShiftRegister()
4199 } else if (Parser.getTok().is(AsmToken::Identifier)) { in tryParseShiftRegister()
4200 SMLoc L = Parser.getTok().getLoc(); in tryParseShiftRegister()
4201 EndLoc = Parser.getTok().getEndLoc(); in tryParseShiftRegister()
4208 Error(Parser.getTok().getLoc(), in tryParseShiftRegister()
4232 MCAsmParser &Parser = getParser(); in tryParseRegisterWithWriteBack() local
4233 SMLoc RegStartLoc = Parser.getTok().getLoc(); in tryParseRegisterWithWriteBack()
4234 SMLoc RegEndLoc = Parser.getTok().getEndLoc(); in tryParseRegisterWithWriteBack()
4241 const AsmToken &ExclaimTok = Parser.getTok(); in tryParseRegisterWithWriteBack()
4245 Parser.Lex(); // Eat exclaim token in tryParseRegisterWithWriteBack()
4252 if (Parser.getTok().is(AsmToken::LBrac)) { in tryParseRegisterWithWriteBack()
4253 SMLoc SIdx = Parser.getTok().getLoc(); in tryParseRegisterWithWriteBack()
4254 Parser.Lex(); // Eat left bracket token. in tryParseRegisterWithWriteBack()
4263 if (Parser.getTok().isNot(AsmToken::RBrac)) in tryParseRegisterWithWriteBack()
4264 return Error(Parser.getTok().getLoc(), "']' expected"); in tryParseRegisterWithWriteBack()
4266 SMLoc E = Parser.getTok().getEndLoc(); in tryParseRegisterWithWriteBack()
4267 Parser.Lex(); // Eat right bracket token. in tryParseRegisterWithWriteBack()
4328 MCAsmParser &Parser = getParser(); in parseITCondCode() local
4329 SMLoc S = Parser.getTok().getLoc(); in parseITCondCode()
4330 const AsmToken &Tok = Parser.getTok(); in parseITCondCode()
4336 Parser.Lex(); // Eat the token. in parseITCondCode()
4347 MCAsmParser &Parser = getParser(); in parseCoprocNumOperand() local
4348 SMLoc S = Parser.getTok().getLoc(); in parseCoprocNumOperand()
4349 const AsmToken &Tok = Parser.getTok(); in parseCoprocNumOperand()
4359 Parser.Lex(); // Eat identifier token. in parseCoprocNumOperand()
4368 MCAsmParser &Parser = getParser(); in parseCoprocRegOperand() local
4369 SMLoc S = Parser.getTok().getLoc(); in parseCoprocRegOperand()
4370 const AsmToken &Tok = Parser.getTok(); in parseCoprocRegOperand()
4378 Parser.Lex(); // Eat identifier token. in parseCoprocRegOperand()
4386 MCAsmParser &Parser = getParser(); in parseCoprocOptionOperand() local
4387 SMLoc S = Parser.getTok().getLoc(); in parseCoprocOptionOperand()
4390 if (Parser.getTok().isNot(AsmToken::LCurly)) in parseCoprocOptionOperand()
4392 Parser.Lex(); // Eat the '{' in parseCoprocOptionOperand()
4395 SMLoc Loc = Parser.getTok().getLoc(); in parseCoprocOptionOperand()
4405 if (Parser.getTok().isNot(AsmToken::RCurly)) in parseCoprocOptionOperand()
4407 SMLoc E = Parser.getTok().getEndLoc(); in parseCoprocOptionOperand()
4408 Parser.Lex(); // Eat the '}' in parseCoprocOptionOperand()
4457 MCAsmParser &Parser = getParser(); in parseRegisterList() local
4458 if (Parser.getTok().isNot(AsmToken::LCurly)) in parseRegisterList()
4460 SMLoc S = Parser.getTok().getLoc(); in parseRegisterList()
4461 Parser.Lex(); // Eat '{' token. in parseRegisterList()
4462 SMLoc RegLoc = Parser.getTok().getLoc(); in parseRegisterList()
4503 while (Parser.getTok().is(AsmToken::Comma) || in parseRegisterList()
4504 Parser.getTok().is(AsmToken::Minus)) { in parseRegisterList()
4505 if (Parser.getTok().is(AsmToken::Minus)) { in parseRegisterList()
4508 Parser.Lex(); // Eat the minus. in parseRegisterList()
4509 SMLoc AfterMinusLoc = Parser.getTok().getLoc(); in parseRegisterList()
4541 Parser.Lex(); // Eat the comma. in parseRegisterList()
4542 RegLoc = Parser.getTok().getLoc(); in parseRegisterList()
4544 const AsmToken RegTok = Parser.getTok(); in parseRegisterList()
4607 if (Parser.getTok().isNot(AsmToken::RCurly)) in parseRegisterList()
4608 return Error(Parser.getTok().getLoc(), "'}' expected"); in parseRegisterList()
4609 SMLoc E = Parser.getTok().getEndLoc(); in parseRegisterList()
4610 Parser.Lex(); // Eat '}' token. in parseRegisterList()
4616 if (Parser.getTok().is(AsmToken::Caret)) { in parseRegisterList()
4617 Operands.push_back(ARMOperand::CreateToken("^",Parser.getTok().getLoc())); in parseRegisterList()
4618 Parser.Lex(); // Eat '^' token. in parseRegisterList()
4627 MCAsmParser &Parser = getParser(); in parseVectorLane() local
4629 if (Parser.getTok().is(AsmToken::LBrac)) { in parseVectorLane()
4630 Parser.Lex(); // Eat the '['. in parseVectorLane()
4631 if (Parser.getTok().is(AsmToken::RBrac)) { in parseVectorLane()
4634 EndLoc = Parser.getTok().getEndLoc(); in parseVectorLane()
4635 Parser.Lex(); // Eat the ']'. in parseVectorLane()
4641 if (Parser.getTok().is(AsmToken::Hash)) in parseVectorLane()
4642 Parser.Lex(); // Eat '#' or '$'. in parseVectorLane()
4645 SMLoc Loc = Parser.getTok().getLoc(); in parseVectorLane()
4651 if (Parser.getTok().isNot(AsmToken::RBrac)) in parseVectorLane()
4652 return Error(Parser.getTok().getLoc(), "']' expected"); in parseVectorLane()
4653 EndLoc = Parser.getTok().getEndLoc(); in parseVectorLane()
4654 Parser.Lex(); // Eat the ']'. in parseVectorLane()
4659 return Error(Parser.getTok().getLoc(), "lane index out of range"); in parseVectorLane()
4670 MCAsmParser &Parser = getParser(); in parseVectorList() local
4673 SMLoc S = Parser.getTok().getLoc(); in parseVectorList()
4677 if (!hasMVE() && Parser.getTok().is(AsmToken::Identifier)) { in parseVectorList()
4678 SMLoc E = Parser.getTok().getEndLoc(); in parseVectorList()
4730 if (Parser.getTok().isNot(AsmToken::LCurly)) in parseVectorList()
4733 Parser.Lex(); // Eat '{' token. in parseVectorList()
4734 SMLoc RegLoc = Parser.getTok().getLoc(); in parseVectorList()
4744 return Error(Parser.getTok().getLoc(), in parseVectorList()
4760 while (Parser.getTok().is(AsmToken::Comma) || in parseVectorList()
4761 Parser.getTok().is(AsmToken::Minus)) { in parseVectorList()
4762 if (Parser.getTok().is(AsmToken::Minus)) { in parseVectorList()
4766 return Error(Parser.getTok().getLoc(), in parseVectorList()
4768 Parser.Lex(); // Eat the minus. in parseVectorList()
4769 SMLoc AfterMinusLoc = Parser.getTok().getLoc(); in parseVectorList()
4802 Parser.Lex(); // Eat the comma. in parseVectorList()
4803 RegLoc = Parser.getTok().getLoc(); in parseVectorList()
4835 SMLoc LaneLoc = Parser.getTok().getLoc(); in parseVectorList()
4855 SMLoc EndLoc = Parser.getTok().getLoc(); in parseVectorList()
4862 if (Parser.getTok().isNot(AsmToken::RCurly)) in parseVectorList()
4863 return Error(Parser.getTok().getLoc(), "'}' expected"); in parseVectorList()
4864 E = Parser.getTok().getEndLoc(); in parseVectorList()
4865 Parser.Lex(); // Eat '}' token. in parseVectorList()
4895 MCAsmParser &Parser = getParser(); in parseMemBarrierOptOperand() local
4896 SMLoc S = Parser.getTok().getLoc(); in parseMemBarrierOptOperand()
4897 const AsmToken &Tok = Parser.getTok(); in parseMemBarrierOptOperand()
4930 Parser.Lex(); // Eat identifier token. in parseMemBarrierOptOperand()
4934 if (Parser.getTok().isNot(AsmToken::Integer)) in parseMemBarrierOptOperand()
4935 Parser.Lex(); // Eat '#' or '$'. in parseMemBarrierOptOperand()
4936 SMLoc Loc = Parser.getTok().getLoc(); in parseMemBarrierOptOperand()
4960 MCAsmParser &Parser = getParser(); in parseTraceSyncBarrierOptOperand() local
4961 SMLoc S = Parser.getTok().getLoc(); in parseTraceSyncBarrierOptOperand()
4962 const AsmToken &Tok = Parser.getTok(); in parseTraceSyncBarrierOptOperand()
4970 Parser.Lex(); // Eat identifier token. in parseTraceSyncBarrierOptOperand()
4979 MCAsmParser &Parser = getParser(); in parseInstSyncBarrierOptOperand() local
4980 SMLoc S = Parser.getTok().getLoc(); in parseInstSyncBarrierOptOperand()
4981 const AsmToken &Tok = Parser.getTok(); in parseInstSyncBarrierOptOperand()
4992 Parser.Lex(); // Eat identifier token. in parseInstSyncBarrierOptOperand()
4996 if (Parser.getTok().isNot(AsmToken::Integer)) in parseInstSyncBarrierOptOperand()
4997 Parser.Lex(); // Eat '#' or '$'. in parseInstSyncBarrierOptOperand()
4998 SMLoc Loc = Parser.getTok().getLoc(); in parseInstSyncBarrierOptOperand()
5023 MCAsmParser &Parser = getParser(); in parseProcIFlagsOperand() local
5024 SMLoc S = Parser.getTok().getLoc(); in parseProcIFlagsOperand()
5025 const AsmToken &Tok = Parser.getTok(); in parseProcIFlagsOperand()
5050 Parser.Lex(); // Eat identifier token. in parseProcIFlagsOperand()
5057 MCAsmParser &Parser = getParser(); in parseMSRMaskOperand() local
5058 SMLoc S = Parser.getTok().getLoc(); in parseMSRMaskOperand()
5059 const AsmToken &Tok = Parser.getTok(); in parseMSRMaskOperand()
5067 Parser.Lex(); in parseMSRMaskOperand()
5083 Parser.Lex(); // Eat identifier token. in parseMSRMaskOperand()
5146 Parser.Lex(); // Eat identifier token. in parseMSRMaskOperand()
5154 MCAsmParser &Parser = getParser(); in parseBankedRegOperand() local
5155 SMLoc S = Parser.getTok().getLoc(); in parseBankedRegOperand()
5156 const AsmToken &Tok = Parser.getTok(); in parseBankedRegOperand()
5166 Parser.Lex(); // Eat identifier token. in parseBankedRegOperand()
5173 MCAsmParser &Parser = getParser(); in parsePKHImm() local
5174 const AsmToken &Tok = Parser.getTok(); in parsePKHImm()
5176 return Error(Parser.getTok().getLoc(), Op + " operand expected."); in parsePKHImm()
5181 return Error(Parser.getTok().getLoc(), Op + " operand expected."); in parsePKHImm()
5182 Parser.Lex(); // Eat shift type token. in parsePKHImm()
5185 if (Parser.getTok().isNot(AsmToken::Hash) && in parsePKHImm()
5186 Parser.getTok().isNot(AsmToken::Dollar)) in parsePKHImm()
5187 return Error(Parser.getTok().getLoc(), "'#' expected"); in parsePKHImm()
5188 Parser.Lex(); // Eat hash token. in parsePKHImm()
5191 SMLoc Loc = Parser.getTok().getLoc(); in parsePKHImm()
5208 MCAsmParser &Parser = getParser(); in parseSetEndImm() local
5209 const AsmToken &Tok = Parser.getTok(); in parseSetEndImm()
5217 Parser.Lex(); // Eat the token. in parseSetEndImm()
5233 MCAsmParser &Parser = getParser(); in parseShifterImm() local
5234 const AsmToken &Tok = Parser.getTok(); in parseShifterImm()
5246 Parser.Lex(); // Eat the operator. in parseShifterImm()
5249 if (Parser.getTok().isNot(AsmToken::Hash) && in parseShifterImm()
5250 Parser.getTok().isNot(AsmToken::Dollar)) in parseShifterImm()
5251 return Error(Parser.getTok().getLoc(), "'#' expected"); in parseShifterImm()
5252 Parser.Lex(); // Eat hash token. in parseShifterImm()
5253 SMLoc ExLoc = Parser.getTok().getLoc(); in parseShifterImm()
5287 MCAsmParser &Parser = getParser(); in parseRotImm() local
5288 const AsmToken &Tok = Parser.getTok(); in parseRotImm()
5295 Parser.Lex(); // Eat the operator. in parseRotImm()
5298 if (Parser.getTok().isNot(AsmToken::Hash) && in parseRotImm()
5299 Parser.getTok().isNot(AsmToken::Dollar)) in parseRotImm()
5300 return Error(Parser.getTok().getLoc(), "'#' expected"); in parseRotImm()
5301 Parser.Lex(); // Eat hash token. in parseRotImm()
5302 SMLoc ExLoc = Parser.getTok().getLoc(); in parseRotImm()
5325 MCAsmParser &Parser = getParser(); in parseModImm() local
5329 SMLoc S = Parser.getTok().getLoc(); in parseModImm()
5340 if (Parser.getTok().is(AsmToken::Identifier) || in parseModImm()
5341 Parser.getTok().is(AsmToken::Colon)) in parseModImm()
5345 if (Parser.getTok().is(AsmToken::Hash) || in parseModImm()
5346 Parser.getTok().is(AsmToken::Dollar)) { in parseModImm()
5352 Parser.Lex(); in parseModImm()
5356 Sx1 = Parser.getTok().getLoc(); in parseModImm()
5367 if (Enc != -1 && Parser.getTok().is(AsmToken::EndOfStatement)) { in parseModImm()
5381 if (Parser.getTok().is(AsmToken::EndOfStatement)) { in parseModImm()
5393 if (Parser.getTok().isNot(AsmToken::Comma)) in parseModImm()
5401 Parser.Lex(); in parseModImm()
5405 Sx2 = Parser.getTok().getLoc(); in parseModImm()
5408 if (Parser.getTok().is(AsmToken::Hash) || in parseModImm()
5409 Parser.getTok().is(AsmToken::Dollar)) in parseModImm()
5410 Parser.Lex(); in parseModImm()
5433 MCAsmParser &Parser = getParser(); in parseBitfield() local
5434 SMLoc S = Parser.getTok().getLoc(); in parseBitfield()
5436 if (Parser.getTok().isNot(AsmToken::Hash) && in parseBitfield()
5437 Parser.getTok().isNot(AsmToken::Dollar)) in parseBitfield()
5438 return Error(Parser.getTok().getLoc(), "'#' expected"); in parseBitfield()
5439 Parser.Lex(); // Eat hash token. in parseBitfield()
5442 SMLoc E = Parser.getTok().getLoc(); in parseBitfield()
5453 E = Parser.getTok().getLoc(); in parseBitfield()
5456 if (Parser.getTok().isNot(AsmToken::Comma)) in parseBitfield()
5457 return Error(Parser.getTok().getLoc(), "too few operands"); in parseBitfield()
5458 Parser.Lex(); // Eat hash token. in parseBitfield()
5459 if (Parser.getTok().isNot(AsmToken::Hash) && in parseBitfield()
5460 Parser.getTok().isNot(AsmToken::Dollar)) in parseBitfield()
5461 return Error(Parser.getTok().getLoc(), "'#' expected"); in parseBitfield()
5462 Parser.Lex(); // Eat hash token. in parseBitfield()
5491 MCAsmParser &Parser = getParser(); in parsePostIdxReg() local
5492 AsmToken Tok = Parser.getTok(); in parsePostIdxReg()
5497 Parser.Lex(); // Eat the '+' token. in parsePostIdxReg()
5500 Parser.Lex(); // Eat the '-' token. in parsePostIdxReg()
5505 SMLoc E = Parser.getTok().getEndLoc(); in parsePostIdxReg()
5510 return Error(Parser.getTok().getLoc(), "register expected"); in parsePostIdxReg()
5515 if (Parser.getTok().is(AsmToken::Comma)) { in parsePostIdxReg()
5516 Parser.Lex(); // Eat the ','. in parsePostIdxReg()
5521 E = Parser.getTok().getLoc(); in parsePostIdxReg()
5542 MCAsmParser &Parser = getParser(); in parseAM3Offset() local
5543 AsmToken Tok = Parser.getTok(); in parseAM3Offset()
5547 if (Parser.getTok().is(AsmToken::Hash) || in parseAM3Offset()
5548 Parser.getTok().is(AsmToken::Dollar)) { in parseAM3Offset()
5549 Parser.Lex(); // Eat '#' or '$'. in parseAM3Offset()
5552 bool isNegative = Parser.getTok().is(AsmToken::Minus); in parseAM3Offset()
5575 Parser.Lex(); // Eat the '+' token. in parseAM3Offset()
5578 Parser.Lex(); // Eat the '-' token. in parseAM3Offset()
5583 Tok = Parser.getTok(); in parseAM3Offset()
5692 MCAsmParser &Parser = getParser(); in parseMemory() local
5694 if (Parser.getTok().isNot(AsmToken::LBrac)) in parseMemory()
5696 S = Parser.getTok().getLoc(); in parseMemory()
5697 Parser.Lex(); // Eat left bracket token. in parseMemory()
5699 const AsmToken &BaseRegTok = Parser.getTok(); in parseMemory()
5705 const AsmToken &Tok = Parser.getTok(); in parseMemory()
5712 Parser.Lex(); // Eat right bracket token. in parseMemory()
5720 if (Parser.getTok().is(AsmToken::Exclaim)) { in parseMemory()
5721 Operands.push_back(ARMOperand::CreateToken("!",Parser.getTok().getLoc())); in parseMemory()
5722 Parser.Lex(); // Eat the '!'. in parseMemory()
5731 Parser.Lex(); // Eat the comma. in parseMemory()
5735 if (Parser.getTok().is(AsmToken::Colon)) { in parseMemory()
5736 Parser.Lex(); // Eat the ':'. in parseMemory()
5737 E = Parser.getTok().getLoc(); in parseMemory()
5764 if (Parser.getTok().isNot(AsmToken::RBrac)) in parseMemory()
5765 return Error(Parser.getTok().getLoc(), "']' expected"); in parseMemory()
5766 E = Parser.getTok().getEndLoc(); in parseMemory()
5767 Parser.Lex(); // Eat right bracket token. in parseMemory()
5777 if (Parser.getTok().is(AsmToken::Exclaim)) { in parseMemory()
5778 Operands.push_back(ARMOperand::CreateToken("!",Parser.getTok().getLoc())); in parseMemory()
5779 Parser.Lex(); // Eat the '!'. in parseMemory()
5788 if (Parser.getTok().is(AsmToken::Hash) || in parseMemory()
5789 Parser.getTok().is(AsmToken::Dollar) || in parseMemory()
5790 Parser.getTok().is(AsmToken::LParen) || in parseMemory()
5791 Parser.getTok().is(AsmToken::Integer)) { in parseMemory()
5792 if (Parser.getTok().is(AsmToken::Hash) || in parseMemory()
5793 Parser.getTok().is(AsmToken::Dollar)) in parseMemory()
5794 Parser.Lex(); // Eat '#' or '$' in parseMemory()
5795 E = Parser.getTok().getLoc(); in parseMemory()
5818 if (Parser.getTok().isNot(AsmToken::RBrac)) in parseMemory()
5819 return Error(Parser.getTok().getLoc(), "']' expected"); in parseMemory()
5820 E = Parser.getTok().getEndLoc(); in parseMemory()
5821 Parser.Lex(); // Eat right bracket token. in parseMemory()
5825 if (Parser.getTok().is(AsmToken::Exclaim)) { in parseMemory()
5826 Operands.push_back(ARMOperand::CreateToken("!",Parser.getTok().getLoc())); in parseMemory()
5827 Parser.Lex(); // Eat the '!'. in parseMemory()
5835 if (Parser.getTok().is(AsmToken::Minus)) { in parseMemory()
5837 Parser.Lex(); // Eat the '-'. in parseMemory()
5838 } else if (Parser.getTok().is(AsmToken::Plus)) { in parseMemory()
5840 Parser.Lex(); // Eat the '+'. in parseMemory()
5843 E = Parser.getTok().getLoc(); in parseMemory()
5851 if (Parser.getTok().is(AsmToken::Comma)) { in parseMemory()
5852 Parser.Lex(); // Eat the ','. in parseMemory()
5858 if (Parser.getTok().isNot(AsmToken::RBrac)) in parseMemory()
5859 return Error(Parser.getTok().getLoc(), "']' expected"); in parseMemory()
5860 E = Parser.getTok().getEndLoc(); in parseMemory()
5861 Parser.Lex(); // Eat right bracket token. in parseMemory()
5869 if (Parser.getTok().is(AsmToken::Exclaim)) { in parseMemory()
5870 Operands.push_back(ARMOperand::CreateToken("!",Parser.getTok().getLoc())); in parseMemory()
5871 Parser.Lex(); // Eat the '!'. in parseMemory()
5883 MCAsmParser &Parser = getParser(); in parseMemRegOffsetShift() local
5884 SMLoc Loc = Parser.getTok().getLoc(); in parseMemRegOffsetShift()
5885 const AsmToken &Tok = Parser.getTok(); in parseMemRegOffsetShift()
5904 Parser.Lex(); // Eat shift type token. in parseMemRegOffsetShift()
5909 Loc = Parser.getTok().getLoc(); in parseMemRegOffsetShift()
5911 const AsmToken &HashTok = Parser.getTok(); in parseMemRegOffsetShift()
5915 Parser.Lex(); // Eat hash token. in parseMemRegOffsetShift()
5945 MCAsmParser &Parser = getParser(); in parseFPImm() local
5955 SMLoc S = Parser.getTok().getLoc(); in parseFPImm()
5957 if (Parser.getTok().isNot(AsmToken::Hash) && in parseFPImm()
5958 Parser.getTok().isNot(AsmToken::Dollar)) in parseFPImm()
5981 Parser.Lex(); // Eat '#' or '$'. in parseFPImm()
5985 if (Parser.getTok().is(AsmToken::Minus)) { in parseFPImm()
5987 Parser.Lex(); in parseFPImm()
5989 const AsmToken &Tok = Parser.getTok(); in parseFPImm()
5996 Parser.Lex(); // Eat the token. in parseFPImm()
5999 S, Parser.getTok().getLoc())); in parseFPImm()
6006 Parser.Lex(); // Eat the token. in parseFPImm()
6014 Parser.getTok().getLoc())); in parseFPImm()
6024 MCAsmParser &Parser = getParser(); in parseOperand() local
6040 Error(Parser.getTok().getLoc(), "unexpected token in operand"); in parseOperand()
6057 Parser.getTok().getString().equals_insensitive("apsr_nzcv")) { in parseOperand()
6058 S = Parser.getTok().getLoc(); in parseOperand()
6059 Parser.Lex(); in parseOperand()
6076 S = Parser.getTok().getLoc(); in parseOperand()
6079 E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseOperand()
6093 S = Parser.getTok().getLoc(); in parseOperand()
6099 bool ExpectIdentifier = Parser.getTok().is(AsmToken::Dollar) && in parseOperand()
6105 Parser.Lex(); in parseOperand()
6108 if (Parser.getTok().isNot(AsmToken::Colon)) { in parseOperand()
6109 bool IsNegative = Parser.getTok().is(AsmToken::Minus); in parseOperand()
6120 E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseOperand()
6126 if (Parser.getTok().is(AsmToken::Exclaim)) { in parseOperand()
6127 Operands.push_back(ARMOperand::CreateToken(Parser.getTok().getString(), in parseOperand()
6128 Parser.getTok().getLoc())); in parseOperand()
6129 Parser.Lex(); // Eat exclaim token in parseOperand()
6137 S = Parser.getTok().getLoc(); in parseOperand()
6152 E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseOperand()
6157 S = Parser.getTok().getLoc(); in parseOperand()
6160 Parser.Lex(); // Eat '=' in parseOperand()
6164 E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseOperand()
6190 MCAsmParser &Parser = getParser(); in parsePrefix() local
6195 Parser.Lex(); in parsePrefix()
6198 Parser.Lex(); // Eat ':' in parsePrefix()
6201 Error(Parser.getTok().getLoc(), "expected prefix identifier in operand"); in parsePrefix()
6224 StringRef IDVal = Parser.getTok().getIdentifier(); in parsePrefix()
6231 Error(Parser.getTok().getLoc(), "unexpected prefix in operand"); in parsePrefix()
6258 Error(Parser.getTok().getLoc(), in parsePrefix()
6264 Parser.Lex(); in parsePrefix()
6267 Error(Parser.getTok().getLoc(), "unexpected token after prefix"); in parsePrefix()
6270 Parser.Lex(); // Eat the last ':' in parsePrefix()
6940 MCAsmParser &Parser = getParser(); in ParseInstruction() local
6952 if (Parser.getTok().is(AsmToken::Identifier) && in ParseInstruction()
6953 Parser.getTok().getIdentifier().lower() == ".req") { in ParseInstruction()
11377 MCAsmParser &Parser = getParser(); in parseDirectiveThumbFunc() local
11385 if (Parser.getTok().is(AsmToken::Identifier) || in parseDirectiveThumbFunc()
11386 Parser.getTok().is(AsmToken::String)) { in parseDirectiveThumbFunc()
11388 Parser.getTok().getIdentifier()); in parseDirectiveThumbFunc()
11390 Parser.Lex(); in parseDirectiveThumbFunc()
11413 MCAsmParser &Parser = getParser(); in parseDirectiveSyntax() local
11414 const AsmToken &Tok = Parser.getTok(); in parseDirectiveSyntax()
11421 Parser.Lex(); in parseDirectiveSyntax()
11437 MCAsmParser &Parser = getParser(); in parseDirectiveCode() local
11438 const AsmToken &Tok = Parser.getTok(); in parseDirectiveCode()
11441 int64_t Val = Parser.getTok().getIntVal(); in parseDirectiveCode()
11446 Parser.Lex(); in parseDirectiveCode()
11473 MCAsmParser &Parser = getParser(); in parseDirectiveReq() local
11474 Parser.Lex(); // Eat the '.req' token. in parseDirectiveReq()
11492 MCAsmParser &Parser = getParser(); in parseDirectiveUnreq() local
11493 if (Parser.getTok().isNot(AsmToken::Identifier)) in parseDirectiveUnreq()
11495 RegisterReqs.erase(Parser.getTok().getIdentifier().lower()); in parseDirectiveUnreq()
11496 Parser.Lex(); // Eat the identifier. in parseDirectiveUnreq()
11550 MCAsmParser &Parser = getParser(); in parseDirectiveEabiAttr() local
11553 TagLoc = Parser.getTok().getLoc(); in parseDirectiveEabiAttr()
11554 if (Parser.getTok().is(AsmToken::Identifier)) { in parseDirectiveEabiAttr()
11555 StringRef Name = Parser.getTok().getIdentifier(); in parseDirectiveEabiAttr()
11563 Parser.Lex(); in parseDirectiveEabiAttr()
11567 TagLoc = Parser.getTok().getLoc(); in parseDirectiveEabiAttr()
11568 if (Parser.parseExpression(AttrExpr)) in parseDirectiveEabiAttr()
11578 if (Parser.parseComma()) in parseDirectiveEabiAttr()
11601 SMLoc ValueExprLoc = Parser.getTok().getLoc(); in parseDirectiveEabiAttr()
11602 if (Parser.parseExpression(ValueExpr)) in parseDirectiveEabiAttr()
11612 if (Parser.parseComma()) in parseDirectiveEabiAttr()
11618 if (Parser.getTok().isNot(AsmToken::String)) in parseDirectiveEabiAttr()
11619 return Error(Parser.getTok().getLoc(), "bad string constant"); in parseDirectiveEabiAttr()
11622 if (Parser.parseEscapedString(EscapedValue)) in parseDirectiveEabiAttr()
11623 return Error(Parser.getTok().getLoc(), "bad escaped string constant"); in parseDirectiveEabiAttr()
11627 StringValue = Parser.getTok().getStringContents(); in parseDirectiveEabiAttr()
11628 Parser.Lex(); in parseDirectiveEabiAttr()
11632 if (Parser.parseEOL()) in parseDirectiveEabiAttr()
11751 MCAsmParser &Parser = getParser(); in parseDirectivePersonality() local
11755 if (Parser.getTok().isNot(AsmToken::Identifier)) in parseDirectivePersonality()
11757 StringRef Name(Parser.getTok().getIdentifier()); in parseDirectivePersonality()
11758 Parser.Lex(); in parseDirectivePersonality()
11812 MCAsmParser &Parser = getParser(); in parseDirectiveSetFP() local
11820 SMLoc FPRegLoc = Parser.getTok().getLoc(); in parseDirectiveSetFP()
11824 Parser.parseComma()) in parseDirectiveSetFP()
11828 SMLoc SPRegLoc = Parser.getTok().getLoc(); in parseDirectiveSetFP()
11840 if (Parser.parseOptionalToken(AsmToken::Comma)) { in parseDirectiveSetFP()
11841 if (Parser.getTok().isNot(AsmToken::Hash) && in parseDirectiveSetFP()
11842 Parser.getTok().isNot(AsmToken::Dollar)) in parseDirectiveSetFP()
11843 return Error(Parser.getTok().getLoc(), "'#' expected"); in parseDirectiveSetFP()
11844 Parser.Lex(); // skip hash token. in parseDirectiveSetFP()
11847 SMLoc ExLoc = Parser.getTok().getLoc(); in parseDirectiveSetFP()
11857 if (Parser.parseEOL()) in parseDirectiveSetFP()
11868 MCAsmParser &Parser = getParser(); in parseDirectivePad() local
11876 if (Parser.getTok().isNot(AsmToken::Hash) && in parseDirectivePad()
11877 Parser.getTok().isNot(AsmToken::Dollar)) in parseDirectivePad()
11878 return Error(Parser.getTok().getLoc(), "'#' expected"); in parseDirectivePad()
11879 Parser.Lex(); // skip hash token. in parseDirectivePad()
11882 SMLoc ExLoc = Parser.getTok().getLoc(); in parseDirectivePad()
12025 MCAsmParser &Parser = getParser(); in parseDirectivePersonalityIndex() local
12029 SMLoc IndexLoc = Parser.getTok().getLoc(); in parseDirectivePersonalityIndex()
12030 if (Parser.parseExpression(IndexExpression) || parseEOL()) { in parseDirectivePersonalityIndex()
12069 MCAsmParser &Parser = getParser(); in parseDirectiveUnwindRaw() local
12085 if (Parser.parseComma()) in parseDirectiveUnwindRaw()
12094 Parser.parseExpression(OE), in parseDirectiveUnwindRaw()
12121 MCAsmParser &Parser = getParser(); in parseDirectiveTLSDescSeq() local
12127 MCSymbolRefExpr::create(Parser.getTok().getIdentifier(), in parseDirectiveTLSDescSeq()
12141 MCAsmParser &Parser = getParser(); in parseDirectiveMovSP() local
12147 SMLoc SPRegLoc = Parser.getTok().getLoc(); in parseDirectiveMovSP()
12155 if (Parser.parseOptionalToken(AsmToken::Comma)) { in parseDirectiveMovSP()
12156 if (Parser.parseToken(AsmToken::Hash, "expected #constant")) in parseDirectiveMovSP()
12160 SMLoc OffsetLoc = Parser.getTok().getLoc(); in parseDirectiveMovSP()
12162 if (Parser.parseExpression(OffsetExpr)) in parseDirectiveMovSP()
12184 MCAsmParser &Parser = getParser(); in parseDirectiveObjectArch() local
12188 StringRef Arch = Parser.getTok().getString(); in parseDirectiveObjectArch()
12189 SMLoc ArchLoc = Parser.getTok().getLoc(); in parseDirectiveObjectArch()
12224 MCAsmParser &Parser = getParser(); in parseDirectiveThumbSet() local
12227 if (check(Parser.parseIdentifier(Name), in parseDirectiveThumbSet()
12229 Parser.parseComma()) in parseDirectiveThumbSet()
12235 Parser, Sym, Value)) in parseDirectiveThumbSet()
12369 MCAsmParser &Parser = getParser(); in parseDirectiveSEHEpilogStart() local
12370 SMLoc S = Parser.getTok().getLoc(); in parseDirectiveSEHEpilogStart()
12371 const AsmToken &Tok = Parser.getTok(); in parseDirectiveSEHEpilogStart()
12377 Parser.Lex(); // Eat the token. in parseDirectiveSEHEpilogStart()
12713 MCAsmParser &Parser = getParser(); in parseDirectiveArchExtension() local
12718 StringRef Name = Parser.getTok().getString(); in parseDirectiveArchExtension()
12719 SMLoc ExtLoc = Parser.getTok().getLoc(); in parseDirectiveArchExtension()