[clang] [Clang] Add elementwise maximumnum/minimumnum builtin functions (PR #149775)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 21 06:36:10 PDT 2025
================
@@ -848,6 +848,14 @@ of different sizes and signs is forbidden in binary and ternary builtins.
semantics, see `LangRef
<http://llvm.org/docs/LangRef.html#llvm-min-intrinsics-comparation>`_
for the comparison.
+ T __builtin_elementwise_maximumnum(T x, T y) return x or y, whichever is larger. Follows IEEE 754-2019 floating point types
+ semantics, see `LangRef
+ <http://llvm.org/docs/LangRef.html#llvm-min-intrinsics-comparation>`_
+ for the comparison.
+ T __builtin_elementwise_minimumnum(T x, T y) return x or y, whichever is smaller. Follows IEEE 754-2019 floating point types
----------------
AaronBallman wrote:
ugh, I see now, these are the elementwise variants of the existing C math library functions. Carry on. :-D
https://github.com/llvm/llvm-project/pull/149775
More information about the cfe-commits
mailing list