Lines Matching refs:Op
308 unsigned validateTargetOperandClass(MCParsedAsmOperand &Op,
709 auto Op = make_unique<PPCOperand>(Token);
710 Op->Tok.Data = Str.data();
711 Op->Tok.Length = Str.size();
712 Op->StartLoc = S;
713 Op->EndLoc = S;
714 Op->IsPPC64 = IsPPC64;
715 return Op;
726 std::unique_ptr<PPCOperand> Op(new (Mem) PPCOperand(Token));
727 Op->Tok.Data = reinterpret_cast<const char *>(Op.get() + 1);
728 Op->Tok.Length = Str.size();
729 std::memcpy(const_cast<char *>(Op->Tok.Data), Str.data(), Str.size());
730 Op->StartLoc = S;
731 Op->EndLoc = S;
732 Op->IsPPC64 = IsPPC64;
733 return Op;
738 auto Op = make_unique<PPCOperand>(Immediate);
739 Op->Imm.Val = Val;
740 Op->StartLoc = S;
741 Op->EndLoc = E;
742 Op->IsPPC64 = IsPPC64;
743 return Op;
748 auto Op = make_unique<PPCOperand>(Expression);
749 Op->Expr.Val = Val;
750 Op->Expr.CRVal = EvaluateCRExpr(Val);
751 Op->StartLoc = S;
752 Op->EndLoc = E;
753 Op->IsPPC64 = IsPPC64;
754 return Op;
759 auto Op = make_unique<PPCOperand>(TLSRegister);
760 Op->TLSReg.Sym = Sym;
761 Op->StartLoc = S;
762 Op->EndLoc = E;
763 Op->IsPPC64 = IsPPC64;
764 return Op;
769 auto Op = make_unique<PPCOperand>(ContextImmediate);
770 Op->Imm.Val = Val;
771 Op->StartLoc = S;
772 Op->EndLoc = E;
773 Op->IsPPC64 = IsPPC64;
774 return Op;
817 addNegOperand(MCInst &Inst, MCOperand &Op, MCContext &Ctx) {
818 if (Op.isImm()) {
819 Inst.addOperand(MCOperand::createImm(-Op.getImm()));
822 const MCExpr *Expr = Op.getExpr();
1833 // ".machine push" and ".machine pop" as no-op.
1978 PPCOperand &Op = static_cast<PPCOperand &>(AsmOp);
1979 if (Op.isImm() && Op.getImm() == ImmVal)