OSDN Git Service

AMD family 17h (znver1) enablement
authorCraig Topper <craig.topper@gmail.com>
Tue, 10 Jan 2017 06:01:16 +0000 (06:01 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 10 Jan 2017 06:01:16 +0000 (06:01 +0000)
commit1d928ef8811578916ab00c1273409d55a8e2d40f
treefcaa61dc8f585a966b5ec9e92bf42c3032ca0430
parent2d737382e28b0344836ef8a292141413281d873c
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 item is linked to clang review item https://reviews.llvm.org/D28018

Patch by Ganesh Gopalasubramanian

Reviewers: RKSimon, craig.topper

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

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291543 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Host.cpp
lib/Target/X86/X86.td
test/CodeGen/X86/cpus.ll
test/CodeGen/X86/lzcnt-zext-cmp.ll
test/CodeGen/X86/slow-unaligned-mem.ll
test/CodeGen/X86/x86-64-double-shifts-var.ll