[llvm] [RISCV][GISel] Add support for G_IS_FPCLASS in F and D extensions (PR #72000)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 13 08:25:36 PST 2023


================
@@ -270,6 +279,17 @@ bool RISCVLegalizerInfo::legalizeCustom(LegalizerHelper &Helper,
     return Helper.lower(MI, 0, /* Unused hint type */ LLT()) ==
            LegalizerHelper::Legalized;
   }
+  case TargetOpcode::G_IS_FPCLASS: {
+    // Turn LLVM IR's floating point classes to that in RISCV,
----------------
mshockwave wrote:

> I think we should move the translation to RISC-V encoding to instruction selection.

Will do!

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


More information about the llvm-commits mailing list