[llvm] [RISCV][GISel] Add support for G_IS_FPCLASS in F and D extensions (PR #72000)
    Craig Topper via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sun Nov 12 22:10:10 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,
----------------
topperc wrote:
I think we should move the translation to RISC-V encoding to instruction selection.
https://github.com/llvm/llvm-project/pull/72000
    
    
More information about the llvm-commits
mailing list