[llvm] AMDGPU: Preliminary documentation for named barriers (PR #165502)

Nicolai Hähnle via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 29 08:47:24 PDT 2025


================
@@ -1179,6 +1179,53 @@ is conservatively correct for OpenCL.
                              other operations within the same address space.
      ======================= ===================================================
 
+Target Types
+------------
+
+The AMDGPU backend implements some target extension types.
+
+.. _amdgpu-types-named-barriers:
+
+Named Barriers
+~~~~~~~~~~~~~~
+
+Named barriers are represented as memory objects of type
+``target("amdgcn.named.barrier", 0)``. They are allocated as global variables
----------------
nhaehnle wrote:

I think we need to be consistent about whether internal implementation details are mentioned here or not.

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


More information about the llvm-commits mailing list