[clang] [CIR] X86 vector fcmp-sse vector builtins (PR #167125)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 10 10:09:50 PST 2025


================
@@ -27,13 +27,35 @@ namespace clang::CIRGen {
 
 class CIRGenBuilderTy : public cir::CIRBaseBuilderTy {
   const CIRGenTypeCache &typeCache;
+  bool IsFPConstrained = false;
   llvm::StringMap<unsigned> recordNames;
   llvm::StringMap<unsigned> globalsVersioning;
 
 public:
   CIRGenBuilderTy(mlir::MLIRContext &mlirContext, const CIRGenTypeCache &tc)
       : CIRBaseBuilderTy(mlirContext), typeCache(tc) {}
 
+  //
+  // 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:

+1

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


More information about the cfe-commits mailing list