[llvm] [RISCV] Separate VMConstraint from RVVConstraint. NFC (PR #182089)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 19 22:03:28 PST 2026


================
@@ -203,9 +195,13 @@ class RVInstCommon<dag outs, dag ins, string opcodestr, string argstr,
 
   let TSFlags{4-0} = Format.Value;
 
-  // Defaults
+  // Indicates when Vd and Vs1/Vs2 cannot be the same register.
   RISCVVConstraint RVVConstraint = NoConstraint;
-  let TSFlags{7-5} = RVVConstraint.Value;
+  let TSFlags{6-5} = RVVConstraint.Value;
+
+  // Indicates that the destination and the VM operand cannot both be V0.
+  bit VMConstraint = 0;
+  let TSFlags{7} = VMConstraint;
----------------
topperc wrote:

The field is already split into 3 separate flags on the C++ side.

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


More information about the llvm-commits mailing list