[clang] Add __builtin_fma16. (PR #97424)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 11 06:04:50 PDT 2024


================
@@ -203,6 +203,12 @@ def FmaF16F128 : Builtin, F16F128MathTemplate {
   let Prototype = "T(T, T, T)";
 }
 
+def Fmaf16 : Builtin, F16F128MathTemplate {
----------------
AaronBallman wrote:

Why is this needed when we have: https://github.com/llvm/llvm-project/blob/a3913a19185e3513a317aab792e85d5c50ef0242/clang/include/clang/Basic/Builtins.td#L201

That seems to already support fp16 for fma?

https://github.com/llvm/llvm-project/pull/97424


More information about the cfe-commits mailing list