[PATCH] R600/SI: Add processor type for Hainan asic

Tom Stellard tom at stellard.net
Mon May 13 19:42:53 PDT 2013


On Mon, May 13, 2013 at 04:40:59PM -0400, alexdeucher at gmail.com wrote:
> From: Alex Deucher <alexander.deucher at amd.com>
> 
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Looks good, I will apply this.

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

> ---
>  lib/Target/R600/AMDILDeviceInfo.cpp |    3 ++-
>  lib/Target/R600/Processors.td       |    1 +
>  2 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/lib/Target/R600/AMDILDeviceInfo.cpp b/lib/Target/R600/AMDILDeviceInfo.cpp
> index 1787959..126514b 100644
> --- a/lib/Target/R600/AMDILDeviceInfo.cpp
> +++ b/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/lib/Target/R600/Processors.td b/lib/Target/R600/Processors.td
> index 5ee1c0d..0cbe919 100644
> --- a/lib/Target/R600/Processors.td
> +++ b/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]>;
> -- 
> 1.7.7.5
> 



More information about the llvm-commits mailing list