summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2017-12-08 20:52:28 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2017-12-08 20:52:28 +0000
commitc40d9f2e5df4482eb036a6130e8f3ae30294f3b4 (patch)
tree146ec0439ad1ff9153d2569e70e64940eba7b171 /llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
parent5f7fcb2ea9e10c28aaafad295413e36753841389 (diff)
downloadbcm5719-llvm-c40d9f2e5df4482eb036a6130e8f3ae30294f3b4.tar.gz
bcm5719-llvm-c40d9f2e5df4482eb036a6130e8f3ae30294f3b4.zip
AMDGPU/GCN: Bring processors in sync with AMDGPUUsage
- Add gfx704 - Change bonaire to gfx704 - Remove gfx804 - Remove gfx901 - Remove gfx903 Differential Revision: https://reviews.llvm.org/D40046 llvm-svn: 320194
Diffstat (limited to 'llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
index 15fdbc2d1e4..177b030b31f 100644
--- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
@@ -103,12 +103,13 @@ namespace AMDGPU {
namespace IsaInfo {
IsaVersion getIsaVersion(const FeatureBitset &Features) {
- // SI.
+ // GCN GFX6 (Southern Islands (SI)).
if (Features.test(FeatureISAVersion6_0_0))
return {6, 0, 0};
if (Features.test(FeatureISAVersion6_0_1))
return {6, 0, 1};
- // CI.
+
+ // GCN GFX7 (Sea Islands (CI)).
if (Features.test(FeatureISAVersion7_0_0))
return {7, 0, 0};
if (Features.test(FeatureISAVersion7_0_1))
@@ -117,8 +118,10 @@ IsaVersion getIsaVersion(const FeatureBitset &Features) {
return {7, 0, 2};
if (Features.test(FeatureISAVersion7_0_3))
return {7, 0, 3};
+ if (Features.test(FeatureISAVersion7_0_4))
+ return {7, 0, 4};
- // VI.
+ // GCN GFX8 (Volcanic Islands (VI)).
if (Features.test(FeatureISAVersion8_0_0))
return {8, 0, 0};
if (Features.test(FeatureISAVersion8_0_1))
@@ -127,20 +130,14 @@ IsaVersion getIsaVersion(const FeatureBitset &Features) {
return {8, 0, 2};
if (Features.test(FeatureISAVersion8_0_3))
return {8, 0, 3};
- if (Features.test(FeatureISAVersion8_0_4))
- return {8, 0, 4};
if (Features.test(FeatureISAVersion8_1_0))
return {8, 1, 0};
- // GFX9.
+ // GCN GFX9.
if (Features.test(FeatureISAVersion9_0_0))
return {9, 0, 0};
- if (Features.test(FeatureISAVersion9_0_1))
- return {9, 0, 1};
if (Features.test(FeatureISAVersion9_0_2))
return {9, 0, 2};
- if (Features.test(FeatureISAVersion9_0_3))
- return {9, 0, 3};
if (!Features.test(FeatureGCN) || Features.test(FeatureSouthernIslands))
return {0, 0, 0};
OpenPOWER on IntegriCloud