]> granicus.if.org Git - clang/commit
[X86] Clzero flag addition and inclusion under znver1
authorCraig Topper <craig.topper@gmail.com>
Thu, 9 Feb 2017 06:10:14 +0000 (06:10 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 9 Feb 2017 06:10:14 +0000 (06:10 +0000)
commit7f2627f33ece31a76e0853587dc2e309034ed4d1
tree1cc4fc7726242c22bc375f10a3e11db4d275909a
parentf8990593608767dd22e98b3fee4814c333655239
[X86] Clzero flag addition and inclusion under znver1

1. Adds the command line flag for clzero.
2. Includes the clzero flag under znver1.
3. Defines the macro for clzero.
4. Adds a new file which has the intrinsic definition for clzero instruction.

Patch by Ganesh Gopalasubramanian with some additional tests from me.

Differential revision: https://reviews.llvm.org/D29386

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294559 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/clang/Basic/BuiltinsX86.def
include/clang/Driver/Options.td
lib/Basic/Targets.cpp
lib/Headers/CMakeLists.txt
lib/Headers/clzerointrin.h [new file with mode: 0644]
lib/Headers/module.modulemap
lib/Headers/x86intrin.h
test/CodeGen/builtin-clflushopt.c
test/CodeGen/builtin-clzero.c [new file with mode: 0644]
test/CodeGen/builtins-x86.c
test/Driver/x86-target-features.c
test/Preprocessor/predefined-arch-macros.c