- Add a generic_attribute field to irops
[libfirm] / ir / be / ia32 / ia32_new_nodes.h
index 668d914..2fc4ed9 100644 (file)
@@ -47,7 +47,9 @@ enum {
 enum {
        pn_ia32_res   = 0,
        pn_ia32_mem   = 1,
-       pn_ia32_flags = 2
+       pn_ia32_flags = 2,
+       pn_ia32_add1  = 3,
+       pn_ia32_add2  = 4
 };
 
 /***************************************************************************************************
@@ -77,6 +79,18 @@ 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 condcode attributes of a node.
+ */
+ia32_condcode_attr_t *get_ia32_condcode_attr(ir_node *node);
+const ia32_condcode_attr_t *get_ia32_condcode_attr_const(const ir_node *node);
+
+/**
+ * Gets the CopyB node attributes.
+ */
+ia32_copyb_attr_t *get_ia32_copyb_attr(ir_node *node);
+const ia32_copyb_attr_t *get_ia32_copyb_attr_const(const ir_node *node);
+
 /**
  * Gets the type of an ia32 node.
  */
@@ -293,24 +307,24 @@ const arch_register_t *get_ia32_out_reg(const ir_node *node, int pos);
 int get_ia32_n_res(const ir_node *node);
 
 /**
- * Returns the projnum code.
+ * Returns the condition code of a node.
  */
-long get_ia32_pncode(const ir_node *node);
+long get_ia32_condcode(const ir_node *node);
 
 /**
- * Sets the projnum code
+ * Sets the condition code of a node
  */
-void set_ia32_pncode(ir_node *node, long code);
+void set_ia32_condcode(ir_node *node, long code);
 
 /**
- * Gets the instruction latency.
+ * Returns the condition code of a node.
  */
-unsigned get_ia32_latency(const ir_node *node);
+unsigned get_ia32_copyb_size(const ir_node *node);
 
 /**
- * Sets the instruction latency.
+ * Gets the instruction latency.
  */
-void set_ia32_latency(ir_node *node, unsigned latency);
+unsigned get_ia32_latency(const ir_node *node);
 
 
 /**
@@ -415,12 +429,14 @@ void init_ia32_attributes(ir_node *node, arch_irn_flags_t flags,
                           const arch_register_req_t **in_reqs,
                           const arch_register_req_t **out_reqs,
                           const be_execution_unit_t ***execution_units,
-                          int n_res, unsigned latency);
+                          int n_res);
 
 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);
+void init_ia32_copyb_attributes(ir_node *res, unsigned size);
+void init_ia32_condcode_attributes(ir_node *res, long pnc);
 
 /* Include the generated headers */
 #include "gen_ia32_new_nodes.h"