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.
5 This file is part of GCC.
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)
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.
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/>. */
21 /* Use "DEF_RVV_FUNCTION" macro to define RVV intrinsic functions.
23 - NAME not only describes the base_name of the functions
24 but also point to the name of the function_base class.
26 - SHAPE point to the function_shape class.
28 - PREDS describes the predication types that are supported in the
31 - OPS_INFO describes all information of return type and each
35 #ifndef DEF_RVV_FUNCTION
36 #define DEF_RVV_FUNCTION(NAME, SHAPE, PREDS, OPS_INFO)
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)
46 #undef DEF_RVV_FUNCTION