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 7e9802f348e36bf826d9fe83d0d187478e0e9639 
e1456be61130ea0ea006472990c7d294b8a32c03 --extensions h -- 
clang/lib/Headers/amdgpuintrin.h clang/lib/Headers/gpuintrin.h 
clang/lib/Headers/nvptxintrin.h
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Headers/gpuintrin.h b/clang/lib/Headers/gpuintrin.h
index 78d55eafaa..69e545b523 100644
--- a/clang/lib/Headers/gpuintrin.h
+++ b/clang/lib/Headers/gpuintrin.h
@@ -32,7 +32,6 @@ _Pragma("push_macro(\"bool\")");
 #define bool _Bool
 #endif
 
-
 _Pragma("omp begin declare target device_type(nohost)");
 _Pragma("omp begin declare variant match(device = {kind(gpu)})");
 
@@ -45,15 +44,12 @@ _DEFAULT_FN_ATTRS static __inline__ uint64_t 
__gpu_ballot(uint64_t __lane_mask,
 
 // Copies the value from the first active thread to the rest.
 _DEFAULT_FN_ATTRS static __inline__ uint32_t
-  __gpu_read_first_lane_u32(uint64_t __lane_mask, uint32_t __x);
-
+__gpu_read_first_lane_u32(uint64_t __lane_mask, uint32_t __x);
 
 // Copies the value from the first active thread to the rest.
 _DEFAULT_FN_ATTRS static __inline__ uint64_t
 __gpu_read_first_lane_u64(uint64_t __lane_mask, uint64_t __x);
 
- 
-
 // Returns a bitmask marking all lanes that have the same value of __x.
 _DEFAULT_FN_ATTRS static __inline__ uint64_t
 __gpu_fallback_match_any_u32(uint64_t __lane_mask, uint32_t __x) {
@@ -73,11 +69,9 @@ __gpu_fallback_match_any_u32(uint64_t __lane_mask, uint32_t 
__x) {
   return __match_mask;
 }
 
- 
 _Pragma("omp end declare variant");
 _Pragma("omp end declare target");
 
-
 #if defined(__NVPTX__)
 #include <nvptxintrin.h>
 #elif defined(__AMDGPU__)

``````````

</details>


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

Reply via email to