[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX512 mask broadcast intrinsics to be used in constexpr (PR #163475)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 14 17:01:19 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions h,c -- clang/lib/Headers/avx512cdintrin.h clang/lib/Headers/avx512vlcdintrin.h clang/test/CodeGen/X86/avx512cd-builtins.c clang/test/CodeGen/X86/avx512vlcd-builtins.c --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Headers/avx512cdintrin.h b/clang/lib/Headers/avx512cdintrin.h
index b5a45cf67..b16144044 100644
--- a/clang/lib/Headers/avx512cdintrin.h
+++ b/clang/lib/Headers/avx512cdintrin.h
@@ -116,7 +116,7 @@ _mm512_broadcastmb_epi64(__mmask8 __A) {
static __inline__ __m512i __DEFAULT_FN_ATTRS_CONSTEXPR
_mm512_broadcastmw_epi32(__mmask16 __A) {
- return (__m512i) _mm512_set1_epi32((int) __A);
+ return (__m512i)_mm512_set1_epi32((int)__A);
}
#undef __DEFAULT_FN_ATTRS
``````````
</details>
https://github.com/llvm/llvm-project/pull/163475
More information about the cfe-commits
mailing list