]> granicus.if.org Git - clang/commit
[X86] Stop implicitly enabling avx512vl when avx512bf16 is enabled.
authorCraig Topper <craig.topper@intel.com>
Thu, 16 May 2019 18:28:17 +0000 (18:28 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 16 May 2019 18:28:17 +0000 (18:28 +0000)
commit197e8c7ceb8394e1f74b98c3a9024804e35531fa
treefe89abf181b1ef81e29aaf703c87c24e9f338063
parent8947f5cffa14f12df5842ae80258ed52a3692dfb
[X86] Stop implicitly enabling avx512vl when avx512bf16 is enabled.

Previously we were doing this so that the 256 bit selectw builtin could be used in the implementation of the 512->256 bit conversion intrinsic.

After this commit we now use a masked convert builtin that will emit the intrinsic call and the 256-bit select from custom code in CGBuiltin. Then the header only needs to call that one intrinsic.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360924 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/BuiltinsX86.def
lib/Basic/Targets/X86.cpp
lib/CodeGen/CGBuiltin.cpp
lib/Headers/avx512bf16intrin.h
lib/Headers/avx512vlbf16intrin.h
test/Preprocessor/x86_target_features.c