xref: /aosp_15_r20/prebuilts/clang-tools/linux-x86/clang-headers/invpcidintrin.h (revision bed243d3d9cd544cfb038bfa7be843dedc6e6bf7)
1*bed243d3SAndroid Build Coastguard Worker /*===------------- invpcidintrin.h - INVPCID intrinsic ---------------------===
2*bed243d3SAndroid Build Coastguard Worker  *
3*bed243d3SAndroid Build Coastguard Worker  * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*bed243d3SAndroid Build Coastguard Worker  * See https://llvm.org/LICENSE.txt for license information.
5*bed243d3SAndroid Build Coastguard Worker  * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*bed243d3SAndroid Build Coastguard Worker  *
7*bed243d3SAndroid Build Coastguard Worker  *===-----------------------------------------------------------------------===
8*bed243d3SAndroid Build Coastguard Worker  */
9*bed243d3SAndroid Build Coastguard Worker 
10*bed243d3SAndroid Build Coastguard Worker #ifndef __IMMINTRIN_H
11*bed243d3SAndroid Build Coastguard Worker #error "Never use <invpcidintrin.h> directly; include <immintrin.h> instead."
12*bed243d3SAndroid Build Coastguard Worker #endif
13*bed243d3SAndroid Build Coastguard Worker 
14*bed243d3SAndroid Build Coastguard Worker #ifndef __INVPCIDINTRIN_H
15*bed243d3SAndroid Build Coastguard Worker #define __INVPCIDINTRIN_H
16*bed243d3SAndroid Build Coastguard Worker 
17*bed243d3SAndroid Build Coastguard Worker static __inline__ void
18*bed243d3SAndroid Build Coastguard Worker   __attribute__((__always_inline__, __nodebug__,  __target__("invpcid")))
_invpcid(unsigned int __type,void * __descriptor)19*bed243d3SAndroid Build Coastguard Worker _invpcid(unsigned int __type, void *__descriptor) {
20*bed243d3SAndroid Build Coastguard Worker   __builtin_ia32_invpcid(__type, __descriptor);
21*bed243d3SAndroid Build Coastguard Worker }
22*bed243d3SAndroid Build Coastguard Worker 
23*bed243d3SAndroid Build Coastguard Worker #endif /* __INVPCIDINTRIN_H */
24