Lines Matching refs:Inst

61 static DecodeStatus DecodeGPRRegisterClass(MCInst &Inst, uint64_t RegNo,  in DecodeGPRRegisterClass()  argument
74 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeGPRRegisterClass()
78 static DecodeStatus DecodeFPR16RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFPR16RegisterClass() argument
85 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeFPR16RegisterClass()
89 static DecodeStatus DecodeFPR32RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFPR32RegisterClass() argument
96 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeFPR32RegisterClass()
100 static DecodeStatus DecodeFPR32CRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFPR32CRegisterClass() argument
107 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeFPR32CRegisterClass()
111 static DecodeStatus DecodeFPR64RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFPR64RegisterClass() argument
118 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeFPR64RegisterClass()
122 static DecodeStatus DecodeFPR64CRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeFPR64CRegisterClass() argument
129 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeFPR64CRegisterClass()
133 static DecodeStatus DecodeGPRNoX0RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGPRNoX0RegisterClass() argument
140 return DecodeGPRRegisterClass(Inst, RegNo, Address, Decoder); in DecodeGPRNoX0RegisterClass()
143 static DecodeStatus DecodeGPRNoX0X2RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGPRNoX0X2RegisterClass() argument
150 return DecodeGPRNoX0RegisterClass(Inst, RegNo, Address, Decoder); in DecodeGPRNoX0X2RegisterClass()
153 static DecodeStatus DecodeGPRCRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeGPRCRegisterClass() argument
160 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeGPRCRegisterClass()
164 static DecodeStatus DecodeVRRegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVRRegisterClass() argument
171 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeVRRegisterClass()
175 static DecodeStatus DecodeVRM2RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVRM2RegisterClass() argument
191 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeVRM2RegisterClass()
195 static DecodeStatus DecodeVRM4RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVRM4RegisterClass() argument
211 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeVRM4RegisterClass()
215 static DecodeStatus DecodeVRM8RegisterClass(MCInst &Inst, uint64_t RegNo, in DecodeVRM8RegisterClass() argument
231 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeVRM8RegisterClass()
235 static DecodeStatus decodeVMaskReg(MCInst &Inst, uint64_t RegNo, in decodeVMaskReg() argument
247 Inst.addOperand(MCOperand::createReg(Reg)); in decodeVMaskReg()
253 static void addImplySP(MCInst &Inst, int64_t Address, const void *Decoder) { in addImplySP() argument
254 if (Inst.getOpcode() == RISCV::C_LWSP || Inst.getOpcode() == RISCV::C_SWSP || in addImplySP()
255 Inst.getOpcode() == RISCV::C_LDSP || Inst.getOpcode() == RISCV::C_SDSP || in addImplySP()
256 Inst.getOpcode() == RISCV::C_FLWSP || in addImplySP()
257 Inst.getOpcode() == RISCV::C_FSWSP || in addImplySP()
258 Inst.getOpcode() == RISCV::C_FLDSP || in addImplySP()
259 Inst.getOpcode() == RISCV::C_FSDSP || in addImplySP()
260 Inst.getOpcode() == RISCV::C_ADDI4SPN) { in addImplySP()
261 DecodeGPRRegisterClass(Inst, 2, Address, Decoder); in addImplySP()
263 if (Inst.getOpcode() == RISCV::C_ADDI16SP) { in addImplySP()
264 DecodeGPRRegisterClass(Inst, 2, Address, Decoder); in addImplySP()
265 DecodeGPRRegisterClass(Inst, 2, Address, Decoder); in addImplySP()
270 static DecodeStatus decodeUImmOperand(MCInst &Inst, uint64_t Imm, in decodeUImmOperand() argument
273 addImplySP(Inst, Address, Decoder); in decodeUImmOperand()
274 Inst.addOperand(MCOperand::createImm(Imm)); in decodeUImmOperand()
279 static DecodeStatus decodeUImmNonZeroOperand(MCInst &Inst, uint64_t Imm, in decodeUImmNonZeroOperand() argument
284 return decodeUImmOperand<N>(Inst, Imm, Address, Decoder); in decodeUImmNonZeroOperand()
288 static DecodeStatus decodeSImmOperand(MCInst &Inst, uint64_t Imm, in decodeSImmOperand() argument
291 addImplySP(Inst, Address, Decoder); in decodeSImmOperand()
293 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm))); in decodeSImmOperand()
298 static DecodeStatus decodeSImmNonZeroOperand(MCInst &Inst, uint64_t Imm, in decodeSImmNonZeroOperand() argument
303 return decodeSImmOperand<N>(Inst, Imm, Address, Decoder); in decodeSImmNonZeroOperand()
307 static DecodeStatus decodeSImmOperandAndLsl1(MCInst &Inst, uint64_t Imm, in decodeSImmOperandAndLsl1() argument
314 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm << 1))); in decodeSImmOperandAndLsl1()
318 static DecodeStatus decodeCLUIImmOperand(MCInst &Inst, uint64_t Imm, in decodeCLUIImmOperand() argument
325 Inst.addOperand(MCOperand::createImm(Imm)); in decodeCLUIImmOperand()
329 static DecodeStatus decodeFRMArg(MCInst &Inst, uint64_t Imm, in decodeFRMArg() argument
336 Inst.addOperand(MCOperand::createImm(Imm)); in decodeFRMArg()
340 static DecodeStatus decodeRVCInstrSImm(MCInst &Inst, unsigned Insn,
343 static DecodeStatus decodeRVCInstrRdSImm(MCInst &Inst, unsigned Insn,
346 static DecodeStatus decodeRVCInstrRdRs1UImm(MCInst &Inst, unsigned Insn,
350 static DecodeStatus decodeRVCInstrRdRs2(MCInst &Inst, unsigned Insn,
353 static DecodeStatus decodeRVCInstrRdRs1Rs2(MCInst &Inst, unsigned Insn,
359 static DecodeStatus decodeRVCInstrSImm(MCInst &Inst, unsigned Insn, in decodeRVCInstrSImm() argument
363 DecodeStatus Result = decodeSImmOperand<6>(Inst, SImm6, Address, Decoder); in decodeRVCInstrSImm()
369 static DecodeStatus decodeRVCInstrRdSImm(MCInst &Inst, unsigned Insn, in decodeRVCInstrRdSImm() argument
372 DecodeGPRRegisterClass(Inst, 0, Address, Decoder); in decodeRVCInstrRdSImm()
375 DecodeStatus Result = decodeSImmOperand<6>(Inst, SImm6, Address, Decoder); in decodeRVCInstrRdSImm()
381 static DecodeStatus decodeRVCInstrRdRs1UImm(MCInst &Inst, unsigned Insn, in decodeRVCInstrRdRs1UImm() argument
384 DecodeGPRRegisterClass(Inst, 0, Address, Decoder); in decodeRVCInstrRdRs1UImm()
385 Inst.addOperand(Inst.getOperand(0)); in decodeRVCInstrRdRs1UImm()
388 DecodeStatus Result = decodeUImmOperand<6>(Inst, UImm6, Address, Decoder); in decodeRVCInstrRdRs1UImm()
394 static DecodeStatus decodeRVCInstrRdRs2(MCInst &Inst, unsigned Insn, in decodeRVCInstrRdRs2() argument
398 DecodeGPRRegisterClass(Inst, Rd, Address, Decoder); in decodeRVCInstrRdRs2()
399 DecodeGPRRegisterClass(Inst, Rs2, Address, Decoder); in decodeRVCInstrRdRs2()
403 static DecodeStatus decodeRVCInstrRdRs1Rs2(MCInst &Inst, unsigned Insn, in decodeRVCInstrRdRs1Rs2() argument
408 DecodeGPRRegisterClass(Inst, Rd, Address, Decoder); in decodeRVCInstrRdRs1Rs2()
409 Inst.addOperand(Inst.getOperand(0)); in decodeRVCInstrRdRs1Rs2()
410 DecodeGPRRegisterClass(Inst, Rs2, Address, Decoder); in decodeRVCInstrRdRs1Rs2()