================
@@ -406,55 +406,55 @@ def LogF16F128 : Builtin, F16F128MathTemplate {
def LrintF128 : Builtin {
let Spellings = ["__builtin_lrintf128"];
- let Attributes = [FunctionWithBuiltinPrefix, NoThrow,
ConstIgnoringErrnoAndExceptions];
+ let Attributes = [FunctionWithBuiltinPrefix, NoThrow,
ConstIgnoringErrnoAndExceptions, Constexpr];
let Prototype = "long int(__float128)";
}
def LroundF128 : Builtin {
let Spellings = ["__builtin_lroundf128"];
- let Attributes = [FunctionWithBuiltinPrefix, NoThrow,
ConstIgnoringErrnoAndExceptions];
+ let Attributes = [FunctionWithBuiltinPrefix, NoThrow,
ConstIgnoringErrnoAndExceptions, Constexpr];
let Prototype = "long int(__float128)";
}
-def NearbyintF128 : Builtin {
- let Spellings = ["__builtin_nearbyintf128"];
- let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const];
- let Prototype = "__float128(__float128)";
+def NearbyintF16F128 : Builtin, F16F128MathTemplate {
----------------
hubert-reinterpretcast wrote:
Is this a drive-by fix? Can we split this out?
https://github.com/llvm/llvm-project/pull/194327
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits