Lines Matching refs:Operands
49 SMLoc NameLoc, OperandVector &Operands) override;
51 OperandVector &Operands, MCStreamer &Out,
64 ParseStatus parseImmediate(OperandVector &Operands);
65 ParseStatus parseRegister(OperandVector &Operands, bool AllowParens = false,
67 ParseStatus parseOperandWithModifier(OperandVector &Operands);
68 bool parseOperand(OperandVector &Operands, StringRef Mnemonic,
71 SMLoc NameLoc, OperandVector &Operands);
76 ParseStatus parsePCRelTarget(OperandVector &Operands);
354 static SMLoc RefineErrorLoc(const SMLoc Loc, const OperandVector &Operands, in RefineErrorLoc() argument
356 if (ErrorInfo != ~0ULL && ErrorInfo < Operands.size()) { in RefineErrorLoc()
357 SMLoc ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in RefineErrorLoc()
429 OperandVector &Operands, in MatchAndEmitInstruction() argument
435 MatchInstructionImpl(Operands, Inst, ErrorInfo, MatchingInlineAsm); in MatchAndEmitInstruction()
452 if (ErrorInfo >= Operands.size()) in MatchAndEmitInstruction()
455 ErrorLoc = ((XtensaOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
462 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
465 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
469 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
472 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
475 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
478 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
481 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
484 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
487 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
490 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
493 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
496 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
500 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
504 return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), in MatchAndEmitInstruction()
512 ParseStatus XtensaAsmParser::parsePCRelTarget(OperandVector &Operands) { in parsePCRelTarget() argument
529 Operands.push_back(XtensaOperand::createImm(Expr, S, getLexer().getLoc())); in parsePCRelTarget()
549 ParseStatus XtensaAsmParser::parseRegister(OperandVector &Operands, in parseRegister() argument
594 Operands.push_back(XtensaOperand::createToken("(", FirstS)); in parseRegister()
598 Operands.push_back(XtensaOperand::createReg(RegNo, S, E)); in parseRegister()
602 Operands.push_back(XtensaOperand::createToken(")", getLoc())); in parseRegister()
608 ParseStatus XtensaAsmParser::parseImmediate(OperandVector &Operands) { in parseImmediate() argument
635 return parseOperandWithModifier(Operands); in parseImmediate()
639 Operands.push_back(XtensaOperand::createImm(Res, S, E)); in parseImmediate()
643 ParseStatus XtensaAsmParser::parseOperandWithModifier(OperandVector &Operands) { in parseOperandWithModifier() argument
650 bool XtensaAsmParser::parseOperand(OperandVector &Operands, StringRef Mnemonic, in parseOperand() argument
654 ParseStatus Res = MatchOperandParserImpl(Operands, Mnemonic); in parseOperand()
665 if (parseRegister(Operands, true, SR).isSuccess()) in parseOperand()
669 if (parseImmediate(Operands).isSuccess()) in parseOperand()
678 OperandVector &Operands) { in ParseInstructionWithSR() argument
686 Operands.push_back(XtensaOperand::createToken(Name.take_front(3), NameLoc)); in ParseInstructionWithSR()
698 if (parseOperand(Operands, Name)) in ParseInstructionWithSR()
703 Operands.push_back(XtensaOperand::createReg(RegNo, S, E)); in ParseInstructionWithSR()
706 Operands.push_back(XtensaOperand::createToken(Name, NameLoc)); in ParseInstructionWithSR()
709 if (parseOperand(Operands, Name)) in ParseInstructionWithSR()
719 if (parseOperand(Operands, Name, true)) in ParseInstructionWithSR()
735 OperandVector &Operands) { in ParseInstruction() argument
738 return ParseInstructionWithSR(Info, Name, NameLoc, Operands); in ParseInstruction()
742 Operands.push_back(XtensaOperand::createToken(Name, NameLoc)); in ParseInstruction()
749 if (parseOperand(Operands, Name)) in ParseInstruction()
754 if (parseOperand(Operands, Name)) in ParseInstruction()