15#ifndef LLVM_SUPPORT_AMDGPUADDRSPACE_H
16#define LLVM_SUPPORT_AMDGPUADDRSPACE_H
102 case CONSTANT_ADDRESS:
103 case CONSTANT_ADDRESS_32BIT:
104 case CONSTANT_BUFFER_0:
105 case CONSTANT_BUFFER_1:
106 case CONSTANT_BUFFER_2:
107 case CONSTANT_BUFFER_3:
108 case CONSTANT_BUFFER_4:
109 case CONSTANT_BUFFER_5:
110 case CONSTANT_BUFFER_6:
111 case CONSTANT_BUFFER_7:
112 case CONSTANT_BUFFER_8:
113 case CONSTANT_BUFFER_9:
114 case CONSTANT_BUFFER_10:
115 case CONSTANT_BUFFER_11:
116 case CONSTANT_BUFFER_12:
117 case CONSTANT_BUFFER_13:
118 case CONSTANT_BUFFER_14:
119 case CONSTANT_BUFFER_15:
163 constexpr unsigned SizeOfLLVMToDWARFAddrSpaceMapping =
166 if (LLVMAddrSpace < SizeOfLLVMToDWARFAddrSpaceMapping)
175 case PRIVATE_ADDRESS:
OpenCL uses address spaces to differentiate between various memory regions on the hardware.
@ CONSTANT_ADDRESS_32BIT
Address space for 32-bit constant memory.
@ BUFFER_STRIDED_POINTER
Address space for 192-bit fat buffer pointers with an additional index.
@ PARAM_D_ADDRESS
end Internal address spaces.
@ REGION_ADDRESS
Address space for region memory. (GDS)
@ LOCAL_ADDRESS
Address space for local memory.
@ STREAMOUT_REGISTER
Internal address spaces. Can be freely renumbered.
@ PARAM_I_ADDRESS
Address space for indirect addressable parameter memory (VTX1).
@ CONSTANT_ADDRESS
Address space for constant memory (VTX2).
@ FLAT_ADDRESS
Address space for flat memory.
@ GLOBAL_ADDRESS
Address space for global memory (RAT0, VTX0).
@ BUFFER_FAT_POINTER
Address space for 160-bit buffer fat pointers.
@ PRIVATE_ADDRESS
Address space for private memory.
@ BUFFER_RESOURCE
Address space for 128-bit buffer resources.
static constexpr unsigned LLVMToDWARFAddrSpaceMapping[]
bool isFlatGlobalAddrSpace(unsigned AS)
constexpr int64_t getNullPointerValue(unsigned AS)
Get the null pointer value for the given address space.
constexpr int mapToDWARFAddrSpace(unsigned LLVMAddrSpace)
If LLVMAddressSpace has a corresponding DWARF encoding, return it; otherwise return the sentinel valu...
bool isExtendedGlobalAddrSpace(unsigned AS)
bool isConstantAddressSpace(unsigned AS)
This is an optimization pass for GlobalISel generic memory operations.