[PATCH] D86187: [X86] Add support 'tune' in target attribute

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 18 18:11:08 PDT 2020


craig.topper created this revision.
craig.topper added reviewers: echristo, erichkeane, spatel, RKSimon.
Herald added a reviewer: aaron.ballman.
craig.topper requested review of this revision.

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.


https://reviews.llvm.org/D86187

Files:
  clang/include/clang/AST/Attr.h
  clang/include/clang/Basic/Attr.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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86187.286448.patch
Type: text/x-patch
Size: 13123 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200819/286ba35b/attachment-0001.bin>


More information about the cfe-commits mailing list