[llvm] [VP][RISCV] Introduce vp.lrint/llrint and RISC-V support. (PR #82627)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 07:49:31 PST 2024


================
@@ -5690,6 +5691,9 @@ static unsigned getRISCVVLOp(SDValue Op) {
   switch (Op.getOpcode()) {
   default:
     llvm_unreachable("don't have RISC-V specified VL op for this SDNode");
+  case ISD::VP_LRINT:
+  case ISD::VP_LLRINT:
+    return RISCVISD::VFCVT_X_F_VL;
----------------
lukel97 wrote:

Minor nit, should we move this closer to the bottom with the other floating point VP ops

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


More information about the llvm-commits mailing list