r190718 - Update Atom Silvermont (SLM) support by adding enabled features.
Rafael Avila de Espindola
rafael.espindola at gmail.com
Sat Sep 14 23:06:26 PDT 2013
Test case?
Sent from my iPhone
On 2013-09-13, at 12:27, Preston Gurd <preston.gurd at intel.com> wrote:
> Author: pgurd
> Date: Fri Sep 13 14:27:17 2013
> New Revision: 190718
>
> URL: http://llvm.org/viewvc/llvm-project?rev=190718&view=rev
> Log:
> Update Atom Silvermont (SLM) support by adding enabled features.
>
>
> Modified:
> cfe/trunk/lib/Basic/Targets.cpp
>
> Modified: cfe/trunk/lib/Basic/Targets.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=190718&r1=190717&r2=190718&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Basic/Targets.cpp (original)
> +++ cfe/trunk/lib/Basic/Targets.cpp Fri Sep 13 14:27:17 2013
> @@ -1662,7 +1662,7 @@ class X86TargetInfo : public TargetInfo
> /// Atom processors
> //@{
> CK_Atom,
> - CK_SLM,
> + CK_Silvermont,
> //@}
>
> /// \name Nehalem
> @@ -1831,7 +1831,7 @@ public:
> .Case("core2", CK_Core2)
> .Case("penryn", CK_Penryn)
> .Case("atom", CK_Atom)
> - .Case("slm", CK_SLM)
> + .Case("slm", CK_Silvermont)
> .Case("corei7", CK_Corei7)
> .Case("corei7-avx", CK_Corei7AVX)
> .Case("core-avx-i", CK_CoreAVXi)
> @@ -1907,7 +1907,7 @@ public:
> case CK_Core2:
> case CK_Penryn:
> case CK_Atom:
> - case CK_SLM:
> + case CK_Silvermont:
> case CK_Corei7:
> case CK_Corei7AVX:
> case CK_CoreAVXi:
> @@ -2004,8 +2004,12 @@ void X86TargetInfo::getDefaultFeatures(l
> case CK_Atom:
> setFeatureEnabled(Features, "ssse3", true);
> break;
> + case CK_Silvermont:
> + setFeatureEnabled(Features, "sse4.2", true);
> + setFeatureEnabled(Features, "aes", true);
> + setFeatureEnabled(Features, "pclmul", true);
> + break;
> case CK_Corei7:
> - case CK_SLM:
> setFeatureEnabled(Features, "sse4.2", true);
> break;
> case CK_Corei7AVX:
> @@ -2513,7 +2517,7 @@ void X86TargetInfo::getTargetDefines(con
> case CK_Atom:
> defineCPUMacros(Builder, "atom");
> break;
> - case CK_SLM:
> + case CK_Silvermont:
> defineCPUMacros(Builder, "slm");
> break;
> case CK_Corei7:
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list