r221131 - [x86] Realphabetize the feature string decoding function since it was mostly in alphabetical order.
Craig Topper
craig.topper at gmail.com
Sun Nov 2 23:05:26 PST 2014
Author: ctopper
Date: Mon Nov 3 01:05:26 2014
New Revision: 221131
URL: http://llvm.org/viewvc/llvm-project?rev=221131&view=rev
Log:
[x86] Realphabetize the feature string decoding function since it was mostly in alphabetical order.
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=221131&r1=221130&r2=221131&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Mon Nov 3 01:05:26 2014
@@ -3050,18 +3050,17 @@ bool X86TargetInfo::hasFeature(StringRef
.Case("f16c", HasF16C)
.Case("fma", HasFMA)
.Case("fma4", XOPLevel >= FMA4)
- .Case("tbm", HasTBM)
- .Case("lzcnt", HasLZCNT)
- .Case("rdrnd", HasRDRND)
.Case("fsgsbase", HasFSGSBASE)
+ .Case("lzcnt", HasLZCNT)
.Case("mm3dnow", MMX3DNowLevel >= AMD3DNow)
.Case("mm3dnowa", MMX3DNowLevel >= AMD3DNowAthlon)
.Case("mmx", MMX3DNowLevel >= MMX)
.Case("pclmul", HasPCLMUL)
.Case("popcnt", HasPOPCNT)
- .Case("rtm", HasRTM)
.Case("prfchw", HasPRFCHW)
+ .Case("rdrnd", HasRDRND)
.Case("rdseed", HasRDSEED)
+ .Case("rtm", HasRTM)
.Case("sha", HasSHA)
.Case("sse", SSELevel >= SSE1)
.Case("sse2", SSELevel >= SSE2)
@@ -3070,6 +3069,7 @@ bool X86TargetInfo::hasFeature(StringRef
.Case("sse4.1", SSELevel >= SSE41)
.Case("sse4.2", SSELevel >= SSE42)
.Case("sse4a", XOPLevel >= SSE4A)
+ .Case("tbm", HasTBM)
.Case("x86", true)
.Case("x86_32", getTriple().getArch() == llvm::Triple::x86)
.Case("x86_64", getTriple().getArch() == llvm::Triple::x86_64)
More information about the cfe-commits
mailing list