[all-commits] [llvm/llvm-project] 0a8ded: [CIR] Attach FenvAttr when strictfp mode is in eff...
Andy Kaylor via All-commits
all-commits at lists.llvm.org
Mon Aug 3 12:58:36 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0a8ded578e787a3296ed9895cad78293e92eeef1
https://github.com/llvm/llvm-project/commit/0a8ded578e787a3296ed9895cad78293e92eeef1
Author: Andy Kaylor <akaylor at nvidia.com>
Date: 2026-08-03 (Mon, 03 Aug 2026)
Changed paths:
M clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h
M clang/include/clang/CIR/Dialect/IR/CIRDialect.td
M clang/include/clang/CIR/Dialect/IR/CIROps.td
M clang/lib/CIR/CodeGen/CIRGenBuilder.h
M clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp
M clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
M clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
M clang/lib/CIR/CodeGen/CIRGenFunction.cpp
M clang/lib/CIR/CodeGen/CIRGenFunction.h
M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
A clang/test/CIR/CodeGen/pragma-fenv_access.c
M clang/test/CIR/Lowering/fenv.cir
A clang/test/CIR/Lowering/strictfp.cir
Log Message:
-----------
[CIR] Attach FenvAttr when strictfp mode is in effect (#213368)
This change adds tracking of floating-point constraints via the
CIRGenFPOptionsRAII object, deriving the state from the FP features in
effect tracking in the Clang AST. When we are about to generate an
operation that may require floating point constraints, a
CIRGenFPOptionsRAII object is used to get the effective floating-point
state from the expression for which we are generating the operations.
This object in turn sets the floating-point state of the CIRGenBuilder
which uses these settings to determine whether a cir::FenvAttr should be
attached to generated objects and, if so, what its state should be.
This does not cover complex operations, AArch64 builtins, or global
constructors. Those will be updated in follow-up changes.
Assisted-by: Cursor / various models
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list