cldemoteintrin.h revision 341825
1109998Smarkm/*===---- cldemoteintrin.h - CLDEMOTE intrinsic ----------------------------===
2280304Sjkim *
3280304Sjkim * Permission is hereby granted, free of charge, to any person obtaining a copy
4280304Sjkim * of this software and associated documentation files (the "Software"), to deal
5280304Sjkim * in the Software without restriction, including without limitation the rights
6109998Smarkm * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7109998Smarkm * copies of the Software, and to permit persons to whom the Software is
8109998Smarkm * furnished to do so, subject to the following conditions:
9109998Smarkm *
10109998Smarkm * The above copyright notice and this permission notice shall be included in
11109998Smarkm * all copies or substantial portions of the Software.
12109998Smarkm *
13109998Smarkm * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14280304Sjkim * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15109998Smarkm * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16109998Smarkm * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17109998Smarkm * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18109998Smarkm * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19109998Smarkm * THE SOFTWARE.
20109998Smarkm *
21109998Smarkm *===-----------------------------------------------------------------------===
22109998Smarkm */
23109998Smarkm
24109998Smarkm#if !defined __X86INTRIN_H && !defined __IMMINTRIN_H
25109998Smarkm#error "Never use <cldemoteintrin.h> directly; include <x86intrin.h> instead."
26109998Smarkm#endif
27109998Smarkm
28109998Smarkm#ifndef __CLDEMOTEINTRIN_H
29109998Smarkm#define __CLDEMOTEINTRIN_H
30109998Smarkm
31109998Smarkm/* Define the default attributes for the functions in this file. */
32109998Smarkm#define __DEFAULT_FN_ATTRS \
33109998Smarkm  __attribute__((__always_inline__, __nodebug__,  __target__("cldemote")))
34109998Smarkm
35109998Smarkmstatic __inline__ void __DEFAULT_FN_ATTRS
36109998Smarkm_cldemote(const void * __P) {
37109998Smarkm  __builtin_ia32_cldemote(__P);
38109998Smarkm}
39109998Smarkm
40109998Smarkm#undef __DEFAULT_FN_ATTRS
41109998Smarkm
42109998Smarkm#endif
43109998Smarkm