started adding a relation to the Cmp node
[libfirm] / ir / be / sparc / sparc_nodes_attr.h
index 799cddc..3753322 100644 (file)
@@ -36,7 +36,6 @@ typedef struct sparc_attr_t  sparc_attr_t;
 struct sparc_attr_t
 {
        except_attr                 exc;                /**< the exception attribute. MUST be the first one. */
-       const arch_register_req_t **in_req;             /**< register requirements for arguments */
        int32_t                     immediate_value;    /* immediate values */
        ir_entity                  *immediate_value_entity;
 };
@@ -63,15 +62,6 @@ struct sparc_fp_conv_attr_t {
        ir_mode      *dest_mode;
 };
 
-/**
- * attribute for save instruction
- */
-typedef struct sparc_save_attr_t sparc_save_attr_t;
-struct sparc_save_attr_t {
-       sparc_attr_t  base;              /**< generic attribute */
-       int           initial_stacksize; /* the min. stack size required by the sparc ABI */
-};
-
 /**
  * attributes for load/store adressing modes
  */
@@ -79,7 +69,8 @@ typedef struct sparc_load_store_attr_t sparc_load_store_attr_t;
 struct sparc_load_store_attr_t {
        sparc_attr_t  base;    /**< generic attribute */
        ir_mode      *load_store_mode;
-       bool          is_frame_entity;
+       bool          is_frame_entity : 1;
+       bool          is_reg_reg      : 1;
 };
 
 /**
@@ -88,18 +79,18 @@ struct sparc_load_store_attr_t {
 typedef struct sparc_jmp_cond_attr_t sparc_jmp_cond_attr_t;
 struct sparc_jmp_cond_attr_t {
        sparc_attr_t base;    /**< generic attribute */
-       pn_Cmp       pnc;
+       ir_relation  relation;
        bool         is_unsigned : 1;
 };
 
 /**
  * attributes for switch jumps
  */
-typedef struct sparc_jmp_switch_attr_t sparc_jmp_switch_attr_t;
-struct sparc_jmp_switch_attr_t {
+typedef struct sparc_switch_jmp_attr_t sparc_switch_jmp_attr_t;
+struct sparc_switch_jmp_attr_t {
        sparc_attr_t  base;    /**< generic attribute */
-       int           n_projs;
        long          default_proj_num;
+       ir_entity    *jump_table;
 };
 
 #endif