2 * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
4 * This file is part of libFirm.
6 * This file may be distributed and/or modified under the terms of the
7 * GNU General Public License version 2 as published by the Free Software
8 * Foundation and appearing in the file LICENSE.GPL included in the
9 * packaging of this file.
11 * Licensees holding valid libFirm Professional Edition licenses may use
12 * this file in accordance with the libFirm Commercial License.
13 * Agreement provided with the Software.
15 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * @brief attributes attached to all sparc nodes
25 #ifndef FIRM_BE_SPARC_SPARC_NODES_ATTR_H
26 #define FIRM_BE_SPARC_SPARC_NODES_ATTR_H
28 #include "../bearch.h"
30 typedef struct sparc_attr_t sparc_attr_t;
33 * base SPARC attribute
37 except_attr exc; /**< the exception attribute. MUST be the first one. */
38 const arch_register_req_t **in_req; /**< register requirements for arguments */
39 int immediate_value; /* immediate values */
45 * attribute for save instruction
47 typedef struct sparc_save_attr_t sparc_save_attr_t;
48 struct sparc_save_attr_t {
49 sparc_attr_t base; /**< generic attribute */
50 int initial_stacksize; /* the min. stack size required by the sparc ABI */
54 * attributes for load/store adressing modes
56 typedef struct sparc_load_store_attr_t sparc_load_store_attr_t;
57 struct sparc_load_store_attr_t {
58 sparc_attr_t base; /**< generic attribute */
59 ir_mode *load_store_mode;
67 * attributes for SymConsts
69 typedef struct sparc_symconst_attr_t sparc_symconst_attr_t;
70 struct sparc_symconst_attr_t {
71 sparc_attr_t base; /**< generic attribute */
77 * attributes for conditional jumps
79 typedef struct sparc_jmp_cond_attr_t sparc_jmp_cond_attr_t;
80 struct sparc_jmp_cond_attr_t {
81 sparc_attr_t base; /**< generic attribute */
86 * attributes for switch jumps
88 typedef struct sparc_jmp_switch_attr_t sparc_jmp_switch_attr_t;
89 struct sparc_jmp_switch_attr_t {
90 sparc_attr_t base; /**< generic attribute */
92 long default_proj_num;
98 typedef struct sparc_cmp_attr_t sparc_cmp_attr_t;
99 struct sparc_cmp_attr_t {
100 sparc_attr_t base; /**< generic attribute */
101 bool ins_permuted : 1;
102 bool is_unsigned : 1;