[clang] [clang][AMDGPU] Clean-up handling of named barrier type (PR #207687)
Shilei Tian via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 8 07:26:11 PDT 2026
================
@@ -3,6 +3,30 @@
// RUN: %clang_cc1 -verify -cl-std=CL2.0 -triple amdgcn-amd-amdhsa -Wno-unused-value %s
void foo() {
+ typedef __amdgpu_named_workgroup_barrier_t SugaredArray[2];
+
+ struct TestSimple {
+ __amdgpu_named_workgroup_barrier_t x;
+ };
+
+ struct TestArray {
+ __amdgpu_named_workgroup_barrier_t y[2];
+ };
+
+ struct TestSugared {
+ SugaredArray z[2];
+ };
+
+ struct GoodWrapper {
+ __amdgpu_named_workgroup_barrier_t x;
----------------
shiltian wrote:
I'm not really sure if this is really helpful, and it doesn't have a clear semantic to me. What is the point of having it?
https://github.com/llvm/llvm-project/pull/207687
More information about the cfe-commits
mailing list