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 -- 
clang/lib/Headers/__clang_spirv_libdevice_declares.h 
clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h 
--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/__clang_spirv_libdevice_declares.h 
b/clang/lib/Headers/__clang_spirv_libdevice_declares.h
index 4cdae5f96..950403896 100644
--- a/clang/lib/Headers/__clang_spirv_libdevice_declares.h
+++ b/clang/lib/Headers/__clang_spirv_libdevice_declares.h
@@ -59,8 +59,8 @@ _CLC_OVERLOAD _CLC_CONSTFN bool __spirv_IsInf(float);
 _CLC_OVERLOAD _CLC_CONSTFN bool __spirv_IsInf(double);
 _CLC_OVERLOAD _CLC_CONSTFN bool __spirv_IsFinite(float);
 _CLC_OVERLOAD _CLC_CONSTFN bool __spirv_IsFinite(double);
-_CLC_OVERLOAD _CLC_CONSTFN float __spirv_ocl_copysign(float,float);
-_CLC_OVERLOAD _CLC_CONSTFN double __spirv_ocl_copysign(double,double);
+_CLC_OVERLOAD _CLC_CONSTFN float __spirv_ocl_copysign(float, float);
+_CLC_OVERLOAD _CLC_CONSTFN double __spirv_ocl_copysign(double, double);
 _CLC_OVERLOAD _CLC_CONSTFN float __spirv_ocl_ldexp(float, int);
 _CLC_OVERLOAD _CLC_CONSTFN double __spirv_ocl_ldexp(double, int);
 _CLC_OVERLOAD _CLC_CONSTFN float __spirv_ocl_fabs(float);
@@ -79,8 +79,8 @@ _CLC_OVERLOAD _CLC_CONSTFN float __spirv_ocl_fma(float, 
float, float);
 _CLC_OVERLOAD _CLC_CONSTFN double __spirv_ocl_fma(double, double, double);
 _CLC_OVERLOAD _CLC_CONSTFN float __spirv_ocl_fmod(float, float);
 _CLC_OVERLOAD _CLC_CONSTFN double __spirv_ocl_fmod(double, double);
-_CLC_OVERLOAD _CLC_CONSTFN float __spirv_ocl_frexp(float,int *);
-_CLC_OVERLOAD _CLC_CONSTFN double __spirv_ocl_frexp(double,int *);
+_CLC_OVERLOAD _CLC_CONSTFN float __spirv_ocl_frexp(float, int *);
+_CLC_OVERLOAD _CLC_CONSTFN double __spirv_ocl_frexp(double, int *);
 _CLC_OVERLOAD _CLC_CONSTFN float __spirv_ocl_hypot(float, float);
 _CLC_OVERLOAD _CLC_CONSTFN double __spirv_ocl_hypot(double, double);
 _CLC_OVERLOAD _CLC_CONSTFN int __spirv_ocl_ilogb(float);
diff --git 
a/clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h 
b/clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h
index 63a71525b..2e9999250 100644
--- a/clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h
+++ b/clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h
@@ -57,7 +57,7 @@ extern "C" {
 
 #ifdef __SPIRV__
 #pragma omp begin declare variant match(                                       
\
-    device = {arch(spirv64)}, implementation = {extension(match_any)})
+        device = {arch(spirv64)}, implementation = {extension(match_any)})
 
 #define __OPENMP_SPIRV__
 
@@ -69,7 +69,6 @@ extern "C" {
 #pragma omp end declare variant
 #endif
 
-
 #ifdef __cplusplus
 } // extern "C"
 #endif

``````````

</details>


https://github.com/llvm/llvm-project/pull/182215
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to