xref: /freebsd-src/contrib/llvm-project/clang/lib/Headers/ppc_wrappers/x86intrin.h (revision 81ad626541db97eb356e2c1d4a20eb2a26a766ab)
1*81ad6265SDimitry Andric /*===---- x86intrin.h - Implementation of X86 intrinsics on PowerPC --------===
2*81ad6265SDimitry Andric  *
3*81ad6265SDimitry Andric  * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*81ad6265SDimitry Andric  * See https://llvm.org/LICENSE.txt for license information.
5*81ad6265SDimitry Andric  * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*81ad6265SDimitry Andric  *
7*81ad6265SDimitry Andric  *===-----------------------------------------------------------------------===
8*81ad6265SDimitry Andric  */
9*81ad6265SDimitry Andric 
10*81ad6265SDimitry Andric #ifndef NO_WARN_X86_INTRINSICS
11*81ad6265SDimitry Andric /* This header is distributed to simplify porting x86_64 code that
12*81ad6265SDimitry Andric    makes explicit use of Intel intrinsics to powerpc64le.
13*81ad6265SDimitry Andric    It is the user's responsibility to determine if the results are
14*81ad6265SDimitry Andric    acceptable and make additional changes as necessary.
15*81ad6265SDimitry Andric    Note that much code that uses Intel intrinsics can be rewritten in
16*81ad6265SDimitry Andric    standard C or GNU C extensions, which are more portable and better
17*81ad6265SDimitry Andric    optimized across multiple targets.  */
18*81ad6265SDimitry Andric #error "Please read comment above.  Use -DNO_WARN_X86_INTRINSICS to disable this error."
19*81ad6265SDimitry Andric #endif
20*81ad6265SDimitry Andric 
21*81ad6265SDimitry Andric #ifndef X86INTRIN_H_
22*81ad6265SDimitry Andric #define X86INTRIN_H_
23*81ad6265SDimitry Andric 
24*81ad6265SDimitry Andric #ifdef __ALTIVEC__
25*81ad6265SDimitry Andric #include <immintrin.h>
26*81ad6265SDimitry Andric #endif /* __ALTIVEC__ */
27*81ad6265SDimitry Andric 
28*81ad6265SDimitry Andric #endif /* X86INTRIN_H_ */
29