LLVM  7.0.0svn
Public Types | Public Attributes | List of all members
AMDGPUAS Struct Reference

OpenCL uses address spaces to differentiate between various memory regions on the hardware. More...

#include "Target/AMDGPU/AMDGPU.h"

Collaboration diagram for AMDGPUAS:
Collaboration graph
[legend]

Public Types

enum  : unsigned {
  MAX_COMMON_ADDRESS = 5, GLOBAL_ADDRESS = 1, CONSTANT_ADDRESS = 4, LOCAL_ADDRESS = 3,
  CONSTANT_ADDRESS_32BIT = 6, PARAM_D_ADDRESS = 6, PARAM_I_ADDRESS = 7, CONSTANT_BUFFER_0 = 8,
  CONSTANT_BUFFER_1 = 9, CONSTANT_BUFFER_2 = 10, CONSTANT_BUFFER_3 = 11, CONSTANT_BUFFER_4 = 12,
  CONSTANT_BUFFER_5 = 13, CONSTANT_BUFFER_6 = 14, CONSTANT_BUFFER_7 = 15, CONSTANT_BUFFER_8 = 16,
  CONSTANT_BUFFER_9 = 17, CONSTANT_BUFFER_10 = 18, CONSTANT_BUFFER_11 = 19, CONSTANT_BUFFER_12 = 20,
  CONSTANT_BUFFER_13 = 21, CONSTANT_BUFFER_14 = 22, CONSTANT_BUFFER_15 = 23, UNKNOWN_ADDRESS_SPACE = ~0u
}
 

Public Attributes

unsigned PRIVATE_ADDRESS
 Address space for private memory. More...
 
unsigned FLAT_ADDRESS
 Address space for flat memory. More...
 
unsigned REGION_ADDRESS
 Address space for region memory. More...
 

Detailed Description

OpenCL uses address spaces to differentiate between various memory regions on the hardware.

On the CPU all of the address spaces point to the same memory, however on the GPU, each address space points to a separate piece of memory that is unique from other memory locations.

Definition at line 220 of file AMDGPU.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : unsigned
Enumerator
MAX_COMMON_ADDRESS 
GLOBAL_ADDRESS 

Address space for global memory (RAT0, VTX0).

CONSTANT_ADDRESS 

Address space for constant memory (VTX2)

LOCAL_ADDRESS 

Address space for local memory.

CONSTANT_ADDRESS_32BIT 

Address space for 32-bit constant memory.

PARAM_D_ADDRESS 

Address space for direct addressible parameter memory (CONST0)

PARAM_I_ADDRESS 

Address space for indirect addressible parameter memory (VTX1)

CONSTANT_BUFFER_0 
CONSTANT_BUFFER_1 
CONSTANT_BUFFER_2 
CONSTANT_BUFFER_3 
CONSTANT_BUFFER_4 
CONSTANT_BUFFER_5 
CONSTANT_BUFFER_6 
CONSTANT_BUFFER_7 
CONSTANT_BUFFER_8 
CONSTANT_BUFFER_9 
CONSTANT_BUFFER_10 
CONSTANT_BUFFER_11 
CONSTANT_BUFFER_12 
CONSTANT_BUFFER_13 
CONSTANT_BUFFER_14 
CONSTANT_BUFFER_15 
UNKNOWN_ADDRESS_SPACE 

Definition at line 226 of file AMDGPU.h.

Member Data Documentation

◆ FLAT_ADDRESS

unsigned AMDGPUAS::FLAT_ADDRESS

◆ PRIVATE_ADDRESS

unsigned AMDGPUAS::PRIVATE_ADDRESS

◆ REGION_ADDRESS

unsigned AMDGPUAS::REGION_ADDRESS

The documentation for this struct was generated from the following file: