1336815Sdim/*===---- cldemoteintrin.h - CLDEMOTE intrinsic ----------------------------===
2336815Sdim *
3353358Sdim * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4353358Sdim * See https://llvm.org/LICENSE.txt for license information.
5353358Sdim * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6336815Sdim *
7336815Sdim *===-----------------------------------------------------------------------===
8336815Sdim */
9336815Sdim
10336815Sdim#if !defined __X86INTRIN_H && !defined __IMMINTRIN_H
11336815Sdim#error "Never use <cldemoteintrin.h> directly; include <x86intrin.h> instead."
12336815Sdim#endif
13336815Sdim
14336815Sdim#ifndef __CLDEMOTEINTRIN_H
15336815Sdim#define __CLDEMOTEINTRIN_H
16336815Sdim
17336815Sdim/* Define the default attributes for the functions in this file. */
18336815Sdim#define __DEFAULT_FN_ATTRS \
19336815Sdim  __attribute__((__always_inline__, __nodebug__,  __target__("cldemote")))
20336815Sdim
21336815Sdimstatic __inline__ void __DEFAULT_FN_ATTRS
22336815Sdim_cldemote(const void * __P) {
23336815Sdim  __builtin_ia32_cldemote(__P);
24336815Sdim}
25336815Sdim
26336815Sdim#undef __DEFAULT_FN_ATTRS
27336815Sdim
28336815Sdim#endif
29