[AMDGPU][AsmParser][NFC] Get rid of custom default operand handlers.
[llvm-project.git] / clang / lib / Headers / ptwriteintrin.h
blob0a04f7c1dfc404607e5eff99d048c082a8f7e24d
1 /*===------------ ptwriteintrin.h - PTWRITE 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 *===-----------------------------------------------------------------------===
8 */
10 #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H
11 #error "Never use <ptwriteintrin.h> directly; include <x86intrin.h> instead."
12 #endif
14 #ifndef __PTWRITEINTRIN_H
15 #define __PTWRITEINTRIN_H
17 /* Define the default attributes for the functions in this file. */
18 #define __DEFAULT_FN_ATTRS \
19 __attribute__((__always_inline__, __nodebug__, __target__("ptwrite")))
21 static __inline__ void __DEFAULT_FN_ATTRS
22 _ptwrite32(unsigned int __value) {
23 __builtin_ia32_ptwrite32(__value);
26 #ifdef __x86_64__
28 static __inline__ void __DEFAULT_FN_ATTRS
29 _ptwrite64(unsigned long long __value) {
30 __builtin_ia32_ptwrite64(__value);
33 #endif /* __x86_64__ */
35 #undef __DEFAULT_FN_ATTRS
37 #endif /* __PTWRITEINTRIN_H */