2 * Copyright(c
) 2019-2021 Qualcomm Innovation Center
, Inc. All Rights Reserved.
4 * This program is free software
; you can redistribute it and
/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation
; either version
2 of the License
, or
7 * (at your option
) any later version.
9 * This program is distributed in the hope that it will be useful
,
10 * but WITHOUT ANY WARRANTY
; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program
; if not
, see
<http
://www.gnu.org
/licenses
/>.
19 * This just includes all encoding files
23 #define __SELF_DEF_FIELD32
24 #define
DEF_FIELD32(...
) /* nothing
*/
28 #define __SELF_DEF_CLASS32
29 #define
DEF_CLASS32(...
) /* nothing
*/
32 #ifndef DEF_ANTICLASS32
33 #define __SELF_DEF_ANTICLASS32
34 #define
DEF_ANTICLASS32(...
) /* nothing
*/
37 #ifndef LEGACY_DEF_ENC32
38 #define __SELF_DEF_LEGACY_DEF_ENC32
39 #define
LEGACY_DEF_ENC32(...
) /* nothing
*/
42 #ifndef DEF_FIELDROW_DESC32
43 #define __SELF_DEF_FIELDROW_DESC32
44 #define
DEF_FIELDROW_DESC32(...
) /* nothing
*/
48 #define __SELF_DEF_ENC32
49 #define
DEF_ENC32(...
) /* nothing
*/
53 #define __SELF_DEF_PACKED32
54 #define
DEF_PACKED32(...
) /* nothing
*/
57 #ifndef DEF_ENC_SUBINSN
58 #define __SELF_DEF_ENC_SUBINSN
59 #define
DEF_ENC_SUBINSN(...
) /* nothing
*/
63 #define __SELF_DEF_EXT_ENC
64 #define
DEF_EXT_ENC(...
) /* nothing
*/
68 #define __SELF_DEF_EXT_SPACE
69 #define
DEF_EXT_SPACE(...
) /* nothing
*/
72 #include
"encode_pp.def"
73 #include
"encode_subinsn.def"
75 #ifdef __SELF_DEF_FIELD32
76 #undef __SELF_DEF_FIELD32
80 #ifdef __SELF_DEF_CLASS32
81 #undef __SELF_DEF_CLASS32
85 #ifdef __SELF_DEF_ANTICLASS32
86 #undef __SELF_DEF_ANTICLASS32
87 #undef DEF_ANTICLASS32
90 #ifdef __SELF_DEF_LEGACY_DEF_ENC32
91 #undef __SELF_DEF_LEGACY_DEF_ENC32
92 #undef LEGACY_DEF_ENC32
95 #ifdef __SELF_DEF_FIELDROW_DESC32
96 #undef __SELF_DEF_FIELDROW_DESC32
97 #undef DEF_FIELDROW_DESC32
100 #ifdef __SELF_DEF_ENC32
101 #undef __SELF_DEF_ENC32
105 #ifdef __SELF_DEF_EXT_SPACE
106 #undef __SELF_DEF_EXT_SPACE
111 #ifdef __SELF_DEF_PACKED32
112 #undef __SELF_DEF_PACKED32
116 #ifdef __SELF_DEF_ENC_SUBINSN
117 #undef __SELF_DEF_ENC_SUBINSN
118 #undef DEF_ENC_SUBINSN
121 #ifdef __SELF_DEF_EXT_ENC
122 #undef __SELF_DEF_EXT_ENC