[flang-commits] [clang] [flang] [llvm] [C++23] [CLANG] Adding C++23 constexpr math functions: fmin, fmax and frexp. (PR #88978)
Hubert Tong via flang-commits
flang-commits at lists.llvm.org
Mon Jul 29 19:47:33 PDT 2024
================
@@ -253,8 +253,10 @@ def FmodF16F128 : F16F128MathTemplate, Builtin {
def FrexpF16F128 : F16F128MathTemplate, Builtin {
let Spellings = ["__builtin_frexp"];
- let Attributes = [FunctionWithBuiltinPrefix, NoThrow];
+ let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, ConstexprSince];
----------------
hubert-reinterpretcast wrote:
The `frexp` family of functions cannot be marked `const` because they modify the object pointed to by the pointer parameter.
https://github.com/llvm/llvm-project/pull/88978
More information about the flang-commits
mailing list