[clang] [llvm] [WIP][RISCV] Support for Zvabd fast-track proposal (PR #124239)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 24 08:54:34 PST 2025


================
@@ -575,15 +575,16 @@ multiclass VALU_IV_X<string opcodestr, bits<6> funct6> {
            SchedBinaryMC<"WriteVIALUX", "ReadVIALUV", "ReadVIALUX">;
 }
 
-multiclass VALU_IV_I<string opcodestr, bits<6> funct6> {
-  def I  : VALUVI<funct6, opcodestr # ".vi">,
-           SchedUnaryMC<"WriteVIALUI", "ReadVIALUV">;
+multiclass VALU_IV_I<string opcodestr, bits<6> funct6, Operand optype = simm5> {
+  def I : VALUVI<funct6, opcodestr#".vi", optype>,
+          SchedUnaryMC<"WriteVIALUI", "ReadVIALUV">;
 }
 
-multiclass VALU_IV_V_X_I<string opcodestr, bits<6> funct6>
+multiclass VALU_IV_V_X_I<string opcodestr, bits<6> funct6,
----------------
topperc wrote:

These classes don't appear to be referenced elsewhere in the patch. Why do they need to be chaned?

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


More information about the llvm-commits mailing list