Skip to content

Commit 3ec09e6

Browse files
committed
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 llvm-svn: 265500
1 parent 285c8ff commit 3ec09e6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

llvm/docs/AMDGPUUsage.rst

+23
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,29 @@ The AMDGPU back-end provides ISA code generation for AMD GPUs, starting with
99
the R600 family up until the current Volcanic Islands (GCN Gen 3).
1010

1111

12+
Conventions
13+
===========
14+
15+
Address Spaces
16+
--------------
17+
18+
The AMDGPU back-end uses the following address space mapping:
19+
20+
============= ============================================
21+
Address Space Memory Space
22+
============= ============================================
23+
0 Private
24+
1 Global
25+
2 Constant
26+
3 Local
27+
4 Generic (Flat)
28+
5 Region
29+
============= ============================================
30+
31+
The terminology in the table, aside from the region memory space, is from the
32+
OpenCL standard.
33+
34+
1235
Assembler
1336
=========
1437

0 commit comments

Comments
 (0)