[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 20 23:53:07 PDT 2024
================
@@ -215,6 +215,18 @@ def FminF16F128 : Builtin, F16F128MathTemplate {
let Prototype = "T(T, T)";
}
+def FmaximumNumF16F128 : Builtin, F16F128MathTemplate {
+ let Spellings = ["__builtin_fmaximum_num"];
+ let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr];
+ let Prototype = "T(T, T)";
+}
+
+def FminimumNumF16F128 : Builtin, F16F128MathTemplate {
+ let Spellings = ["__builtin_fminimum_num"];
+ let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr];
----------------
tbaederr wrote:
Where's the constexpr implementation?
https://github.com/llvm/llvm-project/pull/96281
More information about the cfe-commits
mailing list