]> granicus.if.org Git - clang/commit
[X86] Add builtins for VALIGNQ/VALIGND to enable proper target feature checking.
authorCraig Topper <craig.topper@intel.com>
Thu, 7 Jun 2018 21:27:41 +0000 (21:27 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 7 Jun 2018 21:27:41 +0000 (21:27 +0000)
commit2dbbac4dddd5ec3c3bfeaf681336831fca254e28
treeb20d438e94c5cc8889833246272ae534073ac069
parent3a20c380550f154c20faa251963d136d0cf55cd3
[X86] Add builtins for VALIGNQ/VALIGND to enable proper target feature checking.

We still emit shufflevector instructions we just do it from CGBuiltin.cpp now. This ensures the intrinsics that use this are only available on CPUs that support the feature.

I also added range checking to the immediate, but only checked it is 8 bits or smaller. We should maybe be stricter since we never use all 8 bits, but gcc doesn't seem to do that.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334237 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/BuiltinsX86.def
lib/CodeGen/CGBuiltin.cpp
lib/Headers/avx512fintrin.h
lib/Headers/avx512vlintrin.h
lib/Sema/SemaChecking.cpp