[clang] [Clang] Add float type support to __builtin_reduce_add and __builtin_reduce_multipy (PR #120367)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 18 09:21:05 PST 2024


================
@@ -12338,7 +12338,8 @@ def err_builtin_invalid_arg_type: Error <
   "a vector of integers|"
   "an unsigned integer|"
   "an 'int'|"
-  "a vector of floating points}1 (was %2)">;
+  "a vector of floating points|"
+  "a vector of integers or floating points}1 (was %2)">;
----------------
llvm-beanz wrote:

nit: I assume this is for any non-bool vector. Maybe:
```suggestion
  "a vector of arithmetic element type}1 (was %2)">;
```

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


More information about the cfe-commits mailing list