[clang] [llvm] [HLSL][DirectX][SPIRV] Implement the `fma` API (PR #185304)

via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 11 06:47:13 PDT 2026


================
@@ -2192,9 +2195,8 @@ checkMathBuiltinElementType(Sema &S, SourceLocation Loc, QualType ArgTy,
     break;
   case Sema::EltwiseBuiltinArgTyRestriction::FloatTy:
     if (!EltTy->isRealFloatingType()) {
-      return S.Diag(Loc, diag::err_builtin_invalid_arg_type)
-             << ArgOrdinal << /* scalar or vector */ 5 << /* no int */ 0
-             << /* floating-point */ 1 << ArgTy;
+      return S.Diag(Loc, diag::err_builtin_requires_any_fp_type)
----------------
NeKon69 wrote:

I'm considering also deleting `err_builtin_requires_double_type` and just adding more options to `err_builtin_invalid_arg_type` since that would make codebase cleaner imo.

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


More information about the cfe-commits mailing list