Author: Matt Arsenault Date: 2026-03-08T09:26:25Z New Revision: 03347e0834884a6ed795a5eccc0057e705919698
URL: https://github.com/llvm/llvm-project/commit/03347e0834884a6ed795a5eccc0057e705919698 DIFF: https://github.com/llvm/llvm-project/commit/03347e0834884a6ed795a5eccc0057e705919698.diff LOG: libclc: Correctly declare __clc_get_max_sub_group_size as taking no arguments (#185265) Added: Modified: libclc/clc/include/clc/workitem/clc_get_max_sub_group_size.h libclc/clc/lib/amdgcn/workitem/clc_get_max_sub_group_size.cl Removed: ################################################################################ diff --git a/libclc/clc/include/clc/workitem/clc_get_max_sub_group_size.h b/libclc/clc/include/clc/workitem/clc_get_max_sub_group_size.h index c8ea2a1fead12..0e3b67f64b809 100644 --- a/libclc/clc/include/clc/workitem/clc_get_max_sub_group_size.h +++ b/libclc/clc/include/clc/workitem/clc_get_max_sub_group_size.h @@ -11,6 +11,6 @@ #include <clc/internal/clc.h> -_CLC_OVERLOAD _CLC_CONST _CLC_DECL uint __clc_get_max_sub_group_size(); +_CLC_OVERLOAD _CLC_CONST _CLC_DECL uint __clc_get_max_sub_group_size(void); #endif // __CLC_WORKITEM_CLC_GET_MAX_SUB_GROUP_SIZE_H__ diff --git a/libclc/clc/lib/amdgcn/workitem/clc_get_max_sub_group_size.cl b/libclc/clc/lib/amdgcn/workitem/clc_get_max_sub_group_size.cl index 7df7f21d9098f..5eb0166135663 100644 --- a/libclc/clc/lib/amdgcn/workitem/clc_get_max_sub_group_size.cl +++ b/libclc/clc/lib/amdgcn/workitem/clc_get_max_sub_group_size.cl @@ -10,7 +10,7 @@ #include "clc/shared/clc_min.h" #include "clc/workitem/clc_get_max_sub_group_size.h" -_CLC_OVERLOAD _CLC_DEF uint __clc_get_max_sub_group_size() { +_CLC_OVERLOAD _CLC_DEF uint __clc_get_max_sub_group_size(void) { return __clc_min(__builtin_amdgcn_wavefrontsize(), __clc_amdgpu_enqueued_workgroup_size()); } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
