diff options
author | Serge Pavlov <sepavloff@gmail.com> | 2023-11-30 17:33:35 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 17:33:35 +0700 |
commit | e620035a28d5d957623aa7b4aeda35ab5130e2c9 (patch) | |
tree | f3b497edd6a8e06b6070af2dfb65b8ebe52cd175 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 0817efc4767bbfea282ad82d6517454288a1d59b (diff) | |
download | llvm-e620035a28d5d957623aa7b4aeda35ab5130e2c9.zip llvm-e620035a28d5d957623aa7b4aeda35ab5130e2c9.tar.gz llvm-e620035a28d5d957623aa7b4aeda35ab5130e2c9.tar.bz2 |
[clang] Use current rounding mode for float inc/dec (#73770)
Increment and decrement are equivalent to adding or subtracting 1. For
the floating-point values these operations depend on the current
rounding mode. Teach constant evaluator to perform ++ and -- according
to the current floating-point environment.
Pull request: https://github.com/llvm/llvm-project/pull/73770
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions