[PATCH] D17046: AMDGPU: Document address space mapping

Vedran Miletić via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 03:59:03 PST 2016


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

Updated per Matt's suggestions.


http://reviews.llvm.org/D17046

Files:
  docs/AMDGPUUsage.rst

Index: docs/AMDGPUUsage.rst
===================================================================
--- docs/AMDGPUUsage.rst
+++ docs/AMDGPUUsage.rst
@@ -9,6 +9,30 @@
 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 (called flat in AMDGPU)
+   5             Region
+   ============= ============================================
+
+The terminology in the table, aside from the region memory space, is from the
+OpenCL standard and applies only to the GPU; on the CPU all of the address
+spaces point to the same memory.
+
+
 Assembler
 =========
 


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


More information about the llvm-commits mailing list