]> granicus.if.org Git - clang/commit
AMD family 17h (znver1) enablement
authorCraig Topper <craig.topper@gmail.com>
Tue, 10 Jan 2017 06:02:12 +0000 (06:02 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 10 Jan 2017 06:02:12 +0000 (06:02 +0000)
commitf8beebd359b1d8fb87dd54baf195912e2430cd50
treed2e9c9e54569b0c18ed30a8109d23a240d994aac
parentb8a7fd7846dff34f6953e5cada691608cf9a5dd9
AMD family 17h (znver1) enablement

Summary:
This patch enables the following
1. AMD family 17h architecture using "znver1" tune flag (-march, -mcpu).
2. ISAs that are enabled for "znver1" architecture.
3. Checks ADX isa from cpuid to identify "znver1" flag when -march=native is used.
4. ISAs FMA4, XOP are disabled as they are dropped from amdfam17.
5. For the time being, it uses the btver2 scheduler model.
6. Test file is updated to check this flag.

This is linked to llvm review item https://reviews.llvm.org/D28017

Patch by Ganesh Gopalasubramanian. Additional test cases added by Craig Topper.

Reviewers: RKSimon, craig.topper

Subscribers: cfe-commits, RKSimon, ashutosh.nema, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291544 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/Driver/x86-march.c
test/Frontend/x86-target-cpu.c
test/Preprocessor/predefined-arch-macros.c