[clang] [clang] constexpr built-in reduce min/max function. (PR #120866)

2024-12-22 Thread via cfe-commits
https://github.com/c8ef closed https://github.com/llvm/llvm-project/pull/120866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] constexpr built-in reduce min/max function. (PR #120866)

2024-12-22 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM - cheers https://github.com/llvm/llvm-project/pull/120866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] constexpr built-in reduce min/max function. (PR #120866)

2024-12-22 Thread via cfe-commits
@@ -838,3 +838,18 @@ static_assert(__builtin_elementwise_sub_sat((1 << 31), 42) == (1 << 31)); static_assert(__builtin_elementwise_sub_sat(0U, 1U) == 0U); static_assert(__builtin_bit_cast(unsigned, __builtin_elementwise_sub_sat((vector4char){5, 4, 3, 2}, (vector4char){1, 1, 1,

[clang] [clang] constexpr built-in reduce min/max function. (PR #120866)

2024-12-22 Thread via cfe-commits
https://github.com/c8ef updated https://github.com/llvm/llvm-project/pull/120866 >From 4e16d47641bd02203753752636f1fe90182552e9 Mon Sep 17 00:00:00 2001 From: c8ef Date: Sun, 22 Dec 2024 11:08:43 +0800 Subject: [PATCH 1/2] constexpr reduce min/max --- clang/docs/LanguageExtensions.rst

[clang] [clang] constexpr built-in reduce min/max function. (PR #120866)

2024-12-22 Thread Simon Pilgrim via cfe-commits
@@ -838,3 +838,18 @@ static_assert(__builtin_elementwise_sub_sat((1 << 31), 42) == (1 << 31)); static_assert(__builtin_elementwise_sub_sat(0U, 1U) == 0U); static_assert(__builtin_bit_cast(unsigned, __builtin_elementwise_sub_sat((vector4char){5, 4, 3, 2}, (vector4char){1, 1, 1,

[clang] [clang] constexpr built-in reduce min/max function. (PR #120866)

2024-12-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (c8ef) Changes Part of #51787. This patch adds constexpr support for the built-in reduce min/max function. --- Full diff: https://github.com/llvm/llvm-project/pull/120866.diff 5 Files Affected: - (modified) clang/docs/LanguageExte

[clang] [clang] constexpr built-in reduce min/max function. (PR #120866)

2024-12-21 Thread via cfe-commits
https://github.com/c8ef ready_for_review https://github.com/llvm/llvm-project/pull/120866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] constexpr built-in reduce min/max function. (PR #120866)

2024-12-21 Thread via cfe-commits
https://github.com/c8ef created https://github.com/llvm/llvm-project/pull/120866 Part of #51787. This patch adds constexpr support for the built-in reduce min/max function. >From 4e16d47641bd02203753752636f1fe90182552e9 Mon Sep 17 00:00:00 2001 From: c8ef Date: Sun, 22 Dec 2024 11:08:43 +0800