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