R600/SI: Add processor type for Hainan asic
authorTom Stellard <thomas.stellard@amd.com>
Tue, 14 May 2013 14:42:56 +0000 (14:42 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 14 May 2013 14:42:56 +0000 (14:42 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181792 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/AMDILDeviceInfo.cpp
lib/Target/R600/Processors.td

index 178795936a2cd34348cc21a6db1c1ac14eb0f066..126514b9766300c236c9d08a1c1f983393b2af20 100644 (file)
@@ -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
index 5ee1c0d8aec53b3c550d29dd7c73fdc44e3fca01..0cbe919d8104e160f2bdff777c97fa99b5fb7f19 100644 (file)
@@ -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]>;