[all-commits] [llvm/llvm-project] 4a3671: [X86] Add mtune command line test cases that shoul...

topperc via All-commits all-commits at lists.llvm.org
Wed Aug 19 16:20:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a367114397ab5d175cb8b74ee6144978e7fdeba
      https://github.com/llvm/llvm-project/commit/4a367114397ab5d175cb8b74ee6144978e7fdeba
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-08-19 (Wed, 19 Aug 2020)

  Changed paths:
    A clang/test/CodeGen/tune-cpu.c
    A clang/test/Driver/x86-mtune.c

  Log Message:
  -----------
  [X86] Add mtune command line test cases that should have gone with 4cbceb74bb5676d0181d4d0cab5194d90a42c2ec


  Commit: 724f570ad25568acc3a33dcdce9cadd776de2382
      https://github.com/llvm/llvm-project/commit/724f570ad25568acc3a33dcdce9cadd776de2382
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-08-19 (Wed, 19 Aug 2020)

  Changed paths:
    M clang/include/clang/AST/Attr.h
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Basic/TargetInfo.h
    M clang/lib/Basic/Targets/X86.h
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/CodeGen/attr-target-x86.c
    M clang/test/Sema/attr-target.c

  Log Message:
  -----------
  [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


Compare: https://github.com/llvm/llvm-project/compare/31adc28d24b1...724f570ad255


More information about the All-commits mailing list