• Home
  • Raw
  • Download

Lines Matching refs:Parser

120   AArch64AsmParser(const MCSubtargetInfo &STI, MCAsmParser &Parser,  in AArch64AsmParser()  argument
123 MCAsmParserExtension::Initialize(Parser); in AArch64AsmParser()
1965 MCAsmParser &Parser = getParser(); in tryParseRegister() local
1966 const AsmToken &Tok = Parser.getTok(); in tryParseRegister()
1983 Parser.Lex(); // Eat identifier token. in tryParseRegister()
1990 MCAsmParser &Parser = getParser(); in tryMatchVectorRegister() local
1991 if (Parser.getTok().isNot(AsmToken::Identifier)) { in tryMatchVectorRegister()
1996 StringRef Name = Parser.getTok().getString(); in tryMatchVectorRegister()
2011 Parser.Lex(); // Eat the register token. in tryMatchVectorRegister()
2023 MCAsmParser &Parser = getParser(); in tryParseSysCROperand() local
2026 if (Parser.getTok().isNot(AsmToken::Identifier)) { in tryParseSysCROperand()
2031 StringRef Tok = Parser.getTok().getIdentifier(); in tryParseSysCROperand()
2044 Parser.Lex(); // Eat identifier token. in tryParseSysCROperand()
2053 MCAsmParser &Parser = getParser(); in tryParsePrefetch() local
2055 const AsmToken &Tok = Parser.getTok(); in tryParsePrefetch()
2060 Parser.Lex(); // Eat hash token. in tryParsePrefetch()
2093 Parser.Lex(); // Eat identifier token. in tryParsePrefetch()
2102 MCAsmParser &Parser = getParser(); in tryParsePSBHint() local
2104 const AsmToken &Tok = Parser.getTok(); in tryParsePSBHint()
2116 Parser.Lex(); // Eat identifier token. in tryParsePSBHint()
2126 MCAsmParser &Parser = getParser(); in tryParseAdrpLabel() local
2130 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseAdrpLabel()
2131 Parser.Lex(); // Eat hash token. in tryParseAdrpLabel()
2177 MCAsmParser &Parser = getParser(); in tryParseAdrLabel() local
2181 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseAdrLabel()
2182 Parser.Lex(); // Eat hash token. in tryParseAdrLabel()
2197 MCAsmParser &Parser = getParser(); in tryParseFPImm() local
2201 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseFPImm()
2202 Parser.Lex(); // Eat '#' in tryParseFPImm()
2208 if (Parser.getTok().is(AsmToken::Minus)) { in tryParseFPImm()
2210 Parser.Lex(); in tryParseFPImm()
2212 const AsmToken &Tok = Parser.getTok(); in tryParseFPImm()
2220 Parser.Lex(); // Eat the token. in tryParseFPImm()
2246 Parser.Lex(); // Eat the token. in tryParseFPImm()
2261 MCAsmParser &Parser = getParser(); in tryParseAddSubImm() local
2264 if (Parser.getTok().is(AsmToken::Hash)) in tryParseAddSubImm()
2265 Parser.Lex(); // Eat '#' in tryParseAddSubImm()
2266 else if (Parser.getTok().isNot(AsmToken::Integer)) in tryParseAddSubImm()
2273 else if (Parser.getTok().isNot(AsmToken::Comma)) { in tryParseAddSubImm()
2283 SMLoc E = Parser.getTok().getLoc(); in tryParseAddSubImm()
2290 Parser.Lex(); in tryParseAddSubImm()
2293 if (!Parser.getTok().is(AsmToken::Identifier) || in tryParseAddSubImm()
2294 !Parser.getTok().getIdentifier().equals_lower("lsl")) { in tryParseAddSubImm()
2295 Error(Parser.getTok().getLoc(), "only 'lsl #+N' valid after immediate"); in tryParseAddSubImm()
2300 Parser.Lex(); in tryParseAddSubImm()
2302 if (Parser.getTok().is(AsmToken::Hash)) { in tryParseAddSubImm()
2303 Parser.Lex(); in tryParseAddSubImm()
2306 if (Parser.getTok().isNot(AsmToken::Integer)) { in tryParseAddSubImm()
2307 Error(Parser.getTok().getLoc(), "only 'lsl #+N' valid after immediate"); in tryParseAddSubImm()
2311 int64_t ShiftAmount = Parser.getTok().getIntVal(); in tryParseAddSubImm()
2314 Error(Parser.getTok().getLoc(), "positive shift amount required"); in tryParseAddSubImm()
2317 Parser.Lex(); // Eat the number in tryParseAddSubImm()
2319 SMLoc E = Parser.getTok().getLoc(); in tryParseAddSubImm()
2353 MCAsmParser &Parser = getParser(); in parseCondCode() local
2355 const AsmToken &Tok = Parser.getTok(); in parseCondCode()
2362 Parser.Lex(); // Eat identifier token. in parseCondCode()
2379 MCAsmParser &Parser = getParser(); in tryParseOptionalShiftExtend() local
2380 const AsmToken &Tok = Parser.getTok(); in tryParseOptionalShiftExtend()
2403 Parser.Lex(); in tryParseOptionalShiftExtend()
2423 Parser.Lex(); // Eat the '#'. in tryParseOptionalShiftExtend()
2426 SMLoc E = Parser.getTok().getLoc(); in tryParseOptionalShiftExtend()
2427 if (!Parser.getTok().is(AsmToken::Integer) && in tryParseOptionalShiftExtend()
2428 !Parser.getTok().is(AsmToken::LParen)) { in tryParseOptionalShiftExtend()
2460 MCAsmParser &Parser = getParser(); in parseSysAlias() local
2461 const AsmToken &Tok = Parser.getTok(); in parseSysAlias()
2687 Parser.Lex(); // Eat operand. in parseSysAlias()
2694 Parser.Lex(); // Eat comma. in parseSysAlias()
2703 Parser.eatToEndOfStatement(); in parseSysAlias()
2714 Parser.Lex(); // Consume the EndOfStatement in parseSysAlias()
2720 MCAsmParser &Parser = getParser(); in tryParseBarrierOperand() local
2721 const AsmToken &Tok = Parser.getTok(); in tryParseBarrierOperand()
2728 Parser.Lex(); // Eat the '#' in tryParseBarrierOperand()
2767 Parser.Lex(); // Consume the option in tryParseBarrierOperand()
2774 MCAsmParser &Parser = getParser(); in tryParseSysReg() local
2775 const AsmToken &Tok = Parser.getTok(); in tryParseSysReg()
2796 Parser.Lex(); // Eat identifier in tryParseSysReg()
2803 MCAsmParser &Parser = getParser(); in tryParseVectorRegister() local
2804 if (Parser.getTok().isNot(AsmToken::Identifier)) in tryParseVectorRegister()
2822 if (Parser.getTok().is(AsmToken::LBrac)) { in tryParseVectorRegister()
2824 Parser.Lex(); // Eat left bracket token. in tryParseVectorRegister()
2836 if (Parser.getTok().isNot(AsmToken::RBrac)) { in tryParseVectorRegister()
2841 Parser.Lex(); // Eat right bracket token. in tryParseVectorRegister()
2852 MCAsmParser &Parser = getParser(); in parseRegister() local
2869 Parser.Lex(); in parseRegister()
2870 const AsmToken &Tok = Parser.getTok(); in parseRegister()
2875 Parser.Lex(); in parseRegister()
2878 Parser.Lex(); in parseRegister()
2895 MCAsmParser &Parser = getParser(); in parseSymbolicImmVal() local
2899 if (Parser.getTok().is(AsmToken::Colon)) { in parseSymbolicImmVal()
2900 Parser.Lex(); // Eat ':" in parseSymbolicImmVal()
2903 if (Parser.getTok().isNot(AsmToken::Identifier)) { in parseSymbolicImmVal()
2904 Error(Parser.getTok().getLoc(), in parseSymbolicImmVal()
2909 std::string LowerCase = Parser.getTok().getIdentifier().lower(); in parseSymbolicImmVal()
2949 Error(Parser.getTok().getLoc(), in parseSymbolicImmVal()
2954 Parser.Lex(); // Eat identifier in parseSymbolicImmVal()
2956 if (Parser.getTok().isNot(AsmToken::Colon)) { in parseSymbolicImmVal()
2957 Error(Parser.getTok().getLoc(), "expect ':' after relocation specifier"); in parseSymbolicImmVal()
2960 Parser.Lex(); // Eat ':' in parseSymbolicImmVal()
2974 MCAsmParser &Parser = getParser(); in parseVectorList() local
2975 assert(Parser.getTok().is(AsmToken::LCurly) && "Token is not a Left Bracket"); in parseVectorList()
2977 Parser.Lex(); // Eat left bracket token. in parseVectorList()
2985 if (Parser.getTok().is(AsmToken::Minus)) { in parseVectorList()
2986 Parser.Lex(); // Eat the minus. in parseVectorList()
3006 while (Parser.getTok().is(AsmToken::Comma)) { in parseVectorList()
3007 Parser.Lex(); // Eat the comma token. in parseVectorList()
3028 if (Parser.getTok().isNot(AsmToken::RCurly)) in parseVectorList()
3030 Parser.Lex(); // Eat the '}' token. in parseVectorList()
3044 if (Parser.getTok().is(AsmToken::LBrac)) { in parseVectorList()
3046 Parser.Lex(); // Eat left bracket token. in parseVectorList()
3058 if (Parser.getTok().isNot(AsmToken::RBrac)) { in parseVectorList()
3063 Parser.Lex(); // Eat right bracket token. in parseVectorList()
3073 MCAsmParser &Parser = getParser(); in tryParseGPR64sp0Operand() local
3074 const AsmToken &Tok = Parser.getTok(); in tryParseGPR64sp0Operand()
3086 Parser.Lex(); // Eat register in tryParseGPR64sp0Operand()
3088 if (Parser.getTok().isNot(AsmToken::Comma)) { in tryParseGPR64sp0Operand()
3093 Parser.Lex(); // Eat comma. in tryParseGPR64sp0Operand()
3095 if (Parser.getTok().is(AsmToken::Hash)) in tryParseGPR64sp0Operand()
3096 Parser.Lex(); // Eat hash in tryParseGPR64sp0Operand()
3098 if (Parser.getTok().isNot(AsmToken::Integer)) { in tryParseGPR64sp0Operand()
3104 if (Parser.parseExpression(ImmVal) || !isa<MCConstantExpr>(ImmVal) || in tryParseGPR64sp0Operand()
3119 MCAsmParser &Parser = getParser(); in parseOperand() local
3145 SMLoc Loc = Parser.getTok().getLoc(); in parseOperand()
3148 Parser.Lex(); // Eat '[' in parseOperand()
3188 Parser.Lex(); in parseOperand()
3192 if (Parser.getTok().is(AsmToken::Minus)) { in parseOperand()
3196 if (Parser.getLexer().peekTok().is(AsmToken::Real)) in parseOperand()
3197 Parser.Lex(); in parseOperand()
3203 const AsmToken &Tok = Parser.getTok(); in parseOperand()
3213 Parser.Lex(); // Eat the token. in parseOperand()
3231 SMLoc Loc = Parser.getTok().getLoc(); in parseOperand()
3234 Parser.Lex(); // Eat '=' in parseOperand()
3285 MCAsmParser &Parser = getParser(); in ParseInstruction() local
3308 if (Parser.getTok().is(AsmToken::Identifier) && in ParseInstruction()
3309 Parser.getTok().getIdentifier() == ".req") { in ParseInstruction()
3324 Parser.eatToEndOfStatement(); in ParseInstruction()
3381 Parser.eatToEndOfStatement(); in ParseInstruction()
3387 Parser.Lex(); // Eat the comma. in ParseInstruction()
3394 Parser.eatToEndOfStatement(); in ParseInstruction()
3406 if (Parser.getTok().is(AsmToken::RBrac)) { in ParseInstruction()
3407 SMLoc Loc = Parser.getTok().getLoc(); in ParseInstruction()
3410 Parser.Lex(); in ParseInstruction()
3413 if (Parser.getTok().is(AsmToken::Exclaim)) { in ParseInstruction()
3414 SMLoc Loc = Parser.getTok().getLoc(); in ParseInstruction()
3417 Parser.Lex(); in ParseInstruction()
3425 SMLoc Loc = Parser.getTok().getLoc(); in ParseInstruction()
3426 Parser.eatToEndOfStatement(); in ParseInstruction()
3430 Parser.Lex(); // Consume the EndOfStatement in ParseInstruction()
4284 MCAsmParser &Parser = getParser(); in parseDirectiveWord() local
4299 Parser.Lex(); in parseDirectiveWord()
4303 Parser.Lex(); in parseDirectiveWord()
4310 MCAsmParser &Parser = getParser(); in parseDirectiveInst() local
4312 Parser.eatToEndOfStatement(); in parseDirectiveInst()
4341 Parser.Lex(); // Eat comma. in parseDirectiveInst()
4344 Parser.Lex(); in parseDirectiveInst()
4429 MCAsmParser &Parser = getParser(); in parseDirectiveReq() local
4430 Parser.Lex(); // Eat the '.req' token. in parseDirectiveReq()
4446 Parser.eatToEndOfStatement(); in parseDirectiveReq()
4452 if (Parser.getTok().isNot(AsmToken::EndOfStatement)) { in parseDirectiveReq()
4453 Error(Parser.getTok().getLoc(), "unexpected input in .req directive"); in parseDirectiveReq()
4454 Parser.eatToEndOfStatement(); in parseDirectiveReq()
4458 Parser.Lex(); // Consume the EndOfStatement in parseDirectiveReq()
4470 MCAsmParser &Parser = getParser(); in parseDirectiveUnreq() local
4471 if (Parser.getTok().isNot(AsmToken::Identifier)) { in parseDirectiveUnreq()
4472 Error(Parser.getTok().getLoc(), "unexpected input in .unreq directive."); in parseDirectiveUnreq()
4473 Parser.eatToEndOfStatement(); in parseDirectiveUnreq()
4476 RegisterReqs.erase(Parser.getTok().getIdentifier().lower()); in parseDirectiveUnreq()
4477 Parser.Lex(); // Eat the identifier. in parseDirectiveUnreq()