summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPU.h
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2018-08-31 05:49:54 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2018-08-31 05:49:54 +0000
commit0da6350dc89670f415ac7939d607458b9dfb4089 (patch)
treef27cf0a5f8b38d8c35886b7da7432e346f97487a /llvm/lib/Target/AMDGPU/AMDGPU.h
parente7ec083f198a828fc0052652d5f051208391d34b (diff)
downloadbcm5719-llvm-0da6350dc89670f415ac7939d607458b9dfb4089.tar.gz
bcm5719-llvm-0da6350dc89670f415ac7939d607458b9dfb4089.zip
AMDGPU: Remove remnants of old address space mapping
llvm-svn: 341165
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPU.h')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPU.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPU.h b/llvm/lib/Target/AMDGPU/AMDGPU.h
index 2b49c2ea88e..14835407ec6 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPU.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPU.h
@@ -221,19 +221,18 @@ enum TargetIndex {
/// however on the GPU, each address space points to
/// a separate piece of memory that is unique from other
/// memory locations.
-struct AMDGPUAS {
- // The following address space values depend on the triple environment.
- unsigned PRIVATE_ADDRESS; ///< Address space for private memory.
- unsigned FLAT_ADDRESS; ///< Address space for flat memory.
- unsigned REGION_ADDRESS; ///< Address space for region memory.
-
+namespace AMDGPUAS {
enum : unsigned {
// The maximum value for flat, generic, local, private, constant and region.
MAX_AMDGPU_ADDRESS = 6,
+ FLAT_ADDRESS = 0, ///< Address space for flat memory.
GLOBAL_ADDRESS = 1, ///< Address space for global memory (RAT0, VTX0).
+ REGION_ADDRESS = 2, ///< Address space for region memory.
+
CONSTANT_ADDRESS = 4, ///< Address space for constant memory (VTX2)
LOCAL_ADDRESS = 3, ///< Address space for local memory.
+ PRIVATE_ADDRESS = 5, ///< Address space for private memory.
CONSTANT_ADDRESS_32BIT = 6, ///< Address space for 32-bit constant memory
@@ -270,12 +269,4 @@ struct AMDGPUAS {
};
};
-namespace llvm {
-namespace AMDGPU {
-AMDGPUAS getAMDGPUAS(const Module &M);
-AMDGPUAS getAMDGPUAS(const TargetMachine &TM);
-AMDGPUAS getAMDGPUAS(Triple T);
-} // namespace AMDGPU
-} // namespace llvm
-
#endif
OpenPOWER on IntegriCloud