]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/riscv/riscv-vector-builtins-functions.def
Update copyright years.
[thirdparty/gcc.git] / gcc / config / riscv / riscv-vector-builtins-functions.def
1 /* Intrinsic define macros for RISC-V 'V' Extension for GNU compiler.
2 Copyright (C) 2022-2023 Free Software Foundation, Inc.
3 Contributed by Juzhe Zhong (juzhe.zhong@rivai.ai), RiVAI Technologies Ltd.
4
5 This file is part of GCC.
6
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
11
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
20
21 /* Use "DEF_RVV_FUNCTION" macro to define RVV intrinsic functions.
22
23 - NAME not only describes the base_name of the functions
24 but also point to the name of the function_base class.
25
26 - SHAPE point to the function_shape class.
27
28 - PREDS describes the predication types that are supported in the
29 functions.
30
31 - OPS_INFO describes all information of return type and each
32 argument type.
33
34 */
35 #ifndef DEF_RVV_FUNCTION
36 #define DEF_RVV_FUNCTION(NAME, SHAPE, PREDS, OPS_INFO)
37 #endif
38
39 /* 6. Configuration-Setting Instructions. */
40 DEF_RVV_FUNCTION (vsetvl, vsetvl, none_preds, i_none_size_size_ops)
41 DEF_RVV_FUNCTION (vsetvlmax, vsetvlmax, none_preds, i_none_size_void_ops)
42 /* 7. Vector Loads and Stores. */
43 DEF_RVV_FUNCTION (vle, loadstore, full_preds, all_v_scalar_const_ptr_ops)
44 DEF_RVV_FUNCTION (vse, loadstore, none_m_preds, all_v_scalar_ptr_ops)
45
46 #undef DEF_RVV_FUNCTION