mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
R600: Add definition for flat address space ID.
Use 4 since that's probably what it will be for spir. Move ADDRESS_NONE to the end to keep the constant_buffer_* values unchanged, since apparently a bunch of r600 tests use those directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209463 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -80,8 +80,8 @@ enum AddressSpaces {
|
|||||||
GLOBAL_ADDRESS = 1, ///< Address space for global memory (RAT0, VTX0).
|
GLOBAL_ADDRESS = 1, ///< Address space for global memory (RAT0, VTX0).
|
||||||
CONSTANT_ADDRESS = 2, ///< Address space for constant memory
|
CONSTANT_ADDRESS = 2, ///< Address space for constant memory
|
||||||
LOCAL_ADDRESS = 3, ///< Address space for local memory.
|
LOCAL_ADDRESS = 3, ///< Address space for local memory.
|
||||||
REGION_ADDRESS = 4, ///< Address space for region memory.
|
FLAT_ADDRESS = 4, ///< Address space for flat memory.
|
||||||
ADDRESS_NONE = 5, ///< Address space for unknown memory.
|
REGION_ADDRESS = 5, ///< Address space for region memory.
|
||||||
PARAM_D_ADDRESS = 6, ///< Address space for direct addressible parameter memory (CONST0)
|
PARAM_D_ADDRESS = 6, ///< Address space for direct addressible parameter memory (CONST0)
|
||||||
PARAM_I_ADDRESS = 7, ///< Address space for indirect addressible parameter memory (VTX1)
|
PARAM_I_ADDRESS = 7, ///< Address space for indirect addressible parameter memory (VTX1)
|
||||||
|
|
||||||
@@ -106,7 +106,8 @@ enum AddressSpaces {
|
|||||||
CONSTANT_BUFFER_13 = 21,
|
CONSTANT_BUFFER_13 = 21,
|
||||||
CONSTANT_BUFFER_14 = 22,
|
CONSTANT_BUFFER_14 = 22,
|
||||||
CONSTANT_BUFFER_15 = 23,
|
CONSTANT_BUFFER_15 = 23,
|
||||||
LAST_ADDRESS = 24
|
ADDRESS_NONE = 24, ///< Address space for unknown memory.
|
||||||
|
LAST_ADDRESS = ADDRESS_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace AMDGPUAS
|
} // namespace AMDGPUAS
|
||||||
|
@@ -54,7 +54,7 @@ static std::string computeDataLayout(const AMDGPUSubtarget &ST) {
|
|||||||
|
|
||||||
if (ST.is64bit()) {
|
if (ST.is64bit()) {
|
||||||
// 32-bit private, local, and region pointers. 64-bit global and constant.
|
// 32-bit private, local, and region pointers. 64-bit global and constant.
|
||||||
Ret += "-p1:64:64-p2:64:64-p3:32:32-p4:32:32-p5:64:64";
|
Ret += "-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-p24:64:64";
|
||||||
}
|
}
|
||||||
|
|
||||||
Ret += "-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256"
|
Ret += "-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256"
|
||||||
|
Reference in New Issue
Block a user