[Mlir-commits] [mlir] [mlir][arith] Clarify the meaning of fastmath flags (PR #217087)
Jakub Kuderski
llvmlistbot at llvm.org
Tue Aug 18 10:33:13 PDT 2026
================
@@ -139,6 +139,12 @@ def FastMathFlags : I32BitEnumAttr<
let cppNamespace = "::mlir::arith";
let genSpecializedAttr = 0;
let printBitEnumPrimaryGroups = 1;
+ let description = [{
+ For the `reassoc`, `nnan`, `ninf`, `nsz`, `arcp`, `contract`, `afn`, `fast`
+ flags, the arith dialect follows the same semantics as LLVM IR. Refer to the
+ [LLVM Language Reference](https://llvm.org/docs/LangRef.html#fast-math-flags)
----------------
kuhar wrote:
We should define these on our own instead of referencing llvm; arith should be self-contained.
https://github.com/llvm/llvm-project/pull/217087
More information about the Mlir-commits
mailing list