[clang] [AVX10.2] Fix wrong intrinsic names after rename (PR #126390)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 8 16:37:02 PST 2025


phoebewang wrote:

> ⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️
> 
> You can test this locally with the following command:
> View the diff from clang-format here.
> ```diff
> diff --git a/clang/lib/Headers/avx10_2convertintrin.h b/clang/lib/Headers/avx10_2convertintrin.h
> index cbc02e37b0..c419323910 100644
> --- a/clang/lib/Headers/avx10_2convertintrin.h
> +++ b/clang/lib/Headers/avx10_2convertintrin.h
> @@ -386,15 +386,14 @@ static __inline__ __m128h __DEFAULT_FN_ATTRS128 _mm_cvthf8_ph(__m128i __A) {
>        (__v16qi)__A, (__v8hf)(__m128h)_mm_undefined_ph(), (__mmask8)-1);
>  }
>  
> -static __inline__ __m128h __DEFAULT_FN_ATTRS128 _mm_mask_cvthf8_ph(__m128h __W,
> -                                                                __mmask8 __U,
> -                                                                __m128i __A) {
> +static __inline__ __m128h __DEFAULT_FN_ATTRS128
> +_mm_mask_cvthf8_ph(__m128h __W, __mmask8 __U, __m128i __A) {
>    return (__m128h)__builtin_ia32_vcvthf8_2ph128_mask(
>        (__v16qi)__A, (__v8hf)(__m128h)__W, (__mmask8)__U);
>  }
>  
> -static __inline__ __m128h __DEFAULT_FN_ATTRS128 _mm_maskz_cvthf8_ph(__mmask8 __U,
> -                                                                 __m128i __A) {
> +static __inline__ __m128h __DEFAULT_FN_ATTRS128
> +_mm_maskz_cvthf8_ph(__mmask8 __U, __m128i __A) {
>    return (__m128h)__builtin_ia32_vcvthf8_2ph128_mask(
>        (__v16qi)__A, (__v8hf)(__m128h)_mm_setzero_ph(), (__mmask8)__U);
>  }
> ```

Probably need to fix the format. You may apply the diff directly.

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


More information about the cfe-commits mailing list