[clang] [CIR][CodeGen] Upstream support for FP environments and RAII options (PR #179121)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 3 09:15:28 PST 2026


================
@@ -106,6 +111,57 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy {
     return baseName + "." + std::to_string(recordNames[baseName]++);
   }
 
+  //
+  // Floating point specific helpers
+  // -------------------------------
+  //
+
+  /// Enable/Disable use of constrained floating point math. When enabled the
+  /// CreateF<op>() calls instead create constrained floating point intrinsic
+  /// calls. Fast math flags are unaffected by this setting.
+  void setIsFPConstrained(bool IsCon) {
----------------
andykaylor wrote:

```suggestion
  void setIsFPConstrained(bool isCon) {
```


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


More information about the cfe-commits mailing list