[llvm] [RISCV][MC] Add support for hardcode encoding of .insn directive (PR #98030)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 07:40:12 PDT 2024


================
@@ -1120,6 +1122,12 @@ def InsnS : DirectiveInsnS<(outs), (ins uimm7_opcode:$opcode, uimm3:$funct3,
                                         AnyReg:$rs2, AnyReg:$rs1,
                                         simm12:$imm12),
                            "$opcode, $funct3, $rs2, ${imm12}(${rs1})">;
+def Insn32 : RVInst<(outs), (ins uimm32:$value), "", "", [], InstFormatOther> {
----------------
dtcxzyw wrote:

Does `InstFormat` matter here?




https://github.com/llvm/llvm-project/pull/98030


More information about the llvm-commits mailing list