[llvm] [SelectionDAG][RISCV] Operations with static rounding (PR #100999)

Serge Pavlov via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 1 04:48:32 PDT 2024


================
@@ -354,6 +354,16 @@ class TargetLoweringBase {
     return IsStrictFPEnabled;
   }
 
+  /// Returns true if the target supports static rounding mode for the given
+  /// instruction.
+  virtual bool isStaticRoundingSupportedFor(const Instruction &I) const {
+    return false;
+  }
----------------
spavloff wrote:

This callback is used by target-neutral SelectionDAGBuilder to decide how to lower a gived constrained intrinsic call, to STRICT_FADD, or to FADD_ROUND.

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


More information about the llvm-commits mailing list