1 /*===---- cldemoteintrin.h - CLDEMOTE intrinsic ----------------------------===
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
7 *===-----------------------------------------------------------------------===
10 #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H
11 #error "Never use <cldemoteintrin.h> directly; include <x86intrin.h> instead."
14 #ifndef __CLDEMOTEINTRIN_H
15 #define __CLDEMOTEINTRIN_H
17 /* Define the default attributes for the functions in this file. */
18 #define __DEFAULT_FN_ATTRS \
19 __attribute__((__always_inline__, __nodebug__, __target__("cldemote")))
21 /// Hint to hardware that the cache line that contains \p __P should be demoted
22 /// from the cache closest to the processor core to a level more distant from
23 /// the processor core.
25 /// \headerfile <x86intrin.h>
27 /// This intrinsic corresponds to the <c> CLDEMOTE </c> instruction.
28 static __inline__
void __DEFAULT_FN_ATTRS
29 _cldemote(const void * __P
) {
30 __builtin_ia32_cldemote(__P
);
33 #define _mm_cldemote(p) _cldemote(p)
34 #undef __DEFAULT_FN_ATTRS