diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2016-04-06 01:29:19 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2016-04-06 01:29:19 +0000 |
commit | 43f537f492503208b4a38273b36adb9823d1b9d8 (patch) | |
tree | ef7aed3f6b745788a9dfbccec5686b386f883a8b /docs/AMDGPUUsage.rst | |
parent | 43e8875502dfec2e04e0b24c26a6f438bb6d33f7 (diff) |
AMDGPU: Document address space mapping
Summary:
Address space mapping is described in lib/Target/AMDGPU/AMDGPU.h in
Doxygen comments. This patch adds the description to user guide for
AMDGPU back-end.
Patch By: Vedran Miletić
Reviewers: tstellarAMD, arsenm
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D17046
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/AMDGPUUsage.rst')
-rw-r--r-- | docs/AMDGPUUsage.rst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/AMDGPUUsage.rst b/docs/AMDGPUUsage.rst index 5abbdec8ef0..b5991c708d1 100644 --- a/docs/AMDGPUUsage.rst +++ b/docs/AMDGPUUsage.rst @@ -9,6 +9,29 @@ The AMDGPU back-end provides ISA code generation for AMD GPUs, starting with 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 ========= |