Rename this feature to "cx16" to match gcc's flag name. Apparently these strings
authorNick Lewycky <nicholas@mxc.ca>
Sat, 5 Oct 2013 20:11:44 +0000 (20:11 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 5 Oct 2013 20:11:44 +0000 (20:11 +0000)
are directly tied to the flag names in clang with no remapping in between?

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

lib/Target/X86/X86.td

index 0b49d6152e046ed5bc1539bab5cf49dfa66835b4..784a2642639fb767ab1ea6b3afc596fc93587c03 100644 (file)
@@ -68,7 +68,7 @@ def Feature3DNowA  : SubtargetFeature<"3dnowa", "X863DNowLevel", "ThreeDNowA",
 def Feature64Bit   : SubtargetFeature<"64bit", "HasX86_64", "true",
                                       "Support 64-bit instructions",
                                       [FeatureCMOV]>;
-def FeatureCMPXCHG16B : SubtargetFeature<"cmpxchg16b", "HasCmpxchg16b", "true",
+def FeatureCMPXCHG16B : SubtargetFeature<"cx16", "HasCmpxchg16b", "true",
                                       "64-bit with cmpxchg16b",
                                       [Feature64Bit]>;
 def FeatureSlowBTMem : SubtargetFeature<"slow-bt-mem", "IsBTMemSlow", "true",