LLVM  6.0.0svn
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:
Collaboration graph
[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 214 of file AMDGPU.h.

Member Data Documentation

◆ CONSTANT_ADDRESS

const unsigned AMDGPUAS::CONSTANT_ADDRESS = 2
static

◆ CONSTANT_BUFFER_0

const unsigned AMDGPUAS::CONSTANT_BUFFER_0 = 8
static

◆ CONSTANT_BUFFER_1

const unsigned AMDGPUAS::CONSTANT_BUFFER_1 = 9
static

Definition at line 235 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_10

const unsigned AMDGPUAS::CONSTANT_BUFFER_10 = 18
static

Definition at line 244 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_11

const unsigned AMDGPUAS::CONSTANT_BUFFER_11 = 19
static

Definition at line 245 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_12

const unsigned AMDGPUAS::CONSTANT_BUFFER_12 = 20
static

Definition at line 246 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_13

const unsigned AMDGPUAS::CONSTANT_BUFFER_13 = 21
static

Definition at line 247 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_14

const unsigned AMDGPUAS::CONSTANT_BUFFER_14 = 22
static

Definition at line 248 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_15

const unsigned AMDGPUAS::CONSTANT_BUFFER_15 = 23
static

◆ CONSTANT_BUFFER_2

const unsigned AMDGPUAS::CONSTANT_BUFFER_2 = 10
static

Definition at line 236 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_3

const unsigned AMDGPUAS::CONSTANT_BUFFER_3 = 11
static

Definition at line 237 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_4

const unsigned AMDGPUAS::CONSTANT_BUFFER_4 = 12
static

Definition at line 238 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_5

const unsigned AMDGPUAS::CONSTANT_BUFFER_5 = 13
static

Definition at line 239 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_6

const unsigned AMDGPUAS::CONSTANT_BUFFER_6 = 14
static

Definition at line 240 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_7

const unsigned AMDGPUAS::CONSTANT_BUFFER_7 = 15
static

Definition at line 241 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_8

const unsigned AMDGPUAS::CONSTANT_BUFFER_8 = 16
static

Definition at line 242 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ CONSTANT_BUFFER_9

const unsigned AMDGPUAS::CONSTANT_BUFFER_9 = 17
static

Definition at line 243 of file AMDGPU.h.

Referenced by ConstantAddressBlock(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ FLAT_ADDRESS

unsigned AMDGPUAS::FLAT_ADDRESS

◆ GLOBAL_ADDRESS

const unsigned AMDGPUAS::GLOBAL_ADDRESS = 1
static

◆ LOCAL_ADDRESS

const unsigned AMDGPUAS::LOCAL_ADDRESS = 3
static

◆ MAX_COMMON_ADDRESS

const unsigned AMDGPUAS::MAX_COMMON_ADDRESS = 5
static

◆ PARAM_D_ADDRESS

const unsigned AMDGPUAS::PARAM_D_ADDRESS = 6
static

Address space for direct addressible parameter memory (CONST0)

Definition at line 226 of file AMDGPU.h.

Referenced by llvm::AMDGPUTTIImpl::getLoadStoreVecRegBitWidth(), and llvm::AMDGPU::isLegalSMRDImmOffset().

◆ PARAM_I_ADDRESS

const unsigned AMDGPUAS::PARAM_I_ADDRESS = 7
static

Address space for indirect addressible parameter memory (VTX1)

Definition at line 227 of file AMDGPU.h.

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

◆ PRIVATE_ADDRESS

unsigned AMDGPUAS::PRIVATE_ADDRESS

◆ REGION_ADDRESS

unsigned AMDGPUAS::REGION_ADDRESS

◆ UNKNOWN_ADDRESS_SPACE

const unsigned AMDGPUAS::UNKNOWN_ADDRESS_SPACE = ~0u
static

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