[llvm] [RISCV] Use sew and vec_policy for Rivos vector instruction operands. (PR #171721)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 10 14:49:52 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-risc-v
Author: Craig Topper (topperc)
<details>
<summary>Changes</summary>
This enables MachineVerifier and MachineIR printing support for these operands.
---
Full diff: https://github.com/llvm/llvm-project/pull/171721.diff
1 Files Affected:
- (modified) llvm/lib/Target/RISCV/RISCVInstrInfoXRivos.td (+2-2)
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoXRivos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoXRivos.td
index 3a6ce3ce1d469..39a7aeda94707 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoXRivos.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoXRivos.td
@@ -156,7 +156,7 @@ foreach m = MxList in {
let BaseInstr = RI_VEXTRACT in
def PseudoRI_VEXTRACT_ # mx :
RISCVVPseudo<(outs GPR:$rd),
- (ins m.vrclass:$rs2, uimm5:$idx, ixlenimm:$sew),
+ (ins m.vrclass:$rs2, uimm5:$idx, sew:$sew),
[]>;
let HasVLOp = 1, BaseInstr = RI_VINSERT, HasVecPolicyOp = 1,
@@ -164,7 +164,7 @@ foreach m = MxList in {
def PseudoRI_VINSERT_ # mx :
RISCVVPseudo<(outs m.vrclass:$rd),
(ins m.vrclass:$rs1, GPR:$rs2, uimm5:$idx, AVL:$vl,
- ixlenimm:$sew, ixlenimm:$policy),
+ sew:$sew, vec_policy:$policy),
[]>;
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/171721
More information about the llvm-commits
mailing list