cldemoteintrin.h revision 360660
1/*===---- cldemoteintrin.h - CLDEMOTE intrinsic ----------------------------===
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-exception
6 *
7 *===-----------------------------------------------------------------------===
8 */
9
10#if !defined __X86INTRIN_H && !defined __IMMINTRIN_H
11#error "Never use <cldemoteintrin.h> directly; include <x86intrin.h> instead."
12#endif
13
14#ifndef __CLDEMOTEINTRIN_H
15#define __CLDEMOTEINTRIN_H
16
17/* Define the default attributes for the functions in this file. */
18#define __DEFAULT_FN_ATTRS \
19  __attribute__((__always_inline__, __nodebug__,  __target__("cldemote")))
20
21static __inline__ void __DEFAULT_FN_ATTRS
22_cldemote(const void * __P) {
23  __builtin_ia32_cldemote(__P);
24}
25
26#undef __DEFAULT_FN_ATTRS
27
28#endif
29