Lines Matching defs:MSP430Operand
89 class MSP430Operand : public MCParsedAsmOperand {
115 MSP430Operand(StringRef Tok, SMLoc const &S)
117 MSP430Operand(KindTy Kind, MCRegister Reg, SMLoc const &S, SMLoc const &E)
119 MSP430Operand(MCExpr const *Imm, SMLoc const &S, SMLoc const &E)
121 MSP430Operand(MCRegister Reg, MCExpr const *Expr, SMLoc const &S,
194 static std::unique_ptr<MSP430Operand> CreateToken(StringRef Str, SMLoc S) {
195 return std::make_unique<MSP430Operand>(Str, S);
198 static std::unique_ptr<MSP430Operand> CreateReg(MCRegister Reg, SMLoc S,
200 return std::make_unique<MSP430Operand>(k_Reg, Reg, S, E);
203 static std::unique_ptr<MSP430Operand> CreateImm(const MCExpr *Val, SMLoc S,
205 return std::make_unique<MSP430Operand>(Val, S, E);
208 static std::unique_ptr<MSP430Operand>
210 return std::make_unique<MSP430Operand>(Reg, Val, S, E);
213 static std::unique_ptr<MSP430Operand> CreateIndReg(MCRegister Reg, SMLoc S,
215 return std::make_unique<MSP430Operand>(k_IndReg, Reg, S, E);
218 static std::unique_ptr<MSP430Operand> CreatePostIndReg(MCRegister Reg,
220 return std::make_unique<MSP430Operand>(k_PostIndReg, Reg, S, E);
274 ErrorLoc = ((MSP430Operand &)*Operands[ErrorInfo]).getStartLoc();
352 Operands.push_back(MSP430Operand::CreateToken("jmp", NameLoc));
354 Operands.push_back(MSP430Operand::CreateToken("j", NameLoc));
356 Operands.push_back(MSP430Operand::CreateImm(CCode, SMLoc(), SMLoc()));
372 Operands.push_back(MSP430Operand::CreateImm(Val, ExprLoc,
396 Operands.push_back(MSP430Operand::CreateToken(Name, NameLoc));
451 Operands.push_back(MSP430Operand::CreateReg(RegNo, StartLoc, EndLoc));
474 Operands.push_back(MSP430Operand::CreateMem(RegNo, Val, StartLoc,
487 Operands.push_back(MSP430Operand::CreateMem(MSP430::SR, Val, StartLoc,
502 Operands.push_back(MSP430Operand::CreatePostIndReg(RegNo, StartLoc, EndLoc));
506 Operands.push_back(MSP430Operand::CreateMem(RegNo,
509 Operands.push_back(MSP430Operand::CreateIndReg(RegNo, StartLoc, EndLoc));
519 Operands.push_back(MSP430Operand::CreateImm(Val, StartLoc, EndLoc));
570 MSP430Operand &Op = static_cast<MSP430Operand &>(AsmOp);