[PATCH] D17046: AMDGPU: Document address space mapping

Vedran Miletić via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 11 03:12:58 PST 2016


rivanvx updated this revision to Diff 47620.
rivanvx added a comment.

Updated per arsenm's comments.


http://reviews.llvm.org/D17046

Files:
  docs/AMDGPUUsage.rst

Index: docs/AMDGPUUsage.rst
===================================================================
--- docs/AMDGPUUsage.rst
+++ docs/AMDGPUUsage.rst
@@ -9,6 +9,29 @@
 the R600 family up until the current Volcanic Islands (GCN Gen 3).
 
 
+Conventions
+===========
+
+Address Spaces
+--------------
+
+The AMDGPU back-end uses the following address space mapping:
+
+   ============= ============================================
+   Address Space Memory Space
+   ============= ============================================
+   0             Private
+   1             Global
+   2             Constant
+   3             Local
+   4             Generic (Flat)
+   5             Region
+   ============= ============================================
+
+The terminology in the table, aside from the region memory space, is from the
+OpenCL standard.
+
+
 Assembler
 =========
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17046.47620.patch
Type: text/x-patch
Size: 869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160211/e0a7106f/attachment.bin>


More information about the llvm-commits mailing list