[X86] Add support 'tune' in target attribute
authorCraig Topper <craig.topper@intel.com>
Wed, 19 Aug 2020 22:58:16 +0000 (15:58 -0700)
committerCraig Topper <craig.topper@intel.com>
Wed, 19 Aug 2020 22:58:19 +0000 (15:58 -0700)
commit724f570ad25568acc3a33dcdce9cadd776de2382
tree5c5682fd3efccf246b2545ae3f6f0f4fce99d3e4
parent4a367114397ab5d175cb8b74ee6144978e7fdeba
[X86] Add support 'tune' in target attribute

This adds parsing and codegen support for tune in target attribute.

I've implemented this so that arch in the target attribute implicitly disables tune from the command line. I'm not sure what gcc does here. But since -march implies -mtune. I assume 'arch' in the target attribute implies tune in the target attribute.

Differential Revision: https://reviews.llvm.org/D86187
clang/include/clang/AST/Attr.h
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Basic/TargetInfo.h
clang/lib/Basic/Targets/X86.h
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/CodeGen/attr-target-x86.c
clang/test/Sema/attr-target.c