[Mlir-commits] [clang] [flang] [mlir] [flang, acc] Support -ffp-maxmin-behavior option in lowering. (PR #184730)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Mar 5 05:38:47 PST 2026


================
@@ -373,6 +378,7 @@ class SemanticsContext {
   ScopeIndex scopeIndex_;
   parser::Messages messages_;
   std::size_t maxErrors_{0};
+  common::FPMaxminBehavior fpMaxminBehavior_{common::FPMaxminBehavior::Legacy};
   evaluate::FoldingContext foldingContext_;
----------------
jeanPerier wrote:

Why not using the one of the FoldingContext?
It seems having a different field in both opens up the door for weird inconsistencies.

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


More information about the Mlir-commits mailing list