[llvm-branch-commits] [clang] [llvm] [mlir] [RFC][AMDGPU] Add BARRIER address space (PR #195613)

Pierre van Houtryve via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 12 05:07:31 PDT 2026


================
@@ -1139,6 +1140,23 @@ supported for the ``amdgcn`` target.
   a buffer strided pointer, this means that the base pointer is ``align(4)``, that
   the offset is a multiple of 4 bytes, and that the stride is a multiple of 4.
 
+**Barrier**
+  This address space represents barrier IDs (introduced in GFX12) as addresses.
+  It does not map directly to any addressable memory, thus pointers into this address space:
+
+  * Never alias with any other pointers outside this address space.
+  * Cannot be dereferenced.
----------------
Pierre-vh wrote:

Added IR test

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


More information about the llvm-branch-commits mailing list