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 HEAD~1 HEAD --extensions cl -- 
libclc/clc/lib/amdgcn/math/clc_rsqrt.cl
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libclc/clc/lib/amdgcn/math/clc_rsqrt.cl 
b/libclc/clc/lib/amdgcn/math/clc_rsqrt.cl
index 4a9ae94b7..69164fff7 100644
--- a/libclc/clc/lib/amdgcn/math/clc_rsqrt.cl
+++ b/libclc/clc/lib/amdgcn/math/clc_rsqrt.cl
@@ -10,13 +10,17 @@
 
 float __ocml_rsqrt_f32(float);
 
-_CLC_OVERLOAD _CLC_DEF float __clc_rsqrt(float x) { return 
__ocml_rsqrt_f32(x); }
+_CLC_OVERLOAD _CLC_DEF float __clc_rsqrt(float x) {
+  return __ocml_rsqrt_f32(x);
+}
 
 #ifdef cl_khr_fp64
 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
 double __ocml_rsqrt_f64(double);
 
-_CLC_OVERLOAD _CLC_DEF double __clc_rsqrt(double x) { return 
__ocml_rsqrt_f64(x); }
+_CLC_OVERLOAD _CLC_DEF double __clc_rsqrt(double x) {
+  return __ocml_rsqrt_f64(x);
+}
 
 #endif
 
@@ -24,9 +28,7 @@ _CLC_OVERLOAD _CLC_DEF double __clc_rsqrt(double x) { return 
__ocml_rsqrt_f64(x)
 #pragma OPENCL EXTENSION cl_khr_fp16 : enable
 half __ocml_rsqrt_f16(half);
 
-_CLC_OVERLOAD _CLC_DEF half __clc_rsqrt(half x) {
-  return __ocml_rsqrt_f16(x);
-}
+_CLC_OVERLOAD _CLC_DEF half __clc_rsqrt(half x) { return __ocml_rsqrt_f16(x); }
 
 #endif
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/152436
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to