[X86] Correct the value of MaxAtomicInlineWidth for pre-586 cpus
authorCraig Topper <craig.topper@intel.com>
Thu, 21 Mar 2019 20:36:08 +0000 (20:36 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 21 Mar 2019 20:36:08 +0000 (20:36 +0000)
commit7339e61b891404631b92ae6130e24e641c2a5cb7
treeffd0183e7f5e196280e9ac041f2ec264b18ba84d
parentb576c77a9ead5cd523e48b49fc5e536800718912
[X86] Correct the value of MaxAtomicInlineWidth for pre-586 cpus

Use the new cx8 feature flag that was added to the backend to represent support for cmpxchg8b. Use this flag to set the MaxAtomicInlineWidth.

This also assumes all the cmpxchg instructions are enabled for CK_Generic which is what cc1 defaults to when nothing is specified.

Differential Revision: https://reviews.llvm.org/D59566

llvm-svn: 356709
clang/lib/Basic/Targets/X86.cpp
clang/lib/Basic/Targets/X86.h
clang/test/CodeGen/attr-cpuspecific.c
clang/test/CodeGen/attr-target-x86-mmx.c
clang/test/CodeGen/attr-target-x86.c
clang/test/CodeGen/attr-target-x87-softfp.c
clang/test/Preprocessor/init.c
clang/test/Preprocessor/predefined-win-macros.c