1*5ffd83dbSDimitry Andric /*===--------------- serializeintrin.h - serialize intrinsics --------------=== 2*5ffd83dbSDimitry Andric * 3*5ffd83dbSDimitry Andric * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*5ffd83dbSDimitry Andric * See https://llvm.org/LICENSE.txt for license information. 5*5ffd83dbSDimitry Andric * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*5ffd83dbSDimitry Andric * 7*5ffd83dbSDimitry Andric *===-----------------------------------------------------------------------=== 8*5ffd83dbSDimitry Andric */ 9*5ffd83dbSDimitry Andric 10*5ffd83dbSDimitry Andric #ifndef __IMMINTRIN_H 11*5ffd83dbSDimitry Andric #error "Never use <serializeintrin.h> directly; include <immintrin.h> instead." 12*5ffd83dbSDimitry Andric #endif 13*5ffd83dbSDimitry Andric 14*5ffd83dbSDimitry Andric #ifndef __SERIALIZEINTRIN_H 15*5ffd83dbSDimitry Andric #define __SERIALIZEINTRIN_H 16*5ffd83dbSDimitry Andric 17*5ffd83dbSDimitry Andric /// Serialize instruction fetch and execution. 18*5ffd83dbSDimitry Andric /// 19*5ffd83dbSDimitry Andric /// \headerfile <x86intrin.h> 20*5ffd83dbSDimitry Andric /// 21*5ffd83dbSDimitry Andric /// This intrinsic corresponds to the <c> SERIALIZE </c> instruction. 22*5ffd83dbSDimitry Andric /// 23*5ffd83dbSDimitry Andric static __inline__ void 24*5ffd83dbSDimitry Andric __attribute__((__always_inline__, __nodebug__, __target__("serialize"))) _serialize(void)25*5ffd83dbSDimitry Andric_serialize (void) 26*5ffd83dbSDimitry Andric { 27*5ffd83dbSDimitry Andric __builtin_ia32_serialize (); 28*5ffd83dbSDimitry Andric } 29*5ffd83dbSDimitry Andric 30*5ffd83dbSDimitry Andric #endif /* __SERIALIZEINTRIN_H */ 31