Mercurial > hg > CbC > CbC_llvm
view clang/lib/Headers/cldemoteintrin.h @ 176:de4ac79aef9d
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 17:13:11 +0900 |
parents | 0572611fdcc8 |
children |
line wrap: on
line source
/*===---- cldemoteintrin.h - CLDEMOTE intrinsic ----------------------------=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * *===-----------------------------------------------------------------------=== */ #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H #error "Never use <cldemoteintrin.h> directly; include <x86intrin.h> instead." #endif #ifndef __CLDEMOTEINTRIN_H #define __CLDEMOTEINTRIN_H /* Define the default attributes for the functions in this file. */ #define __DEFAULT_FN_ATTRS \ __attribute__((__always_inline__, __nodebug__, __target__("cldemote"))) /// Hint to hardware that the cache line that contains \p __P should be demoted /// from the cache closest to the processor core to a level more distant from /// the processor core. /// /// \headerfile <x86intrin.h> /// /// This intrinsic corresponds to the <c> CLDEMOTE </c> instruction. static __inline__ void __DEFAULT_FN_ATTRS _cldemote(const void * __P) { __builtin_ia32_cldemote(__P); } #define _mm_cldemote(p) _cldemote(p) #undef __DEFAULT_FN_ATTRS #endif