[SDAG] Use BatchAAResults for querying alias analysis (AA) results (#123934)
[llvm-project.git] / clang / lib / Headers / amxmovrsintrin.h
blob5fe2fdecb8b5dde0f56a264e4c84c52a3d5bb1f8
1 /*===-------- amxmovrsintrin.h - AMX MOVRS intrinsics -*- C++ -*---------===
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 * ===-------------------------------------------------------------------=== */
9 #ifndef __IMMINTRIN_H
10 #error "Never use <amxmovrsintrin.h> directly; include <immintrin.h> instead."
11 #endif /* __IMMINTRIN_H */
13 #ifndef __AMXMOVRSINTRIN_H
14 #define __AMXMOVRSINTRIN_H
15 #ifdef __x86_64__
17 #define __DEFAULT_FN_ATTRS_MOVRS \
18 __attribute__((__always_inline__, __nodebug__, __target__("amx-movrs")))
20 #define _tile_loaddrs(dst, base, stride) \
21 __builtin_ia32_tileloaddrs64((dst), ((const void *)(base)), \
22 (__SIZE_TYPE__)(stride))
23 #define _tile_stream_loaddrs(dst, base, stride) \
24 __builtin_ia32_tileloaddrst164((dst), ((const void *)(base)), \
25 (__SIZE_TYPE__)(stride))
26 static __inline__ _tile1024i __DEFAULT_FN_ATTRS_MOVRS
27 _tile_loaddrs_internal(unsigned short m, unsigned short n, const void *base,
28 __SIZE_TYPE__ stride) {
29 return __builtin_ia32_tileloaddrs64_internal(m, n, base,
30 (__SIZE_TYPE__)(stride));
32 static __inline__ _tile1024i __DEFAULT_FN_ATTRS_MOVRS
33 _tile_loaddrst1_internal(unsigned short m, unsigned short n, const void *base,
34 __SIZE_TYPE__ stride) {
35 return __builtin_ia32_tileloaddrst164_internal(m, n, base,
36 (__SIZE_TYPE__)(stride));
38 static __inline__ void __DEFAULT_FN_ATTRS_MOVRS
39 __tile_loaddrs(__tile1024i *dst, const void *base, __SIZE_TYPE__ stride) {
40 dst->tile = _tile_loaddrs_internal(dst->row, dst->col, base, stride);
42 static __inline__ void __DEFAULT_FN_ATTRS_MOVRS __tile_stream_loaddrs(
43 __tile1024i *dst, const void *base, __SIZE_TYPE__ stride) {
44 dst->tile = _tile_loaddrst1_internal(dst->row, dst->col, base, stride);
46 #undef __DEFAULT_FN_ATTRS_MOVRS
47 #endif /* __x86_64__ */
48 #endif /* __AMXMOVRSINTRIN_H */