bool isDReg() const;
unsigned getReg() const override;
void addRegOperands(MCInst &Inst, unsigned N) const;
- void addARegOperands(MCInst &Inst, unsigned N) const {
- addRegOperands(Inst, N);
- }
- void addDRegOperands(MCInst &Inst, unsigned N) const {
- addRegOperands(Inst, N);
- }
static std::unique_ptr<M68kOperand> createMemOp(M68kMemOp MemOp, SMLoc Start,
SMLoc End);
// both ADD32dd and ADD32dr has {MCK_RegClass, MCK_RegClass} for
// their operands, which makes AsmParser unable to pick the correct
// one in a deterministic way.
-def MxARegClass : MxOpClass<"AReg">;
-def MxDRegClass : MxOpClass<"DReg">;
+let RenderMethod = "addRegOperands", SuperClasses = [MxRegClass] in {
+ def MxARegClass : MxOpClass<"AReg">;
+ def MxDRegClass : MxOpClass<"DReg">;
+}
class MxOperand<ValueType vt, MxSize size, string letter, RegisterClass rc, dag pat = (null_frag)> {
ValueType VT = vt;