LLVM  5.0.0
Public Attributes | Static 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:
[legend]

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...
 

Static Public Attributes

static const unsigned MAX_COMMON_ADDRESS = 5
 
static const unsigned GLOBAL_ADDRESS = 1
 Address space for global memory (RAT0, VTX0). More...
 
static const unsigned CONSTANT_ADDRESS = 2
 Address space for constant memory (VTX2) More...
 
static const unsigned LOCAL_ADDRESS = 3
 Address space for local memory. More...
 
static const unsigned PARAM_D_ADDRESS = 6
 Address space for direct addressible parameter memory (CONST0) More...
 
static const unsigned PARAM_I_ADDRESS = 7
 Address space for indirect addressible parameter memory (VTX1) More...
 
static const unsigned CONSTANT_BUFFER_0 = 8
 
static const unsigned CONSTANT_BUFFER_1 = 9
 
static const unsigned CONSTANT_BUFFER_2 = 10
 
static const unsigned CONSTANT_BUFFER_3 = 11
 
static const unsigned CONSTANT_BUFFER_4 = 12
 
static const unsigned CONSTANT_BUFFER_5 = 13
 
static const unsigned CONSTANT_BUFFER_6 = 14
 
static const unsigned CONSTANT_BUFFER_7 = 15
 
static const unsigned CONSTANT_BUFFER_8 = 16
 
static const unsigned CONSTANT_BUFFER_9 = 17
 
static const unsigned CONSTANT_BUFFER_10 = 18
 
static const unsigned CONSTANT_BUFFER_11 = 19
 
static const unsigned CONSTANT_BUFFER_12 = 20
 
static const unsigned CONSTANT_BUFFER_13 = 21
 
static const unsigned CONSTANT_BUFFER_14 = 22
 
static const unsigned CONSTANT_BUFFER_15 = 23
 
static const unsigned UNKNOWN_ADDRESS_SPACE = ~0u
 

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 164 of file AMDGPU.h.

Member Data Documentation

const unsigned AMDGPUAS::CONSTANT_ADDRESS = 2
static
const unsigned AMDGPUAS::CONSTANT_BUFFER_0 = 8
static
const unsigned AMDGPUAS::CONSTANT_BUFFER_1 = 9
static

Definition at line 185 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_10 = 18
static

Definition at line 194 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_11 = 19
static

Definition at line 195 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_12 = 20
static

Definition at line 196 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_13 = 21
static

Definition at line 197 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_14 = 22
static

Definition at line 198 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_15 = 23
static
const unsigned AMDGPUAS::CONSTANT_BUFFER_2 = 10
static

Definition at line 186 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_3 = 11
static

Definition at line 187 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_4 = 12
static

Definition at line 188 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_5 = 13
static

Definition at line 189 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_6 = 14
static

Definition at line 190 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_7 = 15
static

Definition at line 191 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_8 = 16
static

Definition at line 192 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

const unsigned AMDGPUAS::CONSTANT_BUFFER_9 = 17
static

Definition at line 193 of file AMDGPU.h.

Referenced by ConstantAddressBlock().

unsigned AMDGPUAS::FLAT_ADDRESS
const unsigned AMDGPUAS::GLOBAL_ADDRESS = 1
static
const unsigned AMDGPUAS::LOCAL_ADDRESS = 3
static
const unsigned AMDGPUAS::MAX_COMMON_ADDRESS = 5
static

Definition at line 171 of file AMDGPU.h.

const unsigned AMDGPUAS::PARAM_D_ADDRESS = 6
static

Address space for direct addressible parameter memory (CONST0)

Definition at line 176 of file AMDGPU.h.

Referenced by llvm::AMDGPUTTIImpl::getLoadStoreVecRegBitWidth().

const unsigned AMDGPUAS::PARAM_I_ADDRESS = 7
static

Address space for indirect addressible parameter memory (VTX1)

Definition at line 177 of file AMDGPU.h.

Referenced by llvm::AMDGPUTTIImpl::getLoadStoreVecRegBitWidth(), and llvm::R600TargetLowering::LowerOperation().

unsigned AMDGPUAS::PRIVATE_ADDRESS
unsigned AMDGPUAS::REGION_ADDRESS
const unsigned AMDGPUAS::UNKNOWN_ADDRESS_SPACE = ~0u
static

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