blob: cac0347efc4fc14a830ec864378ae68d30e32fc6 [file] [log] [blame]
Gabor Buellaa0520162018-04-11 20:09:09 +00001/*===-------------- wbnoinvdintrin.h - wbnoinvd intrinsic-------------------===
2 *
Chandler Carruth4cf57432019-04-08 20:51:30 +00003 * 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-exception
Gabor Buellaa0520162018-04-11 20:09:09 +00006 *
7 *===-----------------------------------------------------------------------===
8 */
9
Craig Topper664af9b2018-05-23 18:32:58 +000010#if !defined __X86INTRIN_H && !defined __IMMINTRIN_H
Gabor Buellaa0520162018-04-11 20:09:09 +000011#error "Never use <wbnoinvdintrin.h> directly; include <x86intrin.h> instead."
12#endif
13
14#ifndef __WBNOINVDINTRIN_H
15#define __WBNOINVDINTRIN_H
16
17static __inline__ void
18 __attribute__((__always_inline__, __nodebug__, __target__("wbnoinvd")))
19_wbnoinvd (void)
20{
21 __builtin_ia32_wbnoinvd ();
22}
23
24#endif /* __WBNOINVDINTRIN_H */