Lines Matching refs:Parser
118 AArch64AsmParser(const MCSubtargetInfo &STI, MCAsmParser &Parser, in AArch64AsmParser() argument
121 MCAsmParserExtension::Initialize(Parser); in AArch64AsmParser()
1979 MCAsmParser &Parser = getParser(); in tryParseRegister() local
1980 const AsmToken &Tok = Parser.getTok(); in tryParseRegister()
1997 Parser.Lex(); // Eat identifier token. in tryParseRegister()
2004 MCAsmParser &Parser = getParser(); in tryMatchVectorRegister() local
2005 if (Parser.getTok().isNot(AsmToken::Identifier)) { in tryMatchVectorRegister()
2010 StringRef Name = Parser.getTok().getString(); in tryMatchVectorRegister()
2025 Parser.Lex(); // Eat the register token. in tryMatchVectorRegister()
2037 MCAsmParser &Parser = getParser(); in tryParseSysCROperand() local
2040 if (Parser.getTok().isNot(AsmToken::Identifier)) { in tryParseSysCROperand()
2045 StringRef Tok = Parser.getTok().getIdentifier(); in tryParseSysCROperand()
2058 Parser.Lex(); // Eat identifier token. in tryParseSysCROperand()
2067 MCAsmParser &Parser = getParser(); in tryParsePrefetch() local
2069 const AsmToken &Tok = Parser.getTok(); in tryParsePrefetch()
2074 Parser.Lex(); // Eat hash token. in tryParsePrefetch()
2113 Parser.Lex(); // Eat identifier token. in tryParsePrefetch()
2122 MCAsmParser &Parser = getParser(); in tryParsePSBHint() local
2124 const AsmToken &Tok = Parser.getTok(); in tryParsePSBHint()
2139 Parser.Lex(); // Eat identifier token. in tryParsePSBHint()
2149 MCAsmParser &Parser = getParser(); in tryParseAdrpLabel() local
2153 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseAdrpLabel()
2154 Parser.Lex(); // Eat hash token. in tryParseAdrpLabel()
2200 MCAsmParser &Parser = getParser(); in tryParseAdrLabel() local
2204 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseAdrLabel()
2205 Parser.Lex(); // Eat hash token. in tryParseAdrLabel()
2220 MCAsmParser &Parser = getParser(); in tryParseFPImm() local
2224 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseFPImm()
2225 Parser.Lex(); // Eat '#' in tryParseFPImm()
2231 if (Parser.getTok().is(AsmToken::Minus)) { in tryParseFPImm()
2233 Parser.Lex(); in tryParseFPImm()
2235 const AsmToken &Tok = Parser.getTok(); in tryParseFPImm()
2243 Parser.Lex(); // Eat the token. in tryParseFPImm()
2269 Parser.Lex(); // Eat the token. in tryParseFPImm()
2284 MCAsmParser &Parser = getParser(); in tryParseAddSubImm() local
2287 if (Parser.getTok().is(AsmToken::Hash)) in tryParseAddSubImm()
2288 Parser.Lex(); // Eat '#' in tryParseAddSubImm()
2289 else if (Parser.getTok().isNot(AsmToken::Integer)) in tryParseAddSubImm()
2296 else if (Parser.getTok().isNot(AsmToken::Comma)) { in tryParseAddSubImm()
2306 SMLoc E = Parser.getTok().getLoc(); in tryParseAddSubImm()
2313 Parser.Lex(); in tryParseAddSubImm()
2316 if (!Parser.getTok().is(AsmToken::Identifier) || in tryParseAddSubImm()
2317 !Parser.getTok().getIdentifier().equals_lower("lsl")) { in tryParseAddSubImm()
2318 Error(Parser.getTok().getLoc(), "only 'lsl #+N' valid after immediate"); in tryParseAddSubImm()
2323 Parser.Lex(); in tryParseAddSubImm()
2325 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseAddSubImm()
2326 Parser.Lex(); in tryParseAddSubImm()
2329 if (Parser.getTok().isNot(AsmToken::Integer)) { in tryParseAddSubImm()
2330 Error(Parser.getTok().getLoc(), "only 'lsl #+N' valid after immediate"); in tryParseAddSubImm()
2334 int64_t ShiftAmount = Parser.getTok().getIntVal(); in tryParseAddSubImm()
2337 Error(Parser.getTok().getLoc(), "positive shift amount required"); in tryParseAddSubImm()
2340 Parser.Lex(); // Eat the number in tryParseAddSubImm()
2342 SMLoc E = Parser.getTok().getLoc(); in tryParseAddSubImm()
2376 MCAsmParser &Parser = getParser(); in parseCondCode() local
2378 const AsmToken &Tok = Parser.getTok(); in parseCondCode()
2385 Parser.Lex(); // Eat identifier token. in parseCondCode()
2402 MCAsmParser &Parser = getParser(); in tryParseOptionalShiftExtend() local
2403 const AsmToken &Tok = Parser.getTok(); in tryParseOptionalShiftExtend()
2426 Parser.Lex(); in tryParseOptionalShiftExtend()
2446 Parser.Lex(); // Eat the '#'. in tryParseOptionalShiftExtend()
2449 SMLoc E = Parser.getTok().getLoc(); in tryParseOptionalShiftExtend()
2450 if (!Parser.getTok().is(AsmToken::Integer) && in tryParseOptionalShiftExtend()
2451 !Parser.getTok().is(AsmToken::LParen)) { in tryParseOptionalShiftExtend()
2483 MCAsmParser &Parser = getParser(); in parseSysAlias() local
2484 const AsmToken &Tok = Parser.getTok(); in parseSysAlias()
2710 Parser.Lex(); // Eat operand. in parseSysAlias()
2717 Parser.Lex(); // Eat comma. in parseSysAlias()
2726 Parser.eatToEndOfStatement(); in parseSysAlias()
2737 Parser.Lex(); // Consume the EndOfStatement in parseSysAlias()
2743 MCAsmParser &Parser = getParser(); in tryParseBarrierOperand() local
2744 const AsmToken &Tok = Parser.getTok(); in tryParseBarrierOperand()
2751 Parser.Lex(); // Eat the '#' in tryParseBarrierOperand()
2796 Parser.Lex(); // Consume the option in tryParseBarrierOperand()
2803 MCAsmParser &Parser = getParser(); in tryParseSysReg() local
2804 const AsmToken &Tok = Parser.getTok(); in tryParseSysReg()
2831 Parser.Lex(); // Eat identifier in tryParseSysReg()
2838 MCAsmParser &Parser = getParser(); in tryParseVectorRegister() local
2839 if (Parser.getTok().isNot(AsmToken::Identifier)) in tryParseVectorRegister()
2857 if (Parser.getTok().is(AsmToken::LBrac)) { in tryParseVectorRegister()
2859 Parser.Lex(); // Eat left bracket token. in tryParseVectorRegister()
2871 if (Parser.getTok().isNot(AsmToken::RBrac)) { in tryParseVectorRegister()
2876 Parser.Lex(); // Eat right bracket token. in tryParseVectorRegister()
2887 MCAsmParser &Parser = getParser(); in parseRegister() local
2904 Parser.Lex(); in parseRegister()
2905 const AsmToken &Tok = Parser.getTok(); in parseRegister()
2910 Parser.Lex(); in parseRegister()
2913 Parser.Lex(); in parseRegister()
2930 MCAsmParser &Parser = getParser(); in parseSymbolicImmVal() local
2934 if (Parser.getTok().is(AsmToken::Colon)) { in parseSymbolicImmVal()
2935 Parser.Lex(); // Eat ':" in parseSymbolicImmVal()
2938 if (Parser.getTok().isNot(AsmToken::Identifier)) { in parseSymbolicImmVal()
2939 Error(Parser.getTok().getLoc(), in parseSymbolicImmVal()
2944 std::string LowerCase = Parser.getTok().getIdentifier().lower(); in parseSymbolicImmVal()
2984 Error(Parser.getTok().getLoc(), in parseSymbolicImmVal()
2989 Parser.Lex(); // Eat identifier in parseSymbolicImmVal()
2991 if (Parser.getTok().isNot(AsmToken::Colon)) { in parseSymbolicImmVal()
2992 Error(Parser.getTok().getLoc(), "expect ':' after relocation specifier"); in parseSymbolicImmVal()
2995 Parser.Lex(); // Eat ':' in parseSymbolicImmVal()
3009 MCAsmParser &Parser = getParser(); in parseVectorList() local
3010 assert(Parser.getTok().is(AsmToken::LCurly) && "Token is not a Left Bracket"); in parseVectorList()
3012 Parser.Lex(); // Eat left bracket token. in parseVectorList()
3020 if (Parser.getTok().is(AsmToken::Minus)) { in parseVectorList()
3021 Parser.Lex(); // Eat the minus. in parseVectorList()
3041 while (Parser.getTok().is(AsmToken::Comma)) { in parseVectorList()
3042 Parser.Lex(); // Eat the comma token. in parseVectorList()
3063 if (Parser.getTok().isNot(AsmToken::RCurly)) in parseVectorList()
3065 Parser.Lex(); // Eat the '}' token. in parseVectorList()
3079 if (Parser.getTok().is(AsmToken::LBrac)) { in parseVectorList()
3081 Parser.Lex(); // Eat left bracket token. in parseVectorList()
3093 if (Parser.getTok().isNot(AsmToken::RBrac)) { in parseVectorList()
3098 Parser.Lex(); // Eat right bracket token. in parseVectorList()
3108 MCAsmParser &Parser = getParser(); in tryParseGPR64sp0Operand() local
3109 const AsmToken &Tok = Parser.getTok(); in tryParseGPR64sp0Operand()
3121 Parser.Lex(); // Eat register in tryParseGPR64sp0Operand()
3123 if (Parser.getTok().isNot(AsmToken::Comma)) { in tryParseGPR64sp0Operand()
3128 Parser.Lex(); // Eat comma. in tryParseGPR64sp0Operand()
3130 if (Parser.getTok().is(AsmToken::Hash)) in tryParseGPR64sp0Operand()
3131 Parser.Lex(); // Eat hash in tryParseGPR64sp0Operand()
3133 if (Parser.getTok().isNot(AsmToken::Integer)) { in tryParseGPR64sp0Operand()
3139 if (Parser.parseExpression(ImmVal) || !isa<MCConstantExpr>(ImmVal) || in tryParseGPR64sp0Operand()
3154 MCAsmParser &Parser = getParser(); in parseOperand() local
3180 SMLoc Loc = Parser.getTok().getLoc(); in parseOperand()
3183 Parser.Lex(); // Eat '[' in parseOperand()
3223 Parser.Lex(); in parseOperand()
3227 if (Parser.getTok().is(AsmToken::Minus)) { in parseOperand()
3231 if (Parser.getLexer().peekTok().is(AsmToken::Real)) in parseOperand()
3232 Parser.Lex(); in parseOperand()
3238 const AsmToken &Tok = Parser.getTok(); in parseOperand()
3248 Parser.Lex(); // Eat the token. in parseOperand()
3266 SMLoc Loc = Parser.getTok().getLoc(); in parseOperand()
3269 Parser.Lex(); // Eat '=' in parseOperand()
3320 MCAsmParser &Parser = getParser(); in ParseInstruction() local
3343 if (Parser.getTok().is(AsmToken::Identifier) && in ParseInstruction()
3344 Parser.getTok().getIdentifier() == ".req") { in ParseInstruction()
3359 Parser.eatToEndOfStatement(); in ParseInstruction()
3416 Parser.eatToEndOfStatement(); in ParseInstruction()
3422 Parser.Lex(); // Eat the comma. in ParseInstruction()
3429 Parser.eatToEndOfStatement(); in ParseInstruction()
3441 if (Parser.getTok().is(AsmToken::RBrac)) { in ParseInstruction()
3442 SMLoc Loc = Parser.getTok().getLoc(); in ParseInstruction()
3445 Parser.Lex(); in ParseInstruction()
3448 if (Parser.getTok().is(AsmToken::Exclaim)) { in ParseInstruction()
3449 SMLoc Loc = Parser.getTok().getLoc(); in ParseInstruction()
3452 Parser.Lex(); in ParseInstruction()
3460 SMLoc Loc = Parser.getTok().getLoc(); in ParseInstruction()
3461 Parser.eatToEndOfStatement(); in ParseInstruction()
3465 Parser.Lex(); // Consume the EndOfStatement in ParseInstruction()
4222 MCAsmParser &Parser = getParser(); in parseDirectiveWord() local
4237 Parser.Lex(); in parseDirectiveWord()
4241 Parser.Lex(); in parseDirectiveWord()
4248 MCAsmParser &Parser = getParser(); in parseDirectiveInst() local
4250 Parser.eatToEndOfStatement(); in parseDirectiveInst()
4279 Parser.Lex(); // Eat comma. in parseDirectiveInst()
4282 Parser.Lex(); in parseDirectiveInst()
4367 MCAsmParser &Parser = getParser(); in parseDirectiveReq() local
4368 Parser.Lex(); // Eat the '.req' token. in parseDirectiveReq()
4384 Parser.eatToEndOfStatement(); in parseDirectiveReq()
4390 if (Parser.getTok().isNot(AsmToken::EndOfStatement)) { in parseDirectiveReq()
4391 Error(Parser.getTok().getLoc(), "unexpected input in .req directive"); in parseDirectiveReq()
4392 Parser.eatToEndOfStatement(); in parseDirectiveReq()
4396 Parser.Lex(); // Consume the EndOfStatement in parseDirectiveReq()
4408 MCAsmParser &Parser = getParser(); in parseDirectiveUnreq() local
4409 if (Parser.getTok().isNot(AsmToken::Identifier)) { in parseDirectiveUnreq()
4410 Error(Parser.getTok().getLoc(), "unexpected input in .unreq directive."); in parseDirectiveUnreq()
4411 Parser.eatToEndOfStatement(); in parseDirectiveUnreq()
4414 RegisterReqs.erase(Parser.getTok().getIdentifier().lower()); in parseDirectiveUnreq()
4415 Parser.Lex(); // Eat the identifier. in parseDirectiveUnreq()