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
This commit is contained in:
Tom Stellard 2013-05-14 14:42:56 +00:00
parent 4b603e5c50
commit 1e21b53020
2 changed files with 3 additions and 1 deletions

View 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

View 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]>;