]> granicus.if.org Git - clang/commit
[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)
commitd311fb0d8ab0cbd7d5abb3da427188dd42b04583
tree47da1a92691af611afbe5e716e9a756b47b1c677
parent10535f02fa4221be9866d5b5572b622025e149bb
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356709 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets/X86.cpp
lib/Basic/Targets/X86.h
test/CodeGen/attr-cpuspecific.c
test/CodeGen/attr-target-x86-mmx.c
test/CodeGen/attr-target-x86.c
test/CodeGen/attr-target-x87-softfp.c
test/Preprocessor/init.c
test/Preprocessor/predefined-win-macros.c