summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-05-14 14:42:56 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-05-14 14:42:56 +0000
commit1e21b53020a4d7c74a48471041906952c9eacec7 (patch)
treedc21e50ffdc26a3b7b2d663f8d5a1ad978e03930 /llvm/lib/Target
parent4b603e5c500c2ae06fca53bd9898fcf492821176 (diff)
downloadbcm5719-llvm-1e21b53020a4d7c74a48471041906952c9eacec7.tar.gz
bcm5719-llvm-1e21b53020a4d7c74a48471041906952c9eacec7.zip
R600/SI: Add processor type for Hainan asic
Patch by: Alex Deucher Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> NOTE: This is a candidate for the 3.3 branch. llvm-svn: 181792
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/R600/AMDILDeviceInfo.cpp3
-rw-r--r--llvm/lib/Target/R600/Processors.td1
2 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/AMDILDeviceInfo.cpp b/llvm/lib/Target/R600/AMDILDeviceInfo.cpp
index 178795936a2..126514b9766 100644
--- a/llvm/lib/Target/R600/AMDILDeviceInfo.cpp
+++ b/llvm/lib/Target/R600/AMDILDeviceInfo.cpp
@@ -81,7 +81,8 @@ AMDGPUDevice* getDeviceFromName(const std::string &deviceName,
return new AMDGPUNIDevice(ptr);
} else if (deviceName == "SI" ||
deviceName == "tahiti" || deviceName == "pitcairn" ||
- deviceName == "verde" || deviceName == "oland") {
+ deviceName == "verde" || deviceName == "oland" ||
+ deviceName == "hainan") {
return new AMDGPUSIDevice(ptr);
} else {
#if DEBUG
diff --git a/llvm/lib/Target/R600/Processors.td b/llvm/lib/Target/R600/Processors.td
index 5ee1c0d8aec..0cbe919d810 100644
--- a/llvm/lib/Target/R600/Processors.td
+++ b/llvm/lib/Target/R600/Processors.td
@@ -45,3 +45,4 @@ def : Proc<"tahiti", SI_Itin, [Feature64BitPtr, FeatureFP64]>;
def : Proc<"pitcairn", SI_Itin, [Feature64BitPtr, FeatureFP64]>;
def : Proc<"verde", SI_Itin, [Feature64BitPtr, FeatureFP64]>;
def : Proc<"oland", SI_Itin, [Feature64BitPtr, FeatureFP64]>;
+def : Proc<"hainan", SI_Itin, [Feature64BitPtr, FeatureFP64]>;
OpenPOWER on IntegriCloud