[llvm] [RISCV] TableGen-erate RISC-V SDNodes (PR #138381)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 11:47:45 PDT 2025
================
@@ -129,13 +131,16 @@ def RI_VEXTRACT : CustomRivosXVI<0b010111, OPMVV, (outs GPR:$rd),
"ri.vextract.x.v", "$rd, $vs2, $imm">;
}
-
-def ri_vextract : SDNode<"RISCVISD::RI_VEXTRACT",
+// RI_VEXTRACT matches the semantics of ri.vextract.x.v. The result is always
+// XLenVT sign extended from the vector element size. VEXTRACT does *not*
+// have a VL operand.
+def ri_vextract : RVSDNode<"RI_VEXTRACT",
SDTypeProfile<1, 2, [SDTCisInt<0>, SDTCisVec<1>,
----------------
lenary wrote:
Done
https://github.com/llvm/llvm-project/pull/138381
More information about the llvm-commits
mailing list