[llvm] 38e0639 - [NFC][AMDGPU] Reserve address space 16 (#195946)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 16:53:39 PDT 2026


Author: Shilei Tian
Date: 2026-05-05T23:53:34Z
New Revision: 38e0639a8e0280d0fc2572816a1df1c87434b85c

URL: https://github.com/llvm/llvm-project/commit/38e0639a8e0280d0fc2572816a1df1c87434b85c
DIFF: https://github.com/llvm/llvm-project/commit/38e0639a8e0280d0fc2572816a1df1c87434b85c.diff

LOG: [NFC][AMDGPU] Reserve address space 16 (#195946)

This is used in downstream.

Added: 
    

Modified: 
    llvm/docs/AMDGPUUsage.rst
    llvm/include/llvm/Support/AMDGPUAddrSpace.h

Removed: 
    


################################################################################
diff  --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst
index fbc05c1732d90..3f86b614e8695 100644
--- a/llvm/docs/AMDGPUUsage.rst
+++ b/llvm/docs/AMDGPUUsage.rst
@@ -927,6 +927,7 @@ supported for the ``amdgcn`` target.
      *reserved for downstream use (LLPC)*  12
      *reserved for future use*             13
      *reserved for future use*             14
+     *reserved for future use*             16
      Streamout Registers                   128             N/A         GS_REGS
      ===================================== =============== =========== ================ ======= ============================
 

diff  --git a/llvm/include/llvm/Support/AMDGPUAddrSpace.h b/llvm/include/llvm/Support/AMDGPUAddrSpace.h
index 3fe6492584d84..5fe52dc1279bd 100644
--- a/llvm/include/llvm/Support/AMDGPUAddrSpace.h
+++ b/llvm/include/llvm/Support/AMDGPUAddrSpace.h
@@ -47,6 +47,8 @@ enum : unsigned {
   BUFFER_STRIDED_POINTER = 9, ///< Address space for 192-bit fat buffer
                               ///< pointers with an additional index.
 
+  RESERVED_ADDRESS_SPACE_16 = 16, ///< Reserved for downstream use.
+
   /// Internal address spaces. Can be freely renumbered.
   STREAMOUT_REGISTER = 128, ///< Address space for GS NGG Streamout registers.
   /// end Internal address spaces.


        


More information about the llvm-commits mailing list