[all-commits] [llvm/llvm-project] 78e32b: [clang][AMDGPU] Clean-up handling of named barrier...
Pierre van Houtryve via All-commits
all-commits at lists.llvm.org
Wed Jul 15 05:06:57 PDT 2026
Branch: refs/heads/users/pierre-vh/add-hipbarrier-langas
Home: https://github.com/llvm/llvm-project
Commit: 78e32b692c5cbb4b6a20abf2970e378fe47a5e48
https://github.com/llvm/llvm-project/commit/78e32b692c5cbb4b6a20abf2970e378fe47a5e48
Author: pvanhout <pierre.vanhoutryve at amd.com>
Date: 2026-07-15 (Wed, 15 Jul 2026)
Changed paths:
M clang/include/clang/AST/TypeBase.h
M clang/include/clang/Basic/AddressSpaces.h
M clang/include/clang/Basic/Attr.td
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/include/clang/Basic/TargetInfo.h
M clang/include/clang/Sema/SemaAMDGPU.h
M clang/lib/AST/ASTContext.cpp
M clang/lib/AST/Type.cpp
M clang/lib/AST/TypePrinter.cpp
M clang/lib/Basic/TargetInfo.cpp
M clang/lib/Basic/Targets/AArch64.h
M clang/lib/Basic/Targets/AMDGPU.cpp
M clang/lib/Basic/Targets/DirectX.h
M clang/lib/Basic/Targets/NVPTX.h
M clang/lib/Basic/Targets/SPIR.h
M clang/lib/Basic/Targets/SystemZ.h
M clang/lib/Basic/Targets/TCE.h
M clang/lib/Basic/Targets/WebAssembly.h
M clang/lib/Basic/Targets/X86.h
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/lib/Sema/Sema.cpp
M clang/lib/Sema/SemaAMDGPU.cpp
M clang/lib/Sema/SemaDecl.cpp
M clang/test/CodeGenHIP/amdgpu-barrier-type.hip
M clang/test/SemaCXX/amdgpu-barrier.cpp
M clang/test/SemaHIP/amdgpu-barrier.hip
M clang/test/SemaOpenCL/amdgpu-barrier.cl
M clang/test/SemaTemplate/address_space-dependent.cpp
Log Message:
-----------
[clang][AMDGPU] Clean-up handling of named barrier type
- Allow the type in struct/classes in very limited circumstances. The goal is to enable creating trivial wrappers around the named barrier variable, but ensure we can't get into situations where things would get awkward. Currently this means we only allow the named barrier in RecordDecls with exactly 1 field, that have no base class, and are not inherited.
- Use a `amdgpu_barrier` LangAS for this type that currently maps to the local AS. This allows easy switching to the barrier AS in a future patch.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list