[flang-commits] [flang] [mlir] [RFC][mlir] Conditional support for fast-math attributes. (PR #125620)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Tue Feb 4 12:26:45 PST 2025
================
@@ -1211,6 +1211,9 @@ def Arith_ExtFOp : Arith_FToFCastOp<"extf", [DeclareOpInterfaceMethods<ArithFast
The destination type must to be strictly wider than the source type.
When operating on vectors, casts elementwise.
}];
+ let extraClassDeclaration = [{
+ bool isApplicable() { return true; }
----------------
vzakhari wrote:
This is a leftover. There is no need to override `isArithFastMathApplicable` for `arith.extf`, because it has a floating point result.
https://github.com/llvm/llvm-project/pull/125620
More information about the flang-commits
mailing list