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"
31 typedef struct sparc_attr_t sparc_attr_t;
34 * base SPARC attribute
38 except_attr exc; /**< the exception attribute. MUST be the first one. */
39 int32_t immediate_value; /* immediate values */
40 ir_entity *immediate_value_entity;
43 enum sparc_arch_irn_flags_t {
44 sparc_arch_irn_flag_modifies_flags = arch_irn_flags_backend << 0,
45 sparc_arch_irn_flag_modifies_fp_flags = arch_irn_flags_backend << 1,
46 sparc_arch_irn_flag_needs_64bit_spillslot = arch_irn_flags_backend << 2,
50 * attribute for FP immediate instruction
52 typedef struct sparc_fp_attr_t sparc_fp_attr_t;
53 struct sparc_fp_attr_t {
54 sparc_attr_t base; /**< generic attribute */
58 typedef struct sparc_fp_conv_attr_t sparc_fp_conv_attr_t;
59 struct sparc_fp_conv_attr_t {
66 * attributes for load/store adressing modes
68 typedef struct sparc_load_store_attr_t sparc_load_store_attr_t;
69 struct sparc_load_store_attr_t {
70 sparc_attr_t base; /**< generic attribute */
71 ir_mode *load_store_mode;
72 bool is_frame_entity : 1;
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 */
87 * attributes for switch jumps
89 typedef struct sparc_switch_jmp_attr_t sparc_switch_jmp_attr_t;
90 struct sparc_switch_jmp_attr_t {
91 sparc_attr_t base; /**< generic attribute */
92 long default_proj_num;
93 ir_entity *jump_table;