fix sse/x87 fixup code added at wrong places
[libfirm] / ir / be / ia32 / ia32_new_nodes.h
index 0527123..db66c25 100644 (file)
@@ -51,7 +51,13 @@ int ia32_has_x87_register(const ir_node *n);
 /**
  * Returns the attributes of an ia32 node.
  */
-ia32_attr_t *get_ia32_attr(const ir_node *node);
+ia32_attr_t *get_ia32_attr(ir_node *node);
+const ia32_attr_t *get_ia32_attr_const(const ir_node *node);
+
+ia32_x87_attr_t *get_ia32_x87_attr(ir_node *node);
+const ia32_x87_attr_t *get_ia32_x87_attr_const(const ir_node *node);
+
+const ia32_immediate_attr_t *get_ia32_immediate_attr_const(const ir_node *node);
 
 /**
  * Gets the type of an ia32 node.
@@ -78,10 +84,13 @@ void set_ia32_immop_type(ir_node *node, ia32_immop_type_t tp);
  */
 ia32_am_type_t get_ia32_am_support(const ir_node *node);
 
+ia32_am_arity_t get_ia32_am_arity(const ir_node *node);
+
 /**
  * Sets the supported addrmode of an ia32 node
  */
-void set_ia32_am_support(ir_node *node, ia32_am_type_t am_tp);
+void set_ia32_am_support(ir_node *node, ia32_am_type_t am_tp,
+                         ia32_am_arity_t am_arity);
 
 /**
  * Gets the addrmode flavour of an ia32 node
@@ -325,11 +334,6 @@ int get_ia32_out_regnr(const ir_node *node, int pos);
  */
 const arch_register_t *get_ia32_out_reg(const ir_node *node, int pos);
 
-/**
- * Sets the number of results.
- */
-void set_ia32_n_res(ir_node *node, int n_res);
-
 /**
  * Returns the number of results.
  */
@@ -348,12 +352,12 @@ void set_ia32_flavour(ir_node *node, ia32_op_flavour_t op_flav);
 /**
  * Returns the projnum code.
  */
-pn_Cmp get_ia32_pncode(const ir_node *node);
+long get_ia32_pncode(const ir_node *node);
 
 /**
  * Sets the projnum code
  */
-void set_ia32_pncode(ir_node *node, pn_Cmp code);
+void set_ia32_pncode(ir_node *node, long code);
 
 /**
  * Gets the instruction latency.
@@ -381,6 +385,16 @@ arch_irn_flags_t get_ia32_out_flags(const ir_node *node, int pos);
  */
 const be_execution_unit_t ***get_ia32_exec_units(const ir_node *node);
 
+/**
+ * Get the exception label attribute.
+ */
+unsigned get_ia32_exc_label(const ir_node *node);
+
+/**
+ * Set the exception label attribute.
+ */
+void set_ia32_exc_label(ir_node *node, unsigned flag);
+
 #ifndef NDEBUG
 
 /**
@@ -472,6 +486,11 @@ int is_ia32_St(const ir_node *node);
  */
 int is_ia32_Cnst(const ir_node *node);
 
+/**
+ * Swaps left/right input of a node (and adjusts pnc if needed)
+ */
+void ia32_swap_left_right(ir_node *node);
+
 /**
  * Initializes the nodes attributes.
  */
@@ -481,10 +500,10 @@ void init_ia32_attributes(ir_node *node, arch_irn_flags_t flags,
                           const be_execution_unit_t ***execution_units,
                           int n_res, unsigned latency);
 
-/**
- * Registers the ia32_copy_attr function for all ia32 opcodes.
- */
-void ia32_register_copy_attr_func(void);
+void init_ia32_x87_attributes(ir_node *node);
+void init_ia32_asm_attributes(ir_node *node);
+void init_ia32_immediate_attributes(ir_node *node, ir_entity *symconst,
+                                    int symconst_sign, long offset);
 
 /* Include the generated headers */
 #include "gen_ia32_new_nodes.h"