[llvm-branch-commits] [libclc] libclc: Add sub_group_broadcast (PR #184846)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Mar 6 00:03:08 PST 2026
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 inc,cl,h -- libclc/clc/include/clc/subgroup/clc_subgroup_broadcast.inc libclc/clc/include/clc/subgroup/sub_group_broadcast.h libclc/clc/lib/amdgcn/subgroup/sub_group_broadcast.cl libclc/opencl/lib/generic/subgroup/sub_group_broadcast.cl libclc/opencl/lib/generic/subgroup/sub_group_broadcast.inc --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/libclc/clc/lib/amdgcn/subgroup/sub_group_broadcast.cl b/libclc/clc/lib/amdgcn/subgroup/sub_group_broadcast.cl
index a14a34214..6142c7a98 100644
--- a/libclc/clc/lib/amdgcn/subgroup/sub_group_broadcast.cl
+++ b/libclc/clc/lib/amdgcn/subgroup/sub_group_broadcast.cl
@@ -8,7 +8,6 @@
#include "clc/subgroup/sub_group_broadcast.h"
-
_CLC_DEF _CLC_OVERLOAD _CLC_CONST char
__clc_sub_group_broadcast(char x, uint sub_group_local_id) {
uint j = __builtin_amdgcn_readfirstlane(sub_group_local_id);
``````````
</details>
https://github.com/llvm/llvm-project/pull/184846
More information about the llvm-branch-commits
mailing list