[clang] [llvm] [AMDGPU] Add initial support for VGPR as memory (PR #205435)

Gheorghe-Teodor Bercea via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 26 07:37:29 PDT 2026


================
@@ -47,6 +47,10 @@ enum : unsigned {
   BUFFER_STRIDED_POINTER = 9, ///< Address space for 192-bit fat buffer
                               ///< pointers with an additional index.
 
+  VGPR = 13, ///< Address space for "VGPR as memory": objects backed by VGPRs
----------------
doru1004 wrote:

13 is the graphics-only CONSTANT_BUFFER_5 alias, never used in compute, so reusing it avoids burning a fresh address-space number.

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


More information about the cfe-commits mailing list