[clang] [libc] [Clang] Implement resource directory headers for common GPU intrinsics (PR #110179)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 11 06:08:48 PST 2024


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 a9cd941f392dbf99ddfcde9721bd5c485823bdf0 35f20bbe5ce45194dff68c52018cb3cf04b533f7 --extensions h,c -- clang/lib/Headers/amdgpuintrin.h clang/lib/Headers/gpuintrin.h clang/lib/Headers/nvptxintrin.h clang/test/Headers/gpuintrin.c clang/test/Headers/gpuintrin_lang.c
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Headers/nvptxintrin.h b/clang/lib/Headers/nvptxintrin.h
index e66c13bb1c..c585f71f60 100644
--- a/clang/lib/Headers/nvptxintrin.h
+++ b/clang/lib/Headers/nvptxintrin.h
@@ -191,7 +191,7 @@ _DEFAULT_FN_ATTRS [[noreturn]] static __inline__ void __gpu_exit(void) {
 // Suspend the thread briefly to assist the scheduler during busy loops.
 _DEFAULT_FN_ATTRS static __inline__ void __gpu_thread_suspend(void) {
   if (__nvvm_reflect("__CUDA_ARCH") >= 700)
-    LIBC_INLINE_ASM("nanosleep.u32 64;" :: : "memory");
+    LIBC_INLINE_ASM("nanosleep.u32 64;" ::: "memory");
 }
 
 _Pragma("omp end declare variant");

``````````

</details>


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


More information about the cfe-commits mailing list